/* ============================================================
   ODDITEPS — Design System
   Concept: a software studio's own "build console" — dark,
   schematic hero panels with a live status-console signature,
   paired with clean paper-white content sections for readability.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root{
  /* Core palette */
  --ink:        #0B1220;
  --ink-soft:   #121B2C;
  --ink-card:   #16213A;
  --ink-border: rgba(234,240,246,0.10);
  --paper:      #EEF1F4;
  --paper-2:    #FFFFFF;
  --line:       #DCE1E8;

  --text:          #0B1220;
  --text-muted:    #5B6472;
  --text-faint:    #8A93A3;
  --inverse:       #EAF0F6;
  --inverse-muted: #93A1B4;

  --amber:      #FFB100;
  --amber-ink:  #402900;
  --mint:       #2FD48F;
  --mint-ink:   #06301F;
  --red:        #E5484D;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --container: 1180px;
  --shadow-card: 0 1px 2px rgba(11,18,32,0.04), 0 12px 28px -14px rgba(11,18,32,0.18);
  --shadow-dark: 0 20px 60px -24px rgba(0,0,0,0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 700;
}
p{ margin: 0 0 1em; }
button{ font-family: inherit; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior:auto !important; }
}

:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--amber);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom: 14px;
  text-transform: lowercase;
}
.eyebrow::before{
  content:"";
  width:7px; height:7px; border-radius:50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(47,212,143,0.18);
  flex-shrink:0;
}
.eyebrow.on-light{ color:#8A5B00; }

.section{ padding: 96px 0; }
.section-tight{ padding: 64px 0; }
@media (max-width: 720px){
  .section{ padding: 64px 0; }
  .section-tight{ padding: 44px 0; }
}

.section-head{ max-width: 620px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(28px, 3.6vw, 40px); }
.section-head p{ color: var(--text-muted); font-size: 17px; margin:0; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.dark{ background: var(--ink); color: var(--inverse); }
.dark .text-muted{ color: var(--inverse-muted); }
.dark h2, .dark h3, .dark h4{ color: var(--inverse); }

.text-muted{ color: var(--text-muted); }
.mono{ font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  background: transparent;
  appearance: none;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn-amber{ background: var(--amber); color: var(--amber-ink); }
.btn-amber:hover{ box-shadow: 0 10px 24px -10px rgba(255,177,0,0.55); }

.btn-outline-dark{ border-color: rgba(234,240,246,0.28); color: var(--inverse); }
.btn-outline-dark:hover{ border-color: var(--amber); color: var(--amber); }

.btn-outline{ border-color: var(--line); color: var(--text); background:#fff; }
.btn-outline:hover{ border-color: var(--ink); }

.btn-ghost-dark{ color: var(--inverse-muted); }
.btn-ghost-dark:hover{ color: var(--inverse); }

.btn-block{ width:100%; }
.btn-sm{ padding: 9px 16px; font-size: 13.5px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(11,18,32,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-border);
}
.header-inner{
  display:flex; align-items:center; gap: 28px;
  height: 76px;
}
.brand{ display:flex; align-items:center; gap:10px; margin-right: auto; }
.brand-mark{
  width: 36px; height:36px; border-radius: 9px;
  background: linear-gradient(155deg, var(--amber), #ff8a00);
  color: #201200;
  font-family: var(--font-mono); font-weight:700; font-size:13px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.brand-name{ font-family: var(--font-display); font-weight:700; font-size: 19px; color: var(--inverse); letter-spacing: -0.01em; }
.brand-dot{ color: var(--amber); }

.main-nav{ display:flex; align-items:center; gap: 30px; }
.main-nav a{
  font-size: 14.5px; font-weight:500; color: var(--inverse-muted);
  position: relative; padding: 6px 0;
  transition: color .15s ease;
}
.main-nav a:hover{ color: var(--inverse); }
.main-nav a.active{ color: var(--inverse); }
.main-nav a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-4px; height:2px;
  background: var(--amber); border-radius:2px;
}

.header-cta{ flex-shrink:0; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width: 40px; height: 40px; background:transparent; border:1px solid var(--ink-border);
  border-radius: 8px; cursor:pointer; flex-shrink:0;
}
.nav-toggle span{ display:block; height:2px; width:18px; margin:0 auto; background: var(--inverse); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px){
  .main-nav{
    position: absolute; top: 76px; left:0; right:0;
    background: var(--ink); border-bottom: 1px solid var(--ink-border);
    flex-direction: column; align-items: flex-start; gap:0;
    padding: 8px 24px 18px;
    display:none;
  }
  .main-nav.open{ display:flex; }
  .main-nav a{ width:100%; padding: 12px 0; border-bottom: 1px solid var(--ink-border); }
  .main-nav a.active::after{ display:none; }
  .main-nav a.active{ color: var(--amber); }
  .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{
  background:
    radial-gradient(700px 320px at 85% -10%, rgba(255,177,0,0.14), transparent 60%),
    var(--ink);
  position: relative;
  overflow:hidden;
  padding: 76px 0 90px;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(234,240,246,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234,240,246,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 78%);
  pointer-events:none;
}
.hero-inner{
  position: relative;
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items:center;
}
.hero h1{
  font-size: clamp(32px, 4.4vw, 54px);
  color: var(--inverse);
  max-width: 15ch;
}
.hero h1 em{ font-style:normal; color: var(--amber); }
.hero-sub{
  color: var(--inverse-muted);
  font-size: 17.5px;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-cta-row{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 34px; }

.hero-meta{
  display:flex; gap: 26px; flex-wrap:wrap;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--inverse-muted);
}
.hero-meta strong{ color: var(--inverse); font-weight:600; }

/* status console */
.console{
  background: var(--ink-soft);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
  overflow:hidden;
}
.console-bar{
  display:flex; align-items:center; gap:8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-border);
  background: rgba(255,255,255,0.02);
}
.console-dot{ width:9px; height:9px; border-radius:50%; }
.console-dot.r{ background:#E5484D; }
.console-dot.y{ background:#FFB100; }
.console-dot.g{ background:#2FD48F; }
.console-title{ margin-left: 8px; font-family: var(--font-mono); font-size:12px; color: var(--inverse-muted); }
.console-body{ padding: 22px 20px 24px; font-family: var(--font-mono); font-size: 13.5px; }
.console-line{ color: var(--inverse-muted); margin-bottom: 14px; }
.console-line .prompt{ color: var(--mint); }
.console-row{
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(234,240,246,0.09);
}
.console-row:last-of-type{ border-bottom:none; }
.console-row .svc{ color: var(--inverse); }
.console-row .arrow{ color: var(--inverse-muted); margin-right:8px; }
.status-pill{
  font-size: 10.5px; font-weight:600; letter-spacing:.04em;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(47,212,143,0.12); color: var(--mint);
  border: 1px solid rgba(47,212,143,0.28);
  flex-shrink:0;
}
.console-cursor{
  display:inline-block; width:7px; height:14px; background: var(--amber);
  margin-left:6px; vertical-align:middle;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

@media (max-width: 940px){
  .hero-inner{ grid-template-columns: 1fr; }
}

/* ---------- Marquee / trust strip ---------- */
.trust-strip{
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.trust-strip .container{
  display:flex; align-items:center; gap: 34px; flex-wrap:wrap; justify-content:center;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint);
  letter-spacing: .02em;
}
.trust-strip strong{ color: var(--text); }

/* ---------- Cards ---------- */
.grid{ display:grid; gap: 22px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .grid-4{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px){
  .grid-3, .grid-2, .grid-4{ grid-template-columns: 1fr; }
}

.card{
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{ transform: translateY(-3px); border-color: rgba(255,177,0,0.4); box-shadow: 0 16px 34px -18px rgba(11,18,32,0.28); }

.card-index{
  font-family: var(--font-mono); font-size: 12px; color: var(--amber-ink);
  background: #FFF3D6; border-radius: 6px; padding: 3px 8px; display:inline-block; margin-bottom:16px;
}
.card-icon{
  width: 46px; height:46px; border-radius: 11px;
  background: var(--ink); color: var(--amber);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}
.card-icon svg{ width:22px; height:22px; }
.card h3{ font-size: 19px; margin-bottom: 8px; }
.card p{ color: var(--text-muted); font-size: 15px; margin-bottom: 14px; }
.card ul{ margin-bottom: 6px; }
.card ul li{
  font-size: 14px; color: var(--text-muted); padding-left: 18px; position:relative; margin-bottom:6px;
}
.card ul li::before{
  content:"→"; position:absolute; left:0; color: var(--amber-ink); font-size:12px; top:2px;
}
.card-link{ font-size: 14px; font-weight:600; color: var(--text); display:inline-flex; align-items:center; gap:6px; margin-top:6px; }
.card-link svg{ width:14px; height:14px; transition: transform .15s ease; }
.card:hover .card-link svg{ transform: translateX(3px); }

/* dark variant cards (for hire-developer / products on dark bg) */
.card-dark{
  background: var(--ink-card);
  border: 1px solid var(--ink-border);
  color: var(--inverse);
}
.card-dark h3{ color: var(--inverse); }
.card-dark p, .card-dark ul li{ color: var(--inverse-muted); }
.card-dark .card-link{ color: var(--amber); }
.card-dark:hover{ border-color: rgba(255,177,0,0.45); }

/* Product card (larger, feature-style) */
.product-card{
  background: var(--ink-card);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  display:grid; grid-template-columns: 1fr;
  gap: 18px;
}
.product-tag{
  font-family: var(--font-mono); font-size:11.5px; letter-spacing:.05em;
  color: var(--mint); background: rgba(47,212,143,0.1); border:1px solid rgba(47,212,143,0.25);
  padding: 4px 10px; border-radius: 999px; display:inline-flex; width:fit-content; margin-bottom:6px;
}
.product-card h3{ color: var(--inverse); font-size: 24px; }
.product-card p{ color: var(--inverse-muted); }
.product-feature-list{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 6px 0 10px; }
.product-feature-list li{
  font-size: 13.5px; color: var(--inverse-muted); padding-left:18px; position:relative;
}
.product-feature-list li::before{ content:"✓"; position:absolute; left:0; color: var(--mint); }
@media (max-width: 560px){ .product-feature-list{ grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats-row{
  display:grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  background: var(--ink-border);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  overflow:hidden;
}
.stat{ background: var(--ink-soft); padding: 28px 22px; text-align:center; }
.stat .num{ font-family: var(--font-display); font-size: clamp(26px,3vw,36px); font-weight:700; color: var(--amber); }
.stat .label{ font-family: var(--font-mono); font-size: 12px; color: var(--inverse-muted); margin-top:6px; }
@media (max-width: 760px){ .stats-row{ grid-template-columns: repeat(2,1fr); } }

/* ---------- Timeline / process (commit log style) ---------- */
.commit-log{ border-left: 2px solid var(--line); margin-left: 10px; }
.commit{ position:relative; padding: 0 0 34px 30px; }
.commit:last-child{ padding-bottom:0; }
.commit::before{
  content:""; position:absolute; left:-7px; top:2px; width:12px; height:12px; border-radius:50%;
  background: var(--paper-2); border: 2px solid var(--amber);
}
.commit-hash{ font-family: var(--font-mono); font-size:12px; color: var(--amber-ink); background:#FFF3D6; padding:2px 8px; border-radius:5px; }
.commit h4{ margin: 10px 0 4px; font-size: 18px; }
.commit p{ color: var(--text-muted); font-size:14.5px; margin:0; }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 56px;
  display:flex; align-items:center; justify-content:space-between; gap: 30px; flex-wrap:wrap;
  position: relative; overflow:hidden;
}
.cta-band::before{
  content:""; position:absolute; right:-60px; top:-60px; width:220px; height:220px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,177,0,0.22), transparent 70%);
}
.cta-band h2{ color: var(--inverse); font-size: clamp(24px,2.6vw,32px); max-width: 20ch; margin-bottom:8px; }
.cta-band p{ color: var(--inverse-muted); margin:0; }
.cta-band-actions{ display:flex; gap:14px; flex-wrap:wrap; }
@media (max-width: 720px){ .cta-band{ padding: 36px 24px; } }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: var(--inverse-muted); padding: 64px 0 0; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid var(--ink-border);
}
.footer-brand p{ font-size: 14.5px; max-width: 34ch; }
.footer-status{ font-family: var(--font-mono); font-size:12px; display:flex; align-items:center; gap:8px; color: var(--mint); margin-top:14px; }
.footer-status .dot{ width:7px; height:7px; border-radius:50%; background: var(--mint); box-shadow:0 0 0 3px rgba(47,212,143,0.18); }
.footer-col h5{ color: var(--inverse); font-family: var(--font-mono); font-size: 12.5px; letter-spacing:.05em; text-transform:uppercase; margin-bottom:16px; }
.footer-col li{ margin-bottom: 11px; font-size: 14.5px; }
.footer-col a:hover{ color: var(--inverse); }
.footer-contact li{ font-size:14.5px; margin-bottom:12px; display:flex; gap:10px; align-items:flex-start; }
.footer-contact svg{ width:16px; height:16px; flex-shrink:0; margin-top:3px; color: var(--amber); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
  padding: 22px 0; font-size: 13px;
}
.footer-social{ display:flex; gap:10px; }
.footer-social a{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--ink-border);
  display:flex; align-items:center; justify-content:center; transition: border-color .15s ease, color .15s ease;
}
.footer-social a:hover{ border-color: var(--amber); color: var(--amber); }
.footer-social svg{ width:15px; height:15px; }

@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header{
  background: var(--ink);
  padding: 56px 0 64px;
  position:relative; overflow:hidden;
}
.page-header::before{
  content:"";
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(234,240,246,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(234,240,246,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 30% 0%, rgba(0,0,0,0.9), transparent 70%);
}
.breadcrumb{ font-family: var(--font-mono); font-size:12.5px; color: var(--inverse-muted); position:relative; margin-bottom:14px; }
.breadcrumb a:hover{ color: var(--amber); }
.page-header h1{ color: var(--inverse); font-size: clamp(30px,4vw,46px); max-width:22ch; position:relative; }
.page-header p{ color: var(--inverse-muted); max-width:56ch; font-size:16.5px; position:relative; margin:0; }

/* ---------- Detail rows (services / hire developer pages) ---------- */
.detail-row{
  display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items:center;
  padding: 56px 0; border-bottom: 1px solid var(--line);
}
.detail-row:last-child{ border-bottom:none; }
.detail-row.reverse{ direction: rtl; }
.detail-row.reverse > *{ direction: ltr; }
.detail-num{ font-family: var(--font-mono); color: var(--amber-ink); background:#FFF3D6; padding:4px 10px; border-radius:6px; font-size:12.5px; display:inline-block; margin-bottom:16px; }
.detail-row h3{ font-size: clamp(22px,2.6vw,28px); margin-bottom:12px; }
.detail-row p{ color: var(--text-muted); font-size:16px; }
.detail-list{ display:grid; gap:10px; margin-top:18px; }
.detail-list li{ display:flex; gap:10px; align-items:flex-start; font-size:14.5px; color: var(--text-muted); }
.detail-list svg{ width:18px; height:18px; color: var(--mint); flex-shrink:0; margin-top:2px; }
.detail-visual{
  background: var(--ink);
  border-radius: var(--radius-lg);
  min-height: 260px;
  padding: 28px;
  color: var(--inverse-muted);
  font-family: var(--font-mono); font-size: 13px;
  display:flex; flex-direction:column; justify-content:center;
  box-shadow: var(--shadow-dark);
}
.detail-visual .k{ color: var(--amber); }
.detail-visual .line{ margin-bottom:8px; }
@media (max-width: 860px){
  .detail-row, .detail-row.reverse{ grid-template-columns: 1fr; direction:ltr; }
}

/* ---------- Engagement model pills (hire developer) ---------- */
.pill-row{ display:flex; gap:10px; flex-wrap:wrap; margin: 18px 0 0; }
.pill{
  font-family: var(--font-mono); font-size:12.5px; padding:7px 14px; border-radius:999px;
  border:1px solid var(--line); color: var(--text-muted);
}

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:start; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }

.contact-info-card{
  background: var(--ink); color: var(--inverse); border-radius: var(--radius-lg);
  padding: 34px; margin-bottom: 22px;
}
.contact-info-card h3{ color: var(--inverse); font-size:19px; }
.contact-info-list{ display:grid; gap: 18px; margin-top:20px; }
.contact-info-list li{ display:flex; gap:14px; align-items:flex-start; }
.contact-info-list .ic{
  width:38px; height:38px; border-radius:10px; background: rgba(255,177,0,0.12); color: var(--amber);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-info-list .ic svg{ width:18px; height:18px; }
.contact-info-list .lbl{ font-family: var(--font-mono); font-size:11.5px; color: var(--inverse-muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:3px; }
.contact-info-list .val{ font-size:15px; color: var(--inverse); }
.contact-info-list a.val:hover{ color: var(--amber); }

.map-embed{ border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--line); height: 260px; }
.map-embed iframe{ width:100%; height:100%; border:0; display:block; }

.form-card{ background: var(--paper-2); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card); }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.field{ margin-bottom: 18px; }
.field label{ display:block; font-size:13px; font-weight:600; margin-bottom:7px; color: var(--text); }
.field .req{ color: var(--red); }
.field input, .field select, .field textarea{
  width:100%; padding: 12px 14px; border-radius: 9px; border: 1px solid var(--line);
  font-family: var(--font-body); font-size:14.5px; background: var(--paper); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,177,0,0.15); background:#fff;
}
.field textarea{ resize: vertical; min-height: 120px; }
.form-note{ font-size:12.5px; color: var(--text-faint); margin-top:10px; }
.form-success{
  display:none; align-items:center; gap:10px; background:#EAFBF3; border:1px solid rgba(47,212,143,0.35);
  color: var(--mint-ink); padding:14px 16px; border-radius:10px; font-size:14px; margin-bottom:18px;
}
.form-success.show{ display:flex; }
.form-success svg{ width:18px; height:18px; color: var(--mint); flex-shrink:0; }

.form-error{
  display:none; align-items:center; gap:10px; background:#FDEDED; border:1px solid rgba(229,72,77,0.35);
  color: #7A1519; padding:14px 16px; border-radius:10px; font-size:14px; margin-bottom:18px;
}
.form-error.show{ display:flex; }
.form-error svg{ width:18px; height:18px; color: var(--red); flex-shrink:0; }
.form-error a{ text-decoration: underline; }

.field-error{
  display:none; color: var(--red); font-size: 12.5px; margin: 8px 0 0;
}
.g-recaptcha{ transform: scale(1); transform-origin: 0 0; }

/* ---------- Legal pages ---------- */
.legal-body{ max-width: 780px; }
.legal-body h2{ font-size: 21px; margin-top: 40px; }
.legal-body h2:first-child{ margin-top:0; }
.legal-body p, .legal-body li{ color: var(--text-muted); font-size: 15.5px; }
.legal-body ul{ margin: 0 0 18px; padding-left: 4px; }
.legal-body ul li{ padding-left: 20px; position:relative; margin-bottom: 8px; }
.legal-body ul li::before{ content:"—"; position:absolute; left:0; color: var(--text-faint); }
.legal-updated{
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint);
  border: 1px solid var(--line); display:inline-block; padding:6px 12px; border-radius: 999px; margin-bottom: 26px;
}
.legal-toc{ background: var(--paper-2); border:1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom:36px; }
.legal-toc h5{ font-family: var(--font-mono); font-size:12px; text-transform:uppercase; letter-spacing:.05em; color: var(--text-faint); margin-bottom:12px; }
.legal-toc ol{ margin:0; padding-left: 18px; }
.legal-toc li{ font-size:14px; margin-bottom:6px; }
.legal-toc a:hover{ color: var(--amber-ink); text-decoration: underline; }
.legal-callout{
  background: #FFF9EB; border: 1px solid #FBE3AC; color: #5C3F00;
  border-radius: var(--radius); padding: 16px 18px; font-size: 14px; margin-bottom: 30px;
}

/* ---------- About page ---------- */
.about-hero{ display:grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items:center; }
@media (max-width: 900px){ .about-hero{ grid-template-columns: 1fr; } }
.value-card{ padding: 24px; }
.value-card .num{ font-family: var(--font-mono); font-size: 13px; color: var(--amber-ink); background:#FFF3D6; padding: 2px 8px; border-radius:5px; display:inline-block; margin-bottom:14px; }

/* ---------- back to top ---------- */
.back-to-top{
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height:46px; border-radius:50%;
  background: var(--ink); color: var(--amber); border: 1px solid var(--ink-border);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  opacity:0; pointer-events:none; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--shadow-dark);
}
.back-to-top.show{ opacity:1; pointer-events:auto; transform:none; }
.back-to-top svg{ width:18px; height:18px; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner{
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200;
  max-width: 640px; margin: 0 auto;
  background: var(--ink);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
  padding: 22px 24px;
  display: none;
  opacity: 0; transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease;
}
.cookie-banner.show{ display:block; }
.cookie-banner.in{ opacity:1; transform:none; }
.cookie-banner-head{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.cookie-banner-head .ic{
  width: 30px; height:30px; border-radius:8px; background: rgba(255,177,0,0.12); color: var(--amber);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.cookie-banner-head .ic svg{ width:16px; height:16px; }
.cookie-banner-head h4{ margin:0; font-size:15px; color: var(--inverse); }
.cookie-banner p{
  font-size: 13.5px; color: var(--inverse-muted); margin: 0 0 16px; line-height:1.55;
}
.cookie-banner p a{ color: var(--amber); text-decoration: underline; }
.cookie-banner-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.cookie-banner-actions .btn{ padding: 10px 18px; font-size: 13.5px; }
@media (max-width: 480px){
  .cookie-banner{ left:12px; right:12px; bottom:12px; padding:18px 18px; }
  .cookie-banner-actions{ flex-direction: column; }
  .cookie-banner-actions .btn{ width:100%; }
}

/* ---------- reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ---------- misc utilities ---------- */
.flex{ display:flex; }
.items-center{ align-items:center; }
.gap-10{ gap:10px; }
.mt-0{ margin-top:0; }
.center-text{ text-align:center; }
