/* ══════════════════════════════════════════════════════════════
   THE REAL LAB — Design System
   Brand: Cloud Dancer · Baltic Sea · Veiled Vista · Ink
   Typography: Cormorant Garamond + DM Sans + DM Mono
   ══════════════════════════════════════════════════════════════ */

:root {
  --cloud:    #F0EEE9;
  --fog:      #E4E2DC;
  --mist:     #D0CFC8;
  --warm:     #E8E0D4;
  --slate:    #2A2D35;
  --ink:      #1A1C22;
  --baltic:   #7AB6D9;
  --veiled:   #C8E4CA;
  --blush:    #E8A598;
  --gold:     #D5CD94;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cloud);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 56px; height: 72px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(240,238,233,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26,28,34,0.07);
  transition: background 0.3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 28px; height: 28px; position: relative; flex-shrink: 0;
}
.nlm-outer {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--baltic);
  animation: spin 12s linear infinite;
}
.nlm-inner {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--veiled);
  animation: spin 8s linear infinite reverse;
}
.nlm-dot {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--baltic);
}
@keyframes spin { to { transform: rotate(360deg); } }
.nav-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 500;
  letter-spacing: 0.08em; color: var(--ink);
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  opacity: 0.6; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-cta {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink) !important; opacity: 1 !important;
  padding: 10px 22px;
  border: 1px solid rgba(26,28,34,0.25);
  transition: background 0.25s, border-color 0.25s, color 0.25s !important;
}
.nav-cta:hover { background: var(--ink) !important; color: var(--cloud) !important; border-color: var(--ink) !important; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 4px 0; transition: 0.3s; }

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--baltic); color: var(--ink);
  padding: 14px 32px; text-decoration: none;
  transition: background 0.25s, transform 0.2s;
  display: inline-block; border: none; cursor: pointer;
  font-weight: 400;
}
.btn-primary:hover { background: var(--cloud); transform: translateY(-1px); }
.btn-primary.dark { background: var(--ink); color: var(--cloud); }
.btn-primary.dark:hover { background: var(--baltic); color: var(--ink); }

.btn-ghost {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(240,238,233,0.5); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--cloud); }
.btn-ghost::after { content: '→'; font-size: 14px; }
.btn-ghost.dark { color: rgba(26,28,34,0.45); }
.btn-ghost.dark:hover { color: var(--ink); }
.btn-ghost.dark::after { content: '→'; }

.btn-outline {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); padding: 14px 32px;
  border: 1px solid rgba(26,28,34,0.2);
  text-decoration: none; display: inline-block;
  transition: background 0.25s, border-color 0.25s;
}
.btn-outline:hover { background: var(--ink); color: var(--cloud); border-color: var(--ink); }

/* ── SECTION UTILITIES ── */
.section-pad { padding: 120px 72px; }
.section-pad-sm { padding: 80px 72px; }
.kicker {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(26,28,34,0.6); margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.5; }
.kicker.light { color: var(--baltic); }
.kicker.light::before { background: var(--baltic); }

.section-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300; line-height: 1.05;
  color: var(--ink);
}
.section-headline em { font-style: italic; color: var(--baltic); }
.section-headline.light { color: var(--cloud); }
.section-headline.light em { color: var(--blush); }

.section-body {
  font-size: 15px; line-height: 1.85;
  color: rgba(26,28,34,0.6); max-width: 520px;
}
.section-body.light { color: rgba(240,238,233,0.45); }

/* ── PAGE HERO ── */
.page-hero {
  min-height: 480px;
  padding: 160px 72px 80px;
  background: var(--ink);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.page-hero-grid {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: linear-gradient(var(--cloud) 1px, transparent 1px),
    linear-gradient(90deg, var(--cloud) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(122,182,217,0.08);
}
.page-hero .kicker { color: var(--baltic); }
.page-hero .kicker::before { background: var(--baltic); }
.page-hero .section-headline { color: var(--cloud); }
.page-hero .section-headline em { color: var(--blush); }
.page-hero .section-body { color: rgba(240,238,233,0.45); }

/* ── CARDS ── */
.card {
  background: var(--warm);
  padding: 48px 36px;
  position: relative; overflow: hidden;
  transition: background 0.3s;
}
.card:hover { background: var(--fog); }
.card.dark {
  background: var(--ink);
}
.card.dark:hover { background: var(--slate); }
.card-num {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: rgba(26,28,34,0.3); margin-bottom: 32px;
}
.card.dark .card-num { color: var(--baltic); }
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 400; line-height: 1.2;
  color: var(--ink); margin-bottom: 16px;
}
.card.dark .card-title { color: var(--cloud); }
.card-desc {
  font-size: 13px; line-height: 1.75;
  color: rgba(26,28,34,0.5);
}
.card.dark .card-desc { color: rgba(240,238,233,0.4); }
.card-price {
  margin-top: 24px; font-family: 'DM Mono', monospace;
  font-size: 12px; letter-spacing: 0.08em;
  color: rgba(26,28,34,0.55);
}
.card.dark .card-price { color: var(--gold); }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 80px 72px 0;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px; padding-bottom: 64px;
  border-bottom: 1px solid rgba(240,238,233,0.06);
}
.footer-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.footer-logo-mark {
  width: 24px; height: 24px; position: relative; flex-shrink: 0;
}
.flm-outer {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--baltic);
  animation: spin 12s linear infinite;
}
.flm-inner {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid var(--veiled);
  animation: spin 8s linear infinite reverse;
}
.flm-dot {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--baltic);
}
.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 400; color: var(--cloud);
  letter-spacing: 0.06em;
}
.footer-tagline {
  font-size: 13px; line-height: 1.8;
  color: rgba(240,238,233,0.5);
  margin-bottom: 28px; max-width: 260px;
}
.footer-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(122,182,217,0.2);
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--baltic);
}
.footer-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--veiled); }
.footer-col-title {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--baltic); margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px; color: rgba(240,238,233,0.55);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--cloud); }
.footer-bottom {
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom span {
  font-size: 11px; letter-spacing: 0.1em;
  color: rgba(240,238,233,0.4);
}
.footer-bottom-langs { display: flex; gap: 16px; }
.footer-bottom-langs span { cursor: default; transition: color 0.2s; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 24px; }
.form-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(26,28,34,0.55); margin-bottom: 8px; display: block;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 300;
  color: var(--ink);
  background: var(--cloud);
  border: 1px solid rgba(26,28,34,0.12);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--baltic);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-select { cursor: pointer; appearance: none; }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.animate-ready { opacity: 0; transform: translateY(28px); }
.fade-up.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }
  .section-pad { padding: 80px 32px; }
  .section-pad-sm { padding: 60px 32px; }
  .page-hero { padding: 140px 32px 60px; min-height: 380px; }
  footer { padding: 60px 32px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  nav { padding: 0 24px; height: 64px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--cloud); padding: 24px;
    border-bottom: 1px solid rgba(26,28,34,0.07);
    gap: 16px;
  }
  .section-pad { padding: 64px 24px; }
  .section-pad-sm { padding: 48px 24px; }
  .page-hero { padding: 120px 24px 48px; min-height: 320px; }
  footer { padding: 48px 24px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
