/* ============================================================
   Rest Cafe Kalkan — Design System
   Archetype : soft-organic  |  Layout : masthead
   Surface   : tonal-layers  |  Shape  : sharp (0-4px)
   Palette   : warm-cream-gold (DESIGN OVERRIDE)
   Fonts     : Eczar (display) + Karla (body)
   ============================================================ */

/* ── Google Fonts loaded in HTML ── */

/* ─────────────────────── TOKENS ─────────────────────── */
:root {
  /* Base tonal stack — warm cream */
  --bg:        #F8F3E8;
  --surface:   #F0E9D5;
  --surface-2: #E7DDBF;
  --surface-3: #DDD0A8;
  --surface-inv: #1C0D00;

  /* Text */
  --text:      #1C0D00;
  --text-2:    #4A2C0A;
  --muted:     #9C7B4A;

  /* Lines */
  --line:      rgba(61, 30, 10, 0.09);
  --line-2:    rgba(61, 30, 10, 0.16);

  /* Accent — gold from brand logo */
  --accent:       #C9A857;
  --accent-dark:  #A68840;
  --accent-light: #E0CA7A;
  --accent-bg:    rgba(201, 168, 87, 0.13);

  /* Coffee brown */
  --brown:     #3D1E0A;
  --brown-mid: #6B3A1A;

  /* Olive tertiary */
  --olive:     #726E4A;

  /* Typography */
  --font-display: 'Eczar', Georgia, serif;
  --font-body:    'Karla', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(56px, 8vw, 96px);

  /* Shape (sharp: 0-4px) */
  --r-sm: 2px;
  --r-md: 3px;
  --r-lg: 4px;

  /* Motion */
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur:      340ms;
}

/* ─────────────────────── RESET ─────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Inline SVG size guard */
li > svg, p > svg, a > svg, button > svg, span > svg,
td > svg, label > svg, h3 > svg, h4 > svg {
  width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em;
}

/* ─────────────────────── SCROLL PROGRESS ─────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 900;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform-origin: left; transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* ─────────────────────── LAYOUT UTILITIES ─────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: var(--section); }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

/* ─────────────────────── TYPOGRAPHY ─────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem);   font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { font-size: 1rem; line-height: 1.68; color: var(--text-2); max-width: 68ch; }
.lead { font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; max-width: 58ch; }

em.serif-accent {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent-dark);
}

/* ─────────────────────── BUTTONS ─────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--brown);
  color: var(--accent-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--r-md);
  transition: background var(--dur) var(--ease-out),
              transform 160ms var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 600ms var(--ease-out);
}
.btn-primary:hover { background: var(--brown-mid); box-shadow: 0 4px 20px rgba(61,30,10,0.2); }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform 160ms var(--ease-out);
}
.btn-secondary:hover { background: var(--surface); border-color: var(--accent); }
.btn-secondary:active { transform: scale(0.97); }
.btn-secondary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-util {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--accent-bg);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease-out);
}
.btn-util:hover { background: rgba(201,168,87,0.22); }

/* Click ripple */
.ripple-origin { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transform: scale(0);
  animation: ripple-expand 500ms var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes ripple-expand { to { transform: scale(4); opacity: 0; } }

/* ─────────────────────── NAV: MASTHEAD ─────────────────────── */
/* Utility bar — scrolls away naturally */
.nav-utility {
  background: var(--brown);
  color: var(--accent-light);
}
.nav-utility .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 8px;
  gap: 16px;
}
.nav-utility a:not(.btn-util) {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity var(--dur) var(--ease-out);
  white-space: nowrap;
}
.nav-utility a:not(.btn-util):hover { opacity: 1; }

/* Brand wordmark — sticky at top:0 */
.nav-brand {
  position: sticky;
  top: 0;
  z-index: 700;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease-out);
}
.nav-brand.scrolled {
  box-shadow: 0 2px 16px rgba(61,30,10,0.10);
  background: rgba(248,243,232,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-brand .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo img { width: 40px; height: 40px; flex-shrink: 0; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-sub {
  font-size: 0.6rem;
  font-family: var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--dur) var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.nav-cta {
  background: var(--accent);
  color: var(--brown);
  padding: 8px 18px;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background var(--dur) var(--ease-out), transform 160ms var(--ease-out);
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--accent-dark); color: var(--bg); }
.nav-links a.nav-cta:active { transform: scale(0.97); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: background var(--dur) var(--ease-out);
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transform-origin: center;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out);
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--text);
  padding: 10px 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), color 200ms;
}
.nav-overlay.open a { opacity: 1; transform: none; }
.nav-overlay a:hover { color: var(--accent-dark); }
.nav-overlay .btn-primary {
  margin-top: 16px;
  font-size: 1rem;
  padding: 16px 36px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), background var(--dur), box-shadow var(--dur);
}
.nav-overlay.open .btn-primary { opacity: 1; transform: none; }

/* ─────────────────────── HERO ─────────────────────── */
.hero {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
  text-align: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; text-align: center; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* ─────────────────────── CONSOLE ─────────────────────── */
.console {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  box-shadow:
    0 2px 8px rgba(61,30,10,0.07),
    0 12px 40px rgba(61,30,10,0.10);
  overflow: visible;
}

/* Float chips */
.console-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(61,30,10,0.12);
  z-index: 10;
}
.chip-1 { top: -16px; right: 72px; animation: float-chip 4s ease-in-out infinite; }
.chip-2 { bottom: -16px; left: 56px; animation: float-chip 4s ease-in-out infinite 2.1s; }

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Console window chrome */
.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.console-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.console-dot:nth-child(1) { background: #E5A47A; }
.console-dot:nth-child(2) { background: #D4C26A; }
.console-dot:nth-child(3) { background: #96C98A; }
.console-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: var(--muted);
}

/* Tabs */
.console-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.console-tabs button {
  padding: 6px 18px;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.console-tabs button[aria-selected="true"] {
  background: var(--accent-bg);
  color: var(--accent-dark);
}
.console-tabs button:hover:not([aria-selected="true"]) {
  background: var(--surface-2);
  color: var(--text-2);
}
.console-tabs button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Console body */
.console-body {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  min-height: 248px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  overflow: hidden;
}

.console-list {
  border-right: 1px solid var(--line);
  padding: 8px;
  overflow-y: auto;
  max-height: 280px;
}

.console-list-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--dur) var(--ease-out);
}
.console-list-item:hover:not(.active) { background: var(--surface-2); }
.console-list-item.active { background: var(--accent-bg); }
.console-list-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.console-list-item strong {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text);
}
.console-list-item span {
  font-size: 0.73rem;
  color: var(--muted);
}

.console-detail {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 0 0 var(--r-lg) 0;
}
.console-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--accent-bg);
  border-radius: var(--r-sm);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  align-self: flex-start;
}
.console-detail h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}
.console-detail p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 100%;
}

/* ─────────────────────── BADGES (logos-of-channels) ─────────────────────── */
.badges {
  padding-block: clamp(28px, 4vw, 40px);
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.badges-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.badge:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(201,168,87,0.15);
}

/* ─────────────────────── CARDS / FEATURE GRID ─────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.card:hover {
  box-shadow: 0 4px 24px rgba(61,30,10,0.10);
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.card .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-bg);
  border-radius: var(--r-sm);
  color: var(--accent-dark);
  flex-shrink: 0;
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.card:hover .ico {
  background: rgba(201,168,87,0.22);
  transform: scale(1.08);
}

.card h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.card p { font-size: 0.9rem; color: var(--text-2); flex: 1; max-width: 100%; }

/* ─────────────────────── COMPARISON TABLE ─────────────────────── */
.comparison {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
}
.comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison thead th {
  padding: 16px 20px;
  background: var(--surface-2);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
}
.comparison thead th:first-child { color: var(--muted); }
.comparison thead th:nth-child(2) { color: var(--accent-dark); }
.comparison tbody tr { border-bottom: 1px solid var(--line); transition: background 180ms; }
.comparison tbody tr:last-child { border-bottom: none; }
.comparison tbody tr:hover { background: var(--surface); }
.comparison tbody td {
  padding: 14px 20px;
  color: var(--text-2);
  vertical-align: middle;
}
.comparison tbody td:first-child { color: var(--text); font-weight: 500; min-width: 200px; }
.comparison tbody td:nth-child(2),
.comparison tbody td:nth-child(3) {
  text-align: center;
}

.check, .cross, .partial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 0.75rem;
}
.check { background: rgba(120,180,100,0.15); color: #4A9A3C; }
.cross { background: rgba(180,80,60,0.12); color: #B44A3A; }
.partial { background: var(--accent-bg); color: var(--accent-dark); font-size: 0.7rem; font-weight: 700; }

/* ─────────────────────── FAQ ─────────────────────── */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.faq-q:hover { background: var(--surface); }
.faq-q[aria-expanded="true"] { color: var(--brown); background: var(--surface); }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  flex-shrink: 0;
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  color: var(--muted);
}
.faq-q[aria-expanded="true"] .faq-icon {
  background: var(--accent-bg);
  color: var(--accent-dark);
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-out), padding 300ms var(--ease-out);
}
.faq-a.open { max-height: 300px; }
.faq-a p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-2);
  max-width: 100%;
}

/* ─────────────────────── CTA BAND ─────────────────────── */
.cta-band {
  background: var(--brown);
  padding-block: clamp(56px, 7vw, 80px);
  text-align: center;
}
.cta-band .container { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-band h2 { color: var(--accent-light); line-height: 1.15; }
.cta-band p  { color: rgba(240,233,213,0.72); max-width: 52ch; }
.cta-band .btn-primary {
  background: var(--accent);
  color: var(--brown);
  margin-top: 8px;
  padding: 16px 36px;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(201,168,87,0.30);
}
.cta-band .btn-primary:hover { background: var(--accent-light); }

/* ─────────────────────── FOOTER ─────────────────────── */
.footer {
  background: var(--surface);
  padding-block: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { font-size: 0.875rem; color: var(--muted); max-width: 38ch; }

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--dur) var(--ease-out);
  position: relative;
  align-self: flex-start;
}
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--dur) var(--ease-out);
}
.footer-links a:hover { color: var(--text); }
.footer-links a:hover::after { width: 100%; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ─────────────────────── FORMS ─────────────────────── */
input, textarea, select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 13px 16px;
  outline: none;
  caret-color: var(--accent-dark);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,87,0.18);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239C7B4A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { display: none; }
.form-success.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 32px;
  text-align: center;
}

/* ─────────────────────── SECTION CENTRED HEADER ─────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-header h2 { margin-top: 4px; }

/* ─────────────────────── SCROLL REVEAL ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

.d1 { transition-delay: 0ms; }
.d2 { transition-delay: 80ms; }
.d3 { transition-delay: 160ms; }
.d4 { transition-delay: 240ms; }
.d5 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .console-float { animation: none; }
  .scroll-progress { display: none; }
  .ripple { display: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─────────────────────── RESPONSIVE 1060px ─────────────────────── */
@media (max-width: 1060px) {
  .nav-links { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ─────────────────────── RESPONSIVE 768px ─────────────────────── */
@media (max-width: 768px) {
  :root { --section: clamp(44px, 10vw, 64px); }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .console-body {
    grid-template-columns: 1fr;
  }
  .console-list {
    border-right: none;
    border-bottom: 1px solid var(--line);
    max-height: 200px;
  }
  .console-detail { border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .chip-1 { right: 16px; }
  .chip-2 { left: 16px; }

  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { justify-content: center; }
}

/* ─────────────────────── RESPONSIVE 480px ─────────────────────── */
@media (max-width: 480px) {
  .console-tabs button { padding: 6px 10px; font-size: 0.74rem; }
  .console-float { font-size: 0.66rem; padding: 5px 10px; }
  .badge { font-size: 0.76rem; padding: 7px 12px; }
}
