:root {
  --bg: #0e1820;
  --bg-soft: #162732;
  --bg-lift: #203743;
  --surface: rgba(39, 61, 72, 0.72);
  --surface-strong: #2d4653;
  --surface-light: #3a5562;
  --text: #f5f3ec;
  --muted: #c8d0d3;
  --gold: #d6ad59;
  --gold-soft: #efd18b;
  --gold-deep: #9c7531;
  --line: rgba(214, 173, 89, 0.34);
  --line-cool: rgba(214, 227, 233, 0.14);
  --ok: #9ecb9e;
  --warn: #e8c873;
  --plan: #aebbc5;
  --shadow: 0 22px 80px rgba(3, 8, 11, 0.24);
  --max: 1240px;
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 12%, rgba(214,173,89,.12), transparent 24rem),
    radial-gradient(circle at 10% 38%, rgba(97,148,169,.18), transparent 34rem),
    linear-gradient(180deg, #142530 0%, #0f1c24 54%, #0b151c 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 1000;
  background: var(--gold); color: #12181a; padding: .75rem 1rem; border-radius: 10px;
}
.skip-link:focus { top: 1rem; }

.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 26, 34, .78);
  backdrop-filter: blur(18px) saturate(130%);
  border-bottom: 1px solid var(--line-cool);
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 38px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold-soft);
  clip-path: polygon(50% 0, 92% 15%, 84% 72%, 50% 100%, 16% 72%, 8% 15%);
  background: linear-gradient(145deg, rgba(214,173,89,.16), rgba(255,255,255,.03));
  font-family: Georgia, serif; font-size: 21px;
}
.brand-word {
  color: var(--gold-soft); font-family: Georgia, "Times New Roman", serif;
  font-size: 25px; letter-spacing: .12em;
}
.nav { justify-self: center; display: flex; gap: 30px; color: #eef1f0; font-size: 14px; }
.nav a { position: relative; padding: 25px 0 23px; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 15px; height: 1px;
  background: var(--gold); transition: right .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.lang-switch {
  display: inline-flex; align-items: center; padding: 4px;
  border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035);
}
.lang-btn {
  min-width: 42px; border: 0; border-radius: 9px; padding: 9px 10px;
  background: transparent; color: var(--muted); cursor: pointer; font-weight: 700;
}
.lang-btn.active { background: rgba(214,173,89,.16); color: var(--gold-soft); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--text); font-weight: 700;
  background: rgba(255,255,255,.035); transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(239,209,139,.75); }
.btn.gold {
  color: #172027;
  border-color: #e2bd6a;
  background: linear-gradient(135deg, #f0d188 0%, #d3a649 52%, #b47d25 100%);
  box-shadow: 0 10px 38px rgba(214,173,89,.18);
}
.menu-btn { display: none; }

.hero {
  min-height: calc(100svh - 76px);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line-cool);
}
.hero-grid {
  min-height: calc(100svh - 76px);
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  align-items: center; gap: 38px; padding: 70px 0 54px;
}
.eyebrow {
  color: var(--gold-soft); text-transform: uppercase; letter-spacing: .18em;
  font-size: 12px; font-weight: 800; margin-bottom: 18px;
}
h1, h2, h3 { margin: 0; line-height: 1.08; }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500; font-size: clamp(3.4rem, 7vw, 7.2rem);
  letter-spacing: .03em; color: var(--gold-soft); text-shadow: 0 8px 38px rgba(214,173,89,.12);
}
.hero h2 {
  margin-top: 12px; font-weight: 450; font-size: clamp(2rem, 3.4vw, 4rem);
  max-width: 720px; letter-spacing: -.03em;
}
.hero-copy { max-width: 650px; color: #dde3e4; font-size: 18px; margin: 28px 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-keywords {
  display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 35px;
  color: var(--gold-soft); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.hero-keywords span:not(:last-child)::after { content: "•"; margin-left: 20px; opacity: .65; }

.hero-visual {
  min-height: 660px; position: relative; border-radius: 32px; overflow: hidden;
  border: 1px solid rgba(214,173,89,.3);
  background:
    linear-gradient(90deg, rgba(17,32,41,.02) 0%, rgba(17,32,41,.07) 45%, rgba(17,32,41,.94) 74%, #172833 100%),
    url('./tech-gold-source.png') left 20% / 185% auto no-repeat;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.025);
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 52% 45%, rgba(239,209,139,.18), transparent 24%),
    linear-gradient(180deg, rgba(98,148,168,.08), transparent 55%);
}
.hero-visual::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 28%;
  background: linear-gradient(to top, #172833, transparent);
}
.event-stack {
  position: absolute; z-index: 2; right: 5.5%; top: 10%; width: min(310px, 46%);
  display: grid; gap: 14px;
}
.event-card {
  background: rgba(31, 52, 63, .82); border: 1px solid rgba(214,173,89,.44);
  border-radius: 16px; padding: 16px 18px; backdrop-filter: blur(16px);
  box-shadow: 0 14px 35px rgba(2,8,12,.17);
}
.event-card small { display: block; color: var(--gold-soft); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 8px; }
.event-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: #f1f2ef; }
.event-line {
  position: absolute; z-index: 1; right: 34%; top: 24%; width: 25%; height: 47%;
  border-right: 1px solid rgba(214,173,89,.65); border-top: 1px solid rgba(214,173,89,.45);
  opacity: .7;
}
.event-line::before, .event-line::after {
  content:""; position:absolute; width:8px; height:8px; border-radius:50%; background:var(--gold-soft); box-shadow:0 0 18px var(--gold);
}
.event-line::before { left: -2px; top: -4px; }
.event-line::after { right: -4px; bottom: -4px; }

.section { padding: 112px 0; }
.section.alt { background: linear-gradient(180deg, rgba(54,82,95,.24), rgba(16,29,37,.16)); border-block: 1px solid var(--line-cool); }
.section-head { max-width: 800px; margin-bottom: 48px; }
.section h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); font-weight: 520; letter-spacing: -.035em; }
.section p.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #d5dcde; max-width: 790px; }

.story-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 42px; align-items: center; }
.device-flow {
  padding: 34px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(71,105,119,.44), rgba(25,42,52,.76));
  box-shadow: var(--shadow);
}
.flow-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.device {
  min-height: 210px; padding: 20px; border-radius: 22px; background: rgba(7,16,22,.45); border: 1px solid rgba(255,255,255,.08);
}
.device-label { color: var(--gold-soft); text-transform: uppercase; font-size: 11px; letter-spacing: .12em; }
.message-bubble { margin-top: 34px; padding: 13px 15px; border-radius: 16px 16px 16px 4px; background: rgba(214,173,89,.14); border: 1px solid rgba(214,173,89,.28); }
.flow-arrow { color: var(--gold-soft); font-size: 28px; }
.flow-steps { margin-top: 25px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; color: var(--gold-soft); text-transform: uppercase; font-size: 11px; letter-spacing: .12em; }
.flow-steps span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; }

.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: rgba(44,67,78,.42); }
.feature { padding: 28px 24px; min-height: 290px; border-right: 1px solid var(--line-cool); }
.feature:last-child { border-right: 0; }
.feature-icon {
  width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center;
  color: var(--gold-soft); font-size: 23px; margin-bottom: 22px; background: rgba(255,255,255,.025);
}
.feature h3 { color: var(--gold-soft); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 13px; }
.feature p { color: var(--muted); font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status::before { content:""; width: 7px; height: 7px; border-radius:50%; background: currentColor; box-shadow:0 0 12px currentColor; }
.status.confirmed { color: var(--ok); }
.status.developing { color: var(--warn); }
.status.planned { color: var(--plan); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.visual-panel {
  min-height: 520px; border-radius: 28px; border: 1px solid var(--line);
  overflow: hidden; position: relative; box-shadow: var(--shadow);
  background: #1f3440;
}
.visual-panel.ui {
  background:
    linear-gradient(120deg, rgba(16,35,45,.18), rgba(26,43,52,.62)),
    url('./tech-ui-source.jpeg') center / cover no-repeat;
  filter: saturate(.68) sepia(.2);
}
.visual-panel.ui::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(214,173,89,.14), transparent 55%); mix-blend-mode: screen; }
.trust-timeline { padding: 34px; display: grid; gap: 13px; }
.trust-step { padding: 19px 20px; border-radius: 16px; background: rgba(18,33,42,.64); border:1px solid var(--line-cool); position:relative; }
.trust-step:not(:last-child)::after { content:""; position:absolute; left:33px; bottom:-14px; height:14px; width:1px; background:var(--gold); }
.trust-step b { color:var(--gold-soft); }

.status-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(47,71,82,.38); }
.status-table th, .status-table td { padding: 17px 20px; text-align: left; border-bottom: 1px solid var(--line-cool); }
.status-table th { color: var(--gold-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.025); }
.status-table tr:last-child td { border-bottom: 0; }

.cta { padding: 105px 0; text-align:center; }
.cta-box {
  position: relative; overflow:hidden; padding: 70px 28px; border: 1px solid var(--line); border-radius: 30px;
  background: linear-gradient(135deg, rgba(76,111,126,.48), rgba(25,42,52,.84)); box-shadow: var(--shadow);
}
.cta-box::before { content:""; position:absolute; width:420px; height:420px; border-radius:50%; left:50%; top:-310px; transform:translateX(-50%); background:rgba(214,173,89,.18); filter:blur(10px); }
.cta h2 { font-size: clamp(2.4rem, 5vw, 5rem); position:relative; }
.cta p { max-width: 720px; margin: 20px auto 30px; color: var(--muted); position:relative; }
.cta .hero-actions { justify-content:center; position:relative; }

.page-hero { padding: 94px 0 70px; border-bottom: 1px solid var(--line-cool); }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6.2rem); font-weight: 520; letter-spacing: -.045em; max-width: 980px; }
.page-hero p { max-width: 760px; font-size: 19px; color: var(--muted); }
.content-grid { display:grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 54px; align-items:start; }
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 56px 0 18px; }
.prose h2:first-child { margin-top:0; }
.prose h3 { font-size: 1.25rem; color: var(--gold-soft); margin-top: 30px; }
.prose p, .prose li { color:#d6dcde; font-size:17px; }
.prose ul { padding-left: 1.25rem; }
.side-card { position: sticky; top: 105px; padding:24px; border:1px solid var(--line); border-radius:20px; background:rgba(47,71,82,.55); }
.side-card h3 { color: var(--gold-soft); font-size:14px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:14px; }
.side-card p { color: var(--muted); font-size:14px; }

.footer { border-top:1px solid var(--line-cool); background:rgba(7,15,20,.4); }
.footer-grid { min-height: 150px; padding: 36px 0; display:grid; grid-template-columns: 1.1fr 1fr 1fr; gap:30px; align-items:start; }
.footer .brand-word { font-size:20px; }
.footer-copy { color:#aeb8bc; font-size:12px; margin:8px 0 0 52px; }
.footer-links { display:flex; flex-wrap:wrap; gap:12px 24px; font-size:12px; color:#cbd2d4; }
.footer-meta { text-align:right; color:#aeb8bc; font-size:11px; letter-spacing:.04em; }

@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 600px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .feature { border-bottom:1px solid var(--line-cool); }
  .feature:nth-child(even) { border-right:0; }
  .feature:last-child { grid-column:1 / -1; border-bottom:0; }
}

@media (max-width: 840px) {
  .shell { width:min(100% - 28px, var(--max)); }
  .header-inner { grid-template-columns: auto 1fr auto; min-height:66px; gap:12px; }
  .brand-word { font-size:20px; }
  .brand-mark { width:32px; height:37px; font-size:18px; }
  .menu-btn { display:inline-flex; width:44px; height:44px; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.03); color:var(--text); cursor:pointer; }
  .nav {
    position:absolute; left:14px; right:14px; top:72px; display:none; flex-direction:column; gap:0;
    padding:12px; border:1px solid var(--line); border-radius:18px; background:#1d303a; box-shadow:var(--shadow);
  }
  .nav.open { display:flex; }
  .nav a { padding:13px 12px; }
  .nav a::after { display:none; }
  .header-actions .app-link { display:none; }
  .hero-grid { min-height:auto; grid-template-columns:1fr; padding:46px 0 36px; }
  .hero-visual { order:-1; min-height:480px; background-size:200% auto; }
  .event-stack { right:4%; width:48%; }
  .story-grid, .split, .content-grid { grid-template-columns:1fr; }
  .feature-grid { grid-template-columns:1fr; }
  .feature, .feature:nth-child(even), .feature:last-child { border-right:0; border-bottom:1px solid var(--line-cool); grid-column:auto; }
  .feature:last-child { border-bottom:0; }
  .flow-row { grid-template-columns:1fr; }
  .flow-arrow { transform:rotate(90deg); justify-self:center; }
  .side-card { position:static; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-meta { text-align:left; }
  .footer-copy { margin-left:0; }
}

@media (max-width: 560px) {
  .shell { width:min(100% - 22px, var(--max)); }
  .brand-word { letter-spacing:.08em; font-size:18px; }
  .lang-switch { padding:3px; }
  .lang-btn { min-width:36px; padding:8px 7px; }
  .hero h1 { font-size: clamp(3.15rem, 18vw, 5rem); }
  .hero h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-copy { font-size:16px; }
  .hero-visual { min-height:430px; border-radius:22px; background-position:left 18%; background-size:225% auto; }
  .event-stack { top:6%; right:3%; width:54%; gap:9px; }
  .event-card { padding:11px 12px; border-radius:12px; }
  .event-card small { font-size:9px; }
  .event-row { font-size:11px; }
  .event-line { display:none; }
  .hero-keywords { gap:8px 13px; }
  .hero-keywords span:not(:last-child)::after { margin-left:13px; }
  .section { padding:78px 0; }
  .section-head { margin-bottom:32px; }
  .device-flow { padding:20px; }
  .device { min-height:165px; }
  .status-table { display:block; overflow-x:auto; white-space:nowrap; }
  .cta { padding:70px 0; }
  .cta-box { padding:52px 18px; }
  .page-hero { padding:68px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior:auto !important; transition:none !important; }
}
