/* OgraNet site — tokens mirror core/ui/theme/OgraNetPalette.kt */
:root {
  --accent: #14B8A6;
  --accent-subtle: #5EEAD4;
  --accent-muted: #2F6B66;
  --fg: #FFFFFF;
  --fg-subtle: #BEBDC0;
  --fg-muted: #6E6B76;
  --bg: #0E0C14;
  --bg-subtle: #17151C;
  --bg-muted: #1F1E23;
  --bg-accent: #0F1F1E;
  --bg-gradient-end: #1E4A47;
  --border: #49474D;
  --border-subtle: #2C2B2F;
  --green: #16FFA2;
  --error: #FF1649;
  --yellow: #DCFF16;

  /* rgb triplets for rgba() — keep in sync with the hex tokens above */
  --accent-rgb: 20, 184, 166;
  --accent-muted-rgb: 30, 74, 71;
  --bg-rgb: 14, 12, 20;
  --bg-subtle-rgb: 23, 21, 28;
  --bg-accent-rgb: 15, 31, 30;

  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-subtle); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
p { margin: 0; overflow-wrap: anywhere; }
ul { margin: 0; padding-left: 1.2em; }
li { margin: 0.35em 0; }

/* background halo — like OgraNetBackground (teal halo at the bottom) */
.halo {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 108%, rgba(var(--accent-rgb), 0.45) 0%, rgba(var(--accent-muted-rgb), 0.35) 40%, rgba(var(--bg-rgb), 0) 75%),
    radial-gradient(40% 30% at 85% -10%, rgba(var(--accent-rgb), 0.12) 0%, rgba(var(--bg-rgb), 0) 70%),
    var(--bg);
}

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

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(var(--bg-rgb), 0.7);
  border-bottom: 1px solid var(--border-subtle);
}
.nav .container { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 18px; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--fg-subtle); font-size: 14px; white-space: nowrap; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  max-width: 100%; text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--bg); box-shadow: 0 0 0 0 rgba(var(--accent-rgb),0); }
.btn-primary:hover { box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.35); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--fg-subtle); }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* hero */
.hero { padding: 88px 0 72px; text-align: center; }
.hero-logo {
  width: 132px; height: 132px; margin: 0 auto 28px;
  filter: drop-shadow(0 0 32px rgba(var(--accent-rgb), 0.45));
}
.eyebrow {
  display: inline-block; color: var(--accent-subtle); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; max-width: 14ch; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--accent-subtle); }
.hero .lead { color: var(--fg-subtle); font-size: clamp(16px, 2vw, 20px); max-width: 56ch; margin: 22px auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.hero-note { margin-top: 18px; color: var(--fg-muted); font-size: 13px; }

/* sections */
section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: clamp(26px, 3.6vw, 40px); }
.section-title p { color: var(--fg-subtle); margin-top: 10px; max-width: 60ch; margin-inline: auto; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: linear-gradient(180deg, rgba(var(--bg-subtle-rgb),0.9), rgba(var(--bg-subtle-rgb),0.6));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 26px;
  min-width: 0;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-accent); color: var(--accent-subtle); border: 1px solid var(--accent-muted); margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--fg-subtle); font-size: 15px; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--radius); border: 1px solid var(--border-subtle); background: var(--bg-subtle); min-width: 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--fg-subtle); font-size: 15px; }

.banner {
  border-radius: 28px; padding: 48px 32px; text-align: center;
  background: radial-gradient(80% 120% at 50% 120%, rgba(var(--accent-rgb),0.35), rgba(var(--bg-accent-rgb),0.9) 60%, var(--bg-subtle));
  border: 1px solid var(--accent-muted);
}
.banner h2 { font-size: clamp(24px, 3.4vw, 36px); }
.banner p { color: var(--fg-subtle); margin: 12px auto 26px; max-width: 52ch; }

/* footer */
footer { border-top: 1px solid var(--border-subtle); padding: 36px 0; color: var(--fg-muted); font-size: 13px; }
footer .container { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
footer a { color: var(--fg-subtle); }
footer .copy { flex: 1 1 100%; }

/* documents (privacy, support) */
.doc { padding: 56px 0 80px; }
.doc-head { margin-bottom: 40px; }
.doc-head h1 { font-size: clamp(30px, 4.5vw, 48px); }
.doc-head .meta { color: var(--fg-muted); margin-top: 10px; font-size: 14px; }
.doc-body { max-width: 760px; }
.doc-body h2 { font-size: 22px; margin: 40px 0 12px; }
.doc-body h3 { font-size: 17px; margin: 24px 0 8px; color: var(--fg); }
.doc-body p, .doc-body li { color: var(--fg-subtle); }
.doc-body p + p { margin-top: 12px; }
.doc-body ul { margin: 10px 0; }
.doc-body strong { color: var(--fg); font-weight: 600; }
.callout {
  border-left: 3px solid var(--accent); background: var(--bg-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px; margin: 20px 0;
}
.callout p { color: var(--fg); }

.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 8px 0 40px; }
.contact {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border-subtle); background: var(--bg-subtle); color: var(--fg); min-width: 0;
}
.contact:hover { text-decoration: none; border-color: var(--accent-muted); }
.contact .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-accent); color: var(--accent-subtle); border: 1px solid var(--accent-muted); }
.contact .icon svg { width: 20px; height: 20px; }
.contact strong { font-size: 16px; }
.contact span { color: var(--fg-subtle); font-size: 14px; }
.contact .value { color: var(--accent-subtle); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact .tag { font-size: 12px; color: var(--green); letter-spacing: 0.08em; text-transform: uppercase; }

details { border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--bg-subtle); padding: 0 18px; margin: 10px 0; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); flex: 0 0 auto; }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 16px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--bg-muted); padding: 2px 6px; border-radius: 6px; color: var(--fg); }

@media (max-width: 720px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.keep) { display: none; }
  .hero { padding: 56px 0 48px; }
  section { padding: 52px 0; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  footer .links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* contact form (static demo, no backend) */
.form-card { border: 1px solid var(--border-subtle); border-radius: var(--radius); background: var(--bg-subtle); padding: 28px; margin: 8px 0 40px; max-width: 760px; }
.form-card h2 { font-size: 22px; margin: 0 0 6px; }
.form-card > p { color: var(--fg-subtle); margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-subtle); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-muted); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.2); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-subtle) 50%), linear-gradient(135deg, var(--fg-subtle) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-foot small { color: var(--fg-muted); font-size: 13px; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success .check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-accent); border: 1px solid var(--accent-muted); color: var(--green); }
.form-success .check svg { width: 30px; height: 30px; }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--fg-subtle); max-width: 46ch; margin: 0 auto 22px; }
