/* ===========================================================
   DAMSoft — modern.css  (v2 redesign)
   POS / business-software company landing page.
   No Bootstrap / jQuery / plugin dependencies.
   =========================================================== */

:root {
    --brand:        #1f9aff;   /* DAMSoft logo blue */
    --brand-dark:   #0a6fc9;   /* darker azure — hover + text contrast */
    --brand-light:  #57b3ff;   /* lighter logo tint */
    --brand-50:     #ebf6ff;
    --ink:          #0b1220;   /* near-black navy */
    --ink-soft:     #3a4658;
    --muted:        #6b7787;
    --line:         #e6eaf0;
    --bg:           #ffffff;
    --bg-soft:      #f4f7fb;
    --navy:         #0b1220;
    --radius:       18px;
    --radius-sm:    12px;
    --shadow-sm:    0 1px 2px rgba(11,18,32,.05), 0 4px 14px rgba(11,18,32,.05);
    --shadow:       0 18px 44px rgba(11,18,32,.10);
    --shadow-lg:    0 30px 70px rgba(11,18,32,.20);
    --maxw:         1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    font-family: "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink-soft);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0 0 1rem; }
a { color: var(--brand-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand-dark); background: var(--brand-50);
    padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.section-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-weight: 700; font-size: .94rem; cursor: pointer;
    padding: 12px 24px; border-radius: 12px; border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
    white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 8px 20px rgba(31,154,255,.30); }
.btn-primary:hover { color: #fff; background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31,154,255,.40); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--brand-dark); border-color: var(--brand-light); transform: translateY(-2px); }
.btn-light { color: var(--brand-dark); background: #fff; }
.btn-light:hover { color: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ===========================================================
   Header / Nav
   =========================================================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(11,18,32,.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .94rem; padding: 8px 14px; border-radius: 9px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-dark); background: var(--brand-50); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* download dropdown */
.download { position: relative; }
.download-menu {
    position: absolute; top: calc(100% + 12px); right: 0; width: 280px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 16px; opacity: 0; visibility: hidden;
    transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.download.open .download-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.download-menu h5 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 6px; font-weight: 700; }
.download-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; transition: background .2s, color .2s; }
.download-menu a:hover { background: var(--bg-soft); color: var(--brand-dark); }
.download-menu a svg { width: 17px; height: 17px; color: var(--brand); }
.download-menu hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); width: 44px; height: 44px; }

/* ===========================================================
   Browser-window frame (reused for all screenshots)
   =========================================================== */
.window {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    box-shadow: var(--shadow); width: 100%;
}
.window-bar {
    display: flex; align-items: center; gap: 7px; padding: 11px 14px;
    background: linear-gradient(180deg, #f7f9fc, #eef2f8); border-bottom: 1px solid var(--line);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.window-bar i:nth-child(1) { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar .addr {
    margin-left: 12px; flex: 1; height: 22px; border-radius: 6px; background: #fff;
    border: 1px solid var(--line); font-size: .72rem; color: var(--muted);
    display: flex; align-items: center; padding: 0 12px;
}
.window img { width: 100%; height: auto; display: block; }   /* natural aspect — no crop/squish */

/* ===========================================================
   Hero
   =========================================================== */
.hero { position: relative; overflow: hidden; padding: 132px 0 72px; background: var(--bg); }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(880px 420px at 78% 8%, rgba(31,154,255,.14), transparent 60%),
        radial-gradient(680px 420px at 4% 30%, rgba(87,179,255,.12), transparent 55%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(11,18,32,.07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
.hero h1 .accent { color: var(--brand); }
.hero p.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 500px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--muted); font-size: .9rem; }
.hero-trust .dots { display: inline-flex; }
.hero-trust .dots span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: linear-gradient(135deg, var(--brand-light), var(--brand-dark)); margin-left: -8px; }
.hero-visual { position: relative; }
.hero-visual .window { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transition: transform .5s ease; }
.hero-visual .window:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.hero-badge {
    position: absolute; bottom: -18px; left: -18px; z-index: 3;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
.hero-badge .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.hero-badge .ic svg { width: 20px; height: 20px; }
.hero-badge b { color: var(--ink); display: block; font-size: .95rem; }
.hero-badge span { color: var(--muted); font-size: .8rem; }

/* ===========================================================
   Stats band
   =========================================================== */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 0; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 2rem; color: var(--ink); font-weight: 800; line-height: 1; }
.stat-item span { color: var(--muted); font-size: .92rem; }

/* ===========================================================
   Bento feature cards
   =========================================================== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 28px; box-shadow: var(--shadow-sm); overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand-light), var(--brand-dark)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(31,154,255,.3); }
.feature:hover::after { transform: scaleX(1); }
.feature .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--brand); background: var(--brand-50); margin-bottom: 18px; }
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ===========================================================
   Showcase rows (image + text, alternating)
   =========================================================== */
.showcase-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.reverse .showcase-media { order: 2; }
.showcase-text h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.showcase-text p { color: var(--muted); }
.showcase-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.showcase-list li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink); font-weight: 600; }
.showcase-list .tick { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-50); color: var(--brand-dark); display: grid; place-items: center; margin-top: 1px; }
.showcase-list .tick svg { width: 13px; height: 13px; }

/* ===========================================================
   Solutions grid (programs)
   =========================================================== */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.solution {
    display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.solution:hover { transform: translateY(-3px); border-color: rgba(31,154,255,.4); box-shadow: var(--shadow); }
.solution .num {
    flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; font-weight: 800; font-size: .9rem;
    background: var(--brand); color: #fff; display: grid; place-items: center;
}
.solution span { color: var(--ink); font-weight: 600; font-size: .96rem; line-height: 1.45; }

/* ===========================================================
   Gallery (windowed screenshots)
   =========================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery .window { cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.gallery .window:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 4vw; background: rgba(8,12,22,.9); backdrop-filter: blur(6px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.28); }

/* ===========================================================
   CTA band
   =========================================================== */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: 24px; padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 20px 20px; opacity: .4; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 26px; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { background: var(--navy); color: #aeb8c7; }
.footer-map { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(.3) brightness(.95); }
.footer-main { padding: 64px 0 28px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-box { display: flex; gap: 15px; align-items: flex-start; }
.footer-box .icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(31,154,255,.16); color: var(--brand-light); }
.footer-box .icon svg { width: 21px; height: 21px; }
.footer-box h4 { color: #fff; font-size: 1.02rem; margin: 0 0 5px; }
.footer-box p { margin: 0; color: #8b97a8; font-size: .94rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px; text-align: center; color: #8b97a8; font-size: .88rem; }
.footer-bottom .text-green { color: var(--brand-light); font-weight: 700; }

/* ===========================================================
   Back to top
   =========================================================== */
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 46px; height: 46px; border-radius: 13px; border: none; cursor: pointer; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(31,154,255,.4); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 21px; height: 21px; }

/* ===========================================================
   Reveal on scroll
   =========================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 44px; }
    .hero p.lead { margin-inline: auto; }
    .hero-actions, .hero-trust { justify-content: center; }
    .hero-visual .window { transform: none; }
    .bento { grid-template-columns: 1fr; }
    .solutions { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .showcase-row { grid-template-columns: 1fr; gap: 28px; }
    .showcase-row.reverse .showcase-media { order: 0; }
    .footer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .nav-toggle { display: grid; place-items: center; }
    .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
    .nav.open .nav-links { max-height: 380px; padding: 14px 16px; }
    .nav-links a { padding: 14px 12px; }
    .solutions { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .cta-band { padding: 40px 24px; }
    .nav-right .btn-label-long { display: none; }
}
