/* Xewa Browser — landing styles.
   Obsidian ground matching the app icon: dark metal + emerald, gold and a copper
   play accent. Fresh, premium, dark. */

:root {
  --bg:        #0a0b0d;
  --bg-2:      #0e1014;
  --surface:   rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.055);
  --solid:     #13161b;
  --border:    rgba(255,255,255,.085);
  --border-2:  rgba(255,255,255,.16);
  --ink:       #f4f6f8;
  --text:      #c6ccd4;
  --muted:     #959ca7;
  --faint:     #666d78;

  --accent:    #1fae80;   /* emerald, brightened for dark ground */
  --accent-deep:#0f7a5a;
  --gold:      #d7b45e;
  --copper:    #cf8551;
  --accent-ink:#04120d;

  --glow-e:    rgba(31,174,128,.18);
  --glow-g:    rgba(215,180,94,.12);
  --glow-c:    rgba(207,133,81,.12);

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1160px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* layered glow mesh + fine grid, fixed behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 82% -6%, var(--glow-e), transparent 60%),
    radial-gradient(48% 46% at 6% 20%, var(--glow-g), transparent 62%),
    radial-gradient(70% 60% at 50% 116%, var(--glow-c), transparent 60%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(130% 90% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(130% 90% at 50% 0%, #000 35%, transparent 78%);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 16px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }

h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.07; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -.028em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.55rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.24rem; font-weight: 600; letter-spacing: -.01em; }
em, .metal {
  font-style: normal;
  background: linear-gradient(100deg, #eef1f4 0%, var(--gold) 42%, var(--copper) 70%, #cfd4da 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.em-e { font-style: normal; color: var(--accent); }
p  { margin: 0 0 1em; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.26rem); color: var(--text); max-width: 54ch; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: 15px 24px; border-radius: 13px;
  background: linear-gradient(180deg, #27c593, var(--accent-deep));
  color: var(--accent-ink); border: 1px solid rgba(255,255,255,.14);
  transition: transform .14s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 14px 40px -16px rgba(31,174,128,.7), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -16px rgba(31,174,128,.85), inset 0 1px 0 rgba(255,255,255,.3); filter: saturate(1.08); }
.btn svg { width: 19px; height: 19px; }
.btn.ghost {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border-2); box-shadow: none; backdrop-filter: blur(6px);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10,11,13,.6); backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 1.16rem; color: var(--ink); letter-spacing: -.01em; }
.brand .mark { width: 28px; height: 28px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.brand b { background: linear-gradient(100deg, var(--gold), var(--copper)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .95rem; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { color: var(--ink) !important; border: 1px solid var(--border-2); padding: 9px 17px; border-radius: 11px; background: var(--surface); transition: border-color .15s ease, color .15s ease; }
.nav-cta:hover { border-color: var(--accent); color: var(--accent) !important; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(52px, 7vw, 104px) 0 clamp(60px, 8vw, 116px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: 52px; align-items: center; }
.hero-wordmark { height: 40px; width: auto; margin: 0 0 26px; opacity: .96; filter: drop-shadow(0 6px 20px rgba(0,0,0,.6)); }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 24px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--faint); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* emblem showpiece */
.showpiece { position: relative; justify-self: center; width: min(460px, 86vw); aspect-ratio: 1; display: grid; place-items: center; }
.showpiece::before {
  content: ""; position: absolute; inset: 6% 6% 10%;
  background: radial-gradient(50% 50% at 50% 46%, var(--glow-e), transparent 66%);
  filter: blur(6px);
}
.showpiece::after {
  content: ""; position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  width: 62%; height: 22px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.6), transparent 70%); filter: blur(5px);
}
.emblem { position: relative; width: 92%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.65)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 14px;
  background: rgba(16,18,22,.72); border: 1px solid var(--border-2);
  backdrop-filter: blur(10px); box-shadow: 0 20px 50px -24px rgba(0,0,0,.9);
}
.chip svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.chip .t { font-size: 12px; color: var(--ink); font-weight: 600; font-family: var(--display); line-height: 1.15; }
.chip .d { font-size: 10.5px; color: var(--faint); font-family: var(--mono); letter-spacing: .03em; }
.chip.one { top: 10%; right: -4%; }
.chip.two { bottom: 13%; left: -6%; }
.chip .dot { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(180deg, #27c593, var(--accent-deep)); display: grid; place-items: center; }
.chip .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #eafff6; }

/* ---------- spec strip (marquee feel) ---------- */
.spec { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.015); }
.spec .wrap { display: flex; flex-wrap: wrap; gap: 12px 30px; padding-block: 18px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em; color: var(--muted); }
.spec span { display: inline-flex; align-items: center; gap: 10px; }
.spec span::before { content: "◆"; color: var(--gold); font-size: 9px; }
.spec b { color: var(--accent); font-weight: 500; }

/* ---------- feature cards (bento grid) ---------- */
.rows { padding: clamp(66px, 9vw, 120px) 0; }
.section-head { max-width: 60ch; margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
.section-head p:last-child { color: var(--muted); margin: 16px 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 28px 26px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .18s ease, border-color .2s ease, background .2s ease;
}
.card::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  opacity: 0; transition: opacity .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card.wide { grid-column: span 2; }
.badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(31,174,128,.16), rgba(31,174,128,.04));
  border: 1px solid rgba(31,174,128,.28); color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.badge svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 16px; padding: 4px 10px; border: 1px solid rgba(215,180,94,.28); border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(60px, 8vw, 110px) 0; border-top: 1px solid var(--border); }
.faq .grid { display: grid; grid-template-columns: .85fr 1.35fr; gap: 48px; align-items: start; }
.faq h2 { position: sticky; top: 100px; }
.faq .list { display: flex; flex-direction: column; }
details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 12px; transition: border-color .2s ease; }
details[open] { border-color: var(--border-2); }
details summary {
  list-style: none; cursor: pointer; padding: 18px 50px 18px 20px; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.04rem; color: var(--ink);
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; position: absolute; right: 20px; top: 16px; font-size: 22px; color: var(--accent);
  transition: transform .2s ease; font-family: var(--sans); line-height: 1;
}
details[open] summary::after { transform: rotate(45deg); }
details .a { color: var(--muted); padding: 0 24px 20px; margin: 0; font-size: .98rem; }
details .a a { color: var(--accent); border-bottom: 1px solid rgba(31,174,128,.4); }

/* ---------- closing ---------- */
.closing { position: relative; text-align: center; border-top: 1px solid var(--border); padding: clamp(72px, 10vw, 128px) 0; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; inset: auto 0 -40% 0; height: 420px;
  background: radial-gradient(50% 60% at 50% 100%, var(--glow-e), transparent 70%); pointer-events: none;
}
.closing .emblem-watermark { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 240px; opacity: .08; pointer-events: none; }
.closing h2 { position: relative; max-width: 20ch; margin: 0 auto; }
.closing .lead { margin: 18px auto 0; text-align: center; }
.closing .cta-row { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 54px 0 40px; background: rgba(255,255,255,.012); }
.foot-top { display: flex; flex-wrap: wrap; gap: 26px 40px; justify-content: space-between; align-items: flex-start; }
.foot-brand { max-width: 320px; }
.foot-wordmark { height: 30px; width: auto; margin-bottom: 14px; opacity: .92; }
.foot-brand p { color: var(--faint); font-size: .9rem; margin: 0; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 44px; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; font-weight: 500; }
.foot-col a, .foot-col span { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 9px; transition: color .15s ease; }
.foot-col a:hover { color: var(--accent); }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--faint); font-size: .84rem; }
.foot-bar .mono { font-family: var(--mono); letter-spacing: .03em; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .showpiece { order: -1; width: min(380px, 80vw); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card.wide { grid-column: span 2; }
  .faq .grid { grid-template-columns: 1fr; gap: 20px; }
  .faq h2 { position: static; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .nav-links { gap: 14px; }
  .cards { grid-template-columns: 1fr; }
  .card.wide { grid-column: span 1; }
  .chip.one { right: 0; } .chip.two { left: 0; }
  .foot-cols { gap: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
