:root {
  --bg: #faf7f2;
  --bg-alt: #f2ece2;
  --surface: #ffffff;
  --navy: #0d1b2a;
  --navy-soft: #1b2e44;
  --copper: #b45309;
  --copper-bright: #d97706;
  --copper-soft: #fef3c7;
  --text: #1f2937;
  --muted: #5b6472;
  --border: #e5ddd0;
  --success: #0f766e;
  --success-bg: #ccfbf1;
  --dev: #92400e;
  --dev-bg: #fef3c7;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 22px 48px rgba(13, 27, 42, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  border: 2px solid var(--copper-bright);
}
.brand span b { color: var(--copper); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-soft);
}
.nav-links a:hover { color: var(--copper); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.lang-switch {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.52rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.18s ease;
}
.lang-btn.active {
  background: var(--navy);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--copper), var(--copper-bright));
  color: #fff;
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.25);
}
.btn-secondary {
  background: var(--navy);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.84rem; }

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  background: radial-gradient(circle at 85% 15%, rgba(217, 119, 6, 0.12), transparent 45%),
              radial-gradient(circle at 10% 85%, rgba(13, 27, 42, 0.06), transparent 45%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2.5rem;
  align-items: center;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pill-navy { background: var(--navy); color: #fff; }
.pill-dev { background: var(--dev-bg); color: var(--dev); border: 1px solid #f59e0b; }
.pill-ready { background: var(--success-bg); color: var(--success); border: 1px solid #5eead4; }

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--copper);
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.7rem;
  max-width: 60ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}
.hero-note {
  font-size: 0.86rem;
  color: var(--muted);
  border-left: 3px solid var(--copper);
  padding-left: 0.85rem;
}
.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  border-radius: calc(var(--radius) - 6px);
  width: 100%;
  cursor: zoom-in;
}

/* Sections */
.section { padding: 4.2rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--navy); color: #f8fafc; }
.section-dark .section-sub { color: #cbd5e1; }
.section-dark h2 { color: #fff; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--copper);
  margin: 0 0 0.5rem;
}
.section-dark .eyebrow { color: #fbbf24; }
.section-head {
  max-width: 760px;
  margin-bottom: 2.3rem;
}
.section-head h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
.section-sub { color: var(--muted); margin: 0; font-size: 1.03rem; }

/* Cards Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.55rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--copper-soft);
  color: var(--copper);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
}
.card h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--navy);
}
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Modules */
.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.module-top h3 { margin: 0; font-size: 1.15rem; color: var(--navy); }
.module-card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.module-card li { margin-bottom: 0.35rem; }

/* Interactive Simulator */
.sim-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.6rem;
  align-items: stretch;
}
.sim-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.sim-commands {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cmd-btn {
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: 0.16s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
}
.cmd-btn:hover, .cmd-btn.active {
  background: var(--copper);
  border-color: var(--copper-bright);
}
.cmd-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  white-space: nowrap;
}
.sim-state-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 1rem;
}
.sim-state-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: #fbbf24;
  color: var(--navy);
  font-weight: 700;
}
.sim-screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.sim-box {
  background: rgba(13, 27, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
}
.sim-box h4 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fbbf24;
}
.sim-box p, .sim-box ul {
  margin: 0;
  font-size: 0.86rem;
  color: #e2e8f0;
}
.sim-box ul { padding-left: 1rem; }
.sim-earpiece { grid-column: 1 / -1; border-color: rgba(251, 191, 36, 0.45); }

/* Gallery */
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.gallery-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fcfaf6;
  border-bottom: 1px solid var(--border);
  padding: 0.65rem;
}
.gallery-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  border-radius: 6px;
}
.gallery-body { padding: 1.2rem; }
.gallery-body h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--navy); }
.gallery-body p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Creator */
.creator-box {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.creator-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
}
.creator-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.18rem;
  color: var(--navy);
  border-left: 3px solid var(--copper);
  padding-left: 1rem;
  margin: 1rem 0;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.72rem 0.88rem;
  border: 1px solid #d5cbbd;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--copper-bright);
  border-color: var(--copper-bright);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-status.ok { background: var(--success-bg); color: var(--success); border: 1px solid #5eead4; }
.form-status.err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 2.4rem 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a:hover { color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.9);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 94vw; border-radius: 12px; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: #fff;
  color: var(--navy);
  border: 0;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .sim-wrap, .contact-grid, .creator-box { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .mobile-toggle { display: inline-block; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 0.6rem; }
  .header-actions { width: 100%; justify-content: space-between; }
  .lang-btn { padding: 0.25rem 0.42rem; font-size: 0.72rem; }
  .grid-3, .grid-2, .grid-4, .form-row, .sim-screens { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
  .creator-box { padding: 1.3rem; }
}
