/* =====================================================================
   AMAN — Portfolio Stylesheet
   Brand palette extracted directly from the Flutter app theme
   (lib/theme/theme_helper.dart):
     deepPurple700 #3525CD  ·  indigoA400 #4F46E5  ·  greenA200 #6FFBBE
     teal800 #006C49        ·  amber700 #F59E0B     ·  gray900 #1B1B24
   ===================================================================== */

:root {
  /* Brand */
  --brand: #3525CD;
  --brand-2: #4F46E5;
  --brand-3: #6D5FF3;
  --brand-soft: #EEF2FF;
  --brand-softer: #F5F2FF;
  --mint: #4EDEA3;
  --mint-2: #6FFBBE;
  --teal: #006C49;
  --amber: #F59E0B;
  --rose: #BA1A1A;

  /* Neutrals (light) */
  --ink: #14131C;
  --ink-2: #3a3948;
  --muted: #6B7280;
  --muted-2: #94A3B8;
  --line: #E6E3F1;
  --paper: #FCFBFF;
  --paper-2: #F5F3FC;
  --card: #FFFFFF;
  --card-2: #FBFAFF;

  --grad: linear-gradient(120deg, #3525CD 0%, #4F46E5 55%, #6D5FF3 100%);
  --grad-mint: linear-gradient(120deg, #006C49 0%, #4EDEA3 100%);
  --grad-text: linear-gradient(100deg, #4F46E5, #6D5FF3 45%, #4EDEA3);

  --shadow-sm: 0 1px 2px rgba(20,19,28,.06), 0 2px 8px rgba(53,37,205,.05);
  --shadow: 0 10px 30px -12px rgba(53,37,205,.22), 0 4px 12px rgba(20,19,28,.06);
  --shadow-lg: 0 30px 70px -24px rgba(53,37,205,.35), 0 8px 24px rgba(20,19,28,.08);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 96px);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --nav-h: 68px;
}

:root[data-theme="dark"] {
  --ink: #F4F2FF;
  --ink-2: #d7d4ea;
  --muted: #a7a4bd;
  --muted-2: #7d7a94;
  --line: #2a2740;
  --paper: #0d0b1a;
  --paper-2: #12102420;
  --card: #17142b;
  --card-2: #1c1935;
  --brand-soft: #1c1940;
  --brand-softer: #171436;
  --shadow: 0 12px 34px -12px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 34px 80px -22px rgba(0,0,0,.7);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.alt { background: var(--paper-2); }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-2); padding: 6px 14px; border-radius: 100px;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand-2) 18%, transparent);
}
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 18px; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 62ch; margin-top: 16px; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.gtext { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-weight: 700; font-size: .96rem; padding: 14px 26px; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -8px rgba(53,37,205,.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(53,37,205,.7); }
.btn--ghost { background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink); border-color: var(--line); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--brand-2); color: var(--brand-2); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .88rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -14px rgba(20,19,28,.4);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 6px 16px -6px rgba(53,37,205,.6); }
.brand .logo svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 100px; font-weight: 600; font-size: .92rem; color: var(--ink-2); transition: color .2s, background .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--brand-2); background: var(--brand-soft); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: .2s;
}
.theme-toggle:hover, .menu-btn:hover { border-color: var(--brand-2); color: var(--brand-2); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-btn { display: none; }

@media (max-width: 940px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px var(--pad) 22px;
    transform: translateY(-140%); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .menu-btn { display: grid; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 90px)); padding-bottom: clamp(50px, 8vw, 110px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.hero-bg .b1 { width: 520px; height: 520px; background: radial-gradient(circle, #6D5FF3, transparent 68%); top: -160px; right: -120px; }
.hero-bg .b2 { width: 460px; height: 460px; background: radial-gradient(circle, #4EDEA3, transparent 68%); bottom: -180px; left: -120px; opacity: .35; }
.hero-bg .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 54px 54px; opacity: .35; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000, transparent 75%); }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); font-weight: 900; letter-spacing: -.035em; }
.hero .sub { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--muted); margin-top: 22px; max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.hero-badges .hb { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.hero-badges .hb svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

/* phone mockup cluster */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 480px; }
.phone {
  position: relative; width: 260px; aspect-ratio: 9/19.5; border-radius: 42px;
  background: #0d0b1a; padding: 11px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08);
}
.phone::before { content:""; position:absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background:#0d0b1a; border-radius: 0 0 16px 16px; z-index: 3; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 32px; }
.phone.p-main { z-index: 2; }
.phone.p-side { position: absolute; width: 210px; }
.phone.p-left { left: -6%; transform: rotate(-9deg) translateY(28px) scale(.86); opacity: .92; z-index: 1; }
.phone.p-right { right: -6%; transform: rotate(9deg) translateY(28px) scale(.86); opacity: .92; z-index: 1; }
.hero-float { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 15px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 11px; font-size: .84rem; font-weight: 700; }
.hero-float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.hero-float small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.hf-1 { top: 8%; left: -4%; }
.hf-2 { bottom: 12%; right: -6%; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .sub { margin-inline: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-visual { margin-top: 20px; min-height: 440px; }
}

/* ---------- Marquee (trust / apps) ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--card); overflow: hidden; padding-block: 20px; }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); font-size: 1.02rem; white-space: nowrap; }
.marquee-track span svg { width: 20px; height: 20px; color: var(--brand-2); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat::after { content:""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: .8; }
.stat .num { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 900; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; }
.stat .lbl { color: var(--muted); font-weight: 600; font-size: .92rem; margin-top: 6px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split.rev .split-media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } }
.about-points { display: grid; gap: 16px; margin-top: 30px; }
.about-point { display: flex; gap: 14px; align-items: flex-start; }
.about-point .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; flex: none; }
.about-point .ic svg { width: 20px; height: 20px; }
.about-point b { font-size: 1.02rem; }
.about-point p { color: var(--muted); font-size: .95rem; margin-top: 2px; }

.media-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--card); }
.media-frame img { width: 100%; }

/* ---------- Platform ecosystem ---------- */
.eco-section { background:
  radial-gradient(1100px 500px at 85% -10%, color-mix(in srgb, var(--brand-2) 12%, transparent), transparent 60%),
  radial-gradient(900px 500px at 0% 110%, color-mix(in srgb, var(--mint) 14%, transparent), transparent 55%),
  var(--paper); }
.eco-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.eco-card {
  grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; display: flex; flex-direction: column;
}
.eco-card.wide { grid-column: span 3; }
.eco-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand-2) 38%, var(--line)); }
.eco-shot { overflow: hidden; background: linear-gradient(160deg, var(--brand-softer), var(--card-2)); display: flex; justify-content: center; }
.eco-shot img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.eco-card:hover .eco-shot img { transform: scale(1.05); }
.phone-shot { padding: 26px 26px 0; }
.phone-shot img { width: 74%; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px -12px rgba(53,37,205,.4); border: 1px solid var(--line); border-bottom: none; object-fit: cover; object-position: top; max-height: 340px; }
.web-shot { padding: 26px 26px 0; }
.web-shot img { width: 100%; border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: none; box-shadow: 0 -8px 30px -12px rgba(53,37,205,.35); object-fit: cover; object-position: top; max-height: 300px; }
.eco-body { padding: 22px 24px 26px; }
.eco-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.eco-badge { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); background: var(--brand-soft); padding: 5px 12px; border-radius: 100px; }
.eco-badge.alt { color: var(--teal); background: color-mix(in srgb, var(--mint) 22%, transparent); }
.eco-num { font-size: 1.1rem; font-weight: 900; color: var(--muted-2); letter-spacing: -.02em; }
.eco-card h3 { font-size: 1.22rem; }
.eco-card .eco-body p { color: var(--muted); margin-top: 8px; font-size: .93rem; }
@media (max-width: 900px) {
  .eco-grid { grid-template-columns: 1fr 1fr; }
  .eco-card, .eco-card.wide { grid-column: span 1; }
}
@media (max-width: 560px) { .eco-grid { grid-template-columns: 1fr; } .eco-card, .eco-card.wide { grid-column: span 1; } }

/* ---------- Why / feature cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand-2) 40%, var(--line)); }
.card .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(53,37,205,.55); }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); margin-top: 10px; font-size: .95rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.card .tags span { font-size: .74rem; font-weight: 600; color: var(--brand-2); background: var(--brand-soft); padding: 4px 10px; border-radius: 100px; }

/* feature accent variants */
.card.a-mint .ic { background: var(--grad-mint); box-shadow: 0 8px 18px -8px rgba(0,108,73,.5); }
.card.a-amber .ic { background: linear-gradient(120deg, #D97706, #F59E0B); box-shadow: 0 8px 18px -8px rgba(217,119,6,.5); }
.card.a-rose .ic { background: linear-gradient(120deg, #9F1239, #E11D48); box-shadow: 0 8px 18px -8px rgba(190,26,26,.45); }
.card.a-teal .ic { background: linear-gradient(120deg, #0F766E, #14B8A6); }

/* ---------- Workflow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }
.flow-step { position: relative; padding: 28px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.flow-step .n { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-2); font-weight: 900; font-size: 1.15rem; display: grid; place-items: center; margin-bottom: 16px; }
.flow-step h4 { font-size: 1.06rem; }
.flow-step p { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.flow-step .line { position: absolute; top: 50px; right: -12px; width: 24px; height: 2px; background: linear-gradient(90deg, var(--brand-2), transparent); z-index: 2; }
@media (max-width: 900px) { .flow-step .line { display: none; } }

/* ---------- User types tabs ---------- */
.roles { display: grid; grid-template-columns: 300px 1fr; gap: 24px; }
@media (max-width: 820px) { .roles { grid-template-columns: 1fr; } }
.role-tabs { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 820px) { .role-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; } }
.role-tab {
  text-align: left; padding: 18px 20px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--card); cursor: pointer; transition: .25s; display: flex; gap: 14px; align-items: center; font-family: inherit; color: var(--ink); flex: none;
}
.role-tab .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); flex: none; }
.role-tab .ic svg { width: 20px; height: 20px; }
.role-tab b { font-size: .98rem; display: block; }
.role-tab small { color: var(--muted); font-size: .8rem; }
.role-tab.active { border-color: var(--brand-2); background: var(--brand-soft); box-shadow: var(--shadow-sm); }
.role-tab.active .ic { background: var(--grad); color: #fff; }
.role-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
.role-panel[hidden] { display: none; }
.role-panel h3 { font-size: 1.5rem; }
.role-panel .role-sub { color: var(--brand-2); font-weight: 700; margin-top: 4px; }
.role-panel ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
@media (max-width: 560px) { .role-panel ul { grid-template-columns: 1fr; } }
.role-panel li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .95rem; }
.role-panel li svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 3px; }

/* ---------- Architecture ---------- */
.arch { display: grid; gap: 18px; }
.arch-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.arch-node { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); position: relative; }
.arch-node .ic { width: 42px; height: 42px; border-radius: 11px; margin: 0 auto 12px; display: grid; place-items: center; color: #fff; }
.arch-node b { font-size: .98rem; display: block; }
.arch-node small { color: var(--muted); font-size: .82rem; }
.arch-label { text-align: center; font-weight: 700; color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.arch-band { border-radius: var(--r); padding: 22px; border: 1px dashed color-mix(in srgb, var(--brand-2) 35%, var(--line)); background: var(--brand-softer); }

/* ---------- Tech stack ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tech {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px 18px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; transition: .25s; box-shadow: var(--shadow-sm);
}
.tech:hover { transform: translateY(-4px); border-color: var(--brand-2); box-shadow: var(--shadow); }
.tech .logo { width: 46px; height: 46px; display: grid; place-items: center; }
.tech .logo svg, .tech .logo img { width: 42px; height: 42px; }
.tech b { font-size: .92rem; }
.tech small { color: var(--muted); font-size: .76rem; }

/* ---------- Security / list feature ---------- */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px) { .feature-list { grid-template-columns: 1fr; } }
.fl-item { display: flex; gap: 15px; padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: .25s; }
.fl-item:hover { border-color: color-mix(in srgb, var(--brand-2) 35%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow); }
.fl-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; flex: none; }
.fl-item .ic svg { width: 22px; height: 22px; }
.fl-item h4 { font-size: 1.04rem; }
.fl-item p { color: var(--muted); font-size: .92rem; margin-top: 5px; }

/* ---------- Localization ---------- */
.lang-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.lang-chip {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 100px;
  background: var(--card); border: 1px solid var(--line); font-weight: 700; box-shadow: var(--shadow-sm); transition: .25s;
}
.lang-chip:hover { transform: translateY(-3px); border-color: var(--brand-2); box-shadow: var(--shadow); }
.lang-chip .flag { font-size: 1.3rem; line-height: 1; }
.lang-chip small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.lang-chip.rtl { border-color: color-mix(in srgb, var(--brand-2) 35%, var(--line)); background: var(--brand-softer); }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.gf {
  padding: 10px 20px; border-radius: 100px; border: 1px solid var(--line); background: var(--card);
  font-weight: 700; font-size: .9rem; cursor: pointer; transition: .2s; color: var(--ink-2); font-family: inherit;
}
.gf:hover { border-color: var(--brand-2); color: var(--brand-2); }
.gf.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(53,37,205,.5); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 16px; }
.shot {
  height: 250px; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--card); cursor: zoom-in; position: relative; transition: .3s; box-shadow: var(--shadow-sm);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.shot:hover { box-shadow: var(--shadow-lg); border-color: var(--brand-2); }
.shot:hover img { transform: scale(1.05); }
.shot .cap { position: absolute; inset: auto 0 0 0; padding: 26px 14px 11px; color: #fff; font-size: .78rem; font-weight: 600; background: linear-gradient(transparent, rgba(13,11,26,.82)); opacity: 0; transition: .3s; }
.shot:hover .cap { opacity: 1; }
.shot.web { grid-column: span 2; }
.shot.web img { object-position: top left; }
.shot[hidden] { display: none; }
@media (max-width: 520px) { .shot { height: 220px; } .shot.web { grid-column: span 2; } }
@media (max-width: 360px) { .shot.web { grid-column: span 1; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,7,18,.92); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 4vw; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 14px; box-shadow: var(--shadow-lg); object-fit: contain; }
.lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; font-size: .95rem; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-btn svg { width: 26px; height: 26px; }
.lb-prev { left: 3vw; } .lb-next { right: 3vw; }
.lb-close { top: 3vh; right: 3vw; transform: none; width: 46px; height: 46px; }
@media (max-width: 640px) { .lb-btn { width: 44px; height: 44px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* ---------- Dashboard showcase ---------- */
.browser { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--card); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.browser-bar .dots { display: flex; gap: 7px; }
.browser-bar .dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.browser-bar .url { margin-left: 12px; font-size: .82rem; color: var(--muted); background: var(--paper); padding: 6px 16px; border-radius: 100px; border: 1px solid var(--line); flex: 1; max-width: 380px; }
.browser img { width: 100%; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; transition: border-color .25s; }
.faq-item.open { border-color: var(--brand-2); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; padding: 22px 24px; background: none; border: none; font-family: inherit; font-size: 1.05rem; font-weight: 700; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); transition: transform .3s; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }
.price {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px;
  display: flex; flex-direction: column; transition: .3s; position: relative;
}
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price.feat { border-color: var(--brand-2); box-shadow: var(--shadow-lg); background: linear-gradient(180deg, var(--brand-softer), var(--card)); }
.price .tier { font-weight: 800; font-size: 1.2rem; }
.price .desc { color: var(--muted); font-size: .9rem; margin-top: 6px; min-height: 40px; }
.price .amt { font-size: 2.4rem; font-weight: 900; margin-top: 18px; letter-spacing: -.03em; }
.price .amt small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 11px; flex: 1; }
.price li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.price li svg { width: 17px; height: 17px; color: var(--teal); flex: none; margin-top: 3px; }
.price .badge-top { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; box-shadow: 0 8px 18px -6px rgba(53,37,205,.6); }

/* ---------- CTA / Contact ---------- */
.cta-band { position: relative; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 76px); overflow: hidden; background: var(--grad); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::before { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 40%), radial-gradient(circle at 80% 90%, rgba(78,222,163,.3), transparent 45%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { max-width: 54ch; margin: 16px auto 0; opacity: .92; font-size: 1.08rem; }
.cta-band .hero-cta { justify-content: center; margin-top: 32px; }
.cta-band .btn--primary { background: #fff; color: var(--brand); }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--card); border-top: 1px solid var(--line); padding-block: 56px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.footer h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-2); font-size: .92rem; }
.footer ul a:hover { color: var(--brand-2); }
.footer-bot { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* scrollbar */
::selection { background: color-mix(in srgb, var(--brand-2) 30%, transparent); }
