/* ─────────────────────────────────────────
   Aineara — style.css (Unified v3)
   Design from aineara-export · Backend from aineara-main
   ───────────────────────────────────────── */

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Tokens: Dark (default) ─── */
:root {
  --bg:          #000000;
  --bg-surface:  #0a0a0a;
  --fg:          rgba(255,255,255,0.98);
  --border:      rgba(255,255,255,0.07);
  --border-warm: rgba(201,145,90,0.15);
  --muted:       rgba(255,255,255,0.55);
  --muted-dim:   rgba(255,255,255,0.28);

  --amber:       #C9915A;
  --amber-light: #E0B080;
  --amber-dim:   #7A5535;
  --amber-muted: rgba(201,145,90,0.10);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Geist', system-ui, -apple-system, sans-serif;
  --ease:  0.2s ease;
  --spring: cubic-bezier(0.16,1,0.3,1);
}

/* ─── Tokens: Light ─── */
[data-theme="light"] {
  --bg:          #ffffff;
  --bg-surface:  #f5f5f5;
  --fg:          rgba(0,0,0,0.96);
  --border:      rgba(0,0,0,0.08);
  --border-warm: rgba(150,90,40,0.15);
  --muted:       rgba(0,0,0,0.42);
  --muted-dim:   rgba(0,0,0,0.24);
  --amber:       #B07840;
  --amber-light: #C9915A;
  --amber-dim:   #8A5C28;
  --amber-muted: rgba(176,120,64,0.10);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 1px solid var(--amber); outline-offset: 3px; }
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--amber); }

/* ─── Custom Cursor ─── */
@media (pointer: fine) {
  body { cursor: none; }

  .cursor {
    position: fixed; width: 5px; height: 5px;
    background: var(--amber); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: left, top;
  }

  .cursor-ring {
    position: fixed; width: 28px; height: 28px;
    border: 1px solid rgba(201,145,90,0.35); border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.28s var(--spring), height 0.28s var(--spring), border-color 0.28s ease;
    will-change: left, top;
  }

  .cursor-ring.expanded {
    width: 44px; height: 44px;
    border-color: rgba(201,145,90,0.6);
  }
}

/* ─── Navigation ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px; height: 64px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
  animation: navIn 0.5s var(--spring) both;
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

nav.scrolled {
  border-color: var(--border);
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

[data-theme="light"] nav.scrolled {
  background: rgba(255,255,255,0.88);
}

.nav-logo {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg); text-decoration: none;
  transition: color var(--ease); flex-shrink: 0;
}
.nav-logo:hover { color: var(--muted); }

.nav-links { display: flex; gap: 32px; list-style: none; justify-content: center; }
.nav-links a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  transition: color var(--ease);
}
.nav-links a:hover { color: var(--fg); }

.nav-right {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0; justify-content: flex-end;
}

.theme-toggle {
  background: none; border: none; color: var(--muted);
  cursor: pointer; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--ease);
}
.theme-toggle:hover { color: var(--fg); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none;  }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
.theme-toggle svg {
  width: 15px; height: 15px; stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.nav-cta {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; color: var(--bg); background: var(--fg);
  border: none; padding: 8px 18px; text-decoration: none;
  display: inline-block; transition: opacity var(--ease);
}
.nav-cta:hover { opacity: 0.8; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 20px; height: 1px; background: var(--muted);
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle.open span:first-child { transform: rotate(45deg) translate(4px,4px); }
.nav-toggle.open span:last-child  { transform: rotate(-45deg) translate(4px,-4px); }

/* ─── Utility Classes ─── */
.section-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--amber); display: block;
}

.italic-accent {
  font-family: var(--serif);
  font-style: italic; font-weight: 300; color: var(--amber);
}

.hr-gold { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── Hero ─── */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  position: relative; padding: 120px 40px 100px; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201,145,90,0.09) 0%, transparent 65%);
  animation: glowDrift 14s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 45% 40% at 75% 25%, rgba(201,145,90,0.045) 0%, transparent 55%);
  animation: glowDriftB 18s ease-in-out infinite alternate;
}
[data-theme="light"] .hero-bg::before {
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(176,120,64,0.07) 0%, transparent 65%);
}
[data-theme="light"] .hero-bg::after {
  background: radial-gradient(ellipse 45% 40% at 75% 25%, rgba(176,120,64,0.035) 0%, transparent 55%);
}

@keyframes glowDrift {
  0%   { transform: translateX(-6%) translateY(4%)  scale(1);    opacity: 0.7; }
  50%  { transform: translateX(2%)  translateY(-2%) scale(1.05); opacity: 1;   }
  100% { transform: translateX(6%)  translateY(2%)  scale(0.97); opacity: 0.8; }
}
@keyframes glowDriftB {
  0%   { transform: translateX(0%)  translateY(0%)  scale(1.1);  opacity: 0.6; }
  50%  { transform: translateX(-8%) translateY(6%)  scale(1);    opacity: 1;   }
  100% { transform: translateX(4%)  translateY(-4%) scale(1.08); opacity: 0.5; }
}

.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
[data-theme="light"] .hero-grid {
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
}

.hero-eyebrow {
  position: relative; z-index: 1;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 32px;
  opacity: 0; animation: fadeUp 0.5s var(--spring) 0.1s forwards;
}

.hero-title {
  position: relative; z-index: 1;
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
  max-width: 900px;
  opacity: 0; animation: fadeUp 0.7s var(--spring) 0.15s forwards;
}

.hero-tagline {
  position: relative; z-index: 1;
  margin-top: 24px; font-size: 16px; color: var(--muted);
  max-width: 380px; line-height: 1.7; font-weight: 300;
  opacity: 0; animation: fadeUp 0.7s var(--spring) 0.28s forwards;
}

.hero-actions {
  position: relative; z-index: 1;
  margin-top: 40px; display: flex; flex-wrap: wrap;
  gap: 16px; align-items: center; justify-content: center;
  opacity: 0; animation: fadeUp 0.6s var(--spring) 0.4s forwards;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--fg); color: var(--bg);
  font-size: 14px; font-weight: 500; padding: 12px 24px;
  text-decoration: none; transition: opacity var(--ease);
}
.btn-primary:hover { opacity: 0.8; }
.btn-primary-arrow { font-size: 16px; line-height: 1; }

.btn-ghost {
  font-size: 14px; color: var(--muted); text-decoration: underline;
  text-underline-offset: 4px; text-decoration-color: var(--border);
  transition: color var(--ease);
}
.btn-ghost:hover { color: var(--fg); }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; animation: fadeIn 0.8s ease 1.2s forwards;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
}
.hero-scroll span {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
[data-theme="light"] .hero-scroll span { color: rgba(0,0,0,0.3); }

/* ─── Manifesto ─── */
.manifesto {
  padding: 160px 40px;
  border-top: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.manifesto-text {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.02em;
  margin-top: 36px;
}
.manifesto-sub {
  margin-top: 36px; font-size: 17px; color: var(--muted);
  line-height: 1.75; font-weight: 300;
  max-width: 640px; margin-left: auto; margin-right: auto;
}

/* ─── Pillars / Grid Sections ─── */
.pillars {
  padding: 128px 40px; border-top: 1px solid var(--border);
}
.pillars.bg-surface { background: var(--bg-surface); }

.pillars-header {
  max-width: 1200px; margin: 0 auto 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.pillars-title {
  font-size: clamp(28px,3.5vw,42px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em;
}
.pillars-subtitle { font-size: 14px; color: var(--muted); }

.pillars-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
}

.pillar {
  background: var(--bg); padding: 40px;
  display: flex; flex-direction: column;
  transition: background 0.25s ease;
}
.pillars.bg-surface .pillar { background: var(--bg-surface); }
.pillar:hover { background: var(--bg-surface); }
.pillars.bg-surface .pillar:hover { background: var(--bg); }

.pillar-num {
  font-size: 11px; font-family: monospace; color: var(--muted-dim);
  margin-bottom: 32px; display: block;
}
.pillar-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500; margin-bottom: 20px; display: block;
}
.pillar-title {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 16px; line-height: 1.3;
}
.pillar-body { font-size: 14px; color: var(--muted); line-height: 1.75; }

.pillar-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 28px; font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--amber); text-decoration: none;
  transition: gap var(--ease);
}
.pillar-link:hover { gap: 10px; }

.pillar-soon {
  display: inline-block; margin-top: 28px;
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-dim);
}

.pillar-notify-form {
  display: flex; margin-top: 28px;
  border: 1px solid var(--border); max-width: 260px;
  transition: border-color 0.2s ease;
}
.pillar-notify-form:focus-within { border-color: rgba(255,255,255,0.2); }
[data-theme="light"] .pillar-notify-form:focus-within { border-color: rgba(0,0,0,0.2); }
.pillar-notify-form input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 9px 12px; font-size: 13px; color: var(--fg);
  font-family: var(--sans);
}
.pillar-notify-form input::placeholder { color: var(--muted-dim); }
.pillar-notify-form input.error { outline: 1px solid rgba(201,80,76,0.6); }
.pillar-notify-form button {
  background: transparent; color: var(--amber); border: none;
  padding: 9px 12px; font-size: 14px; cursor: pointer;
  transition: color var(--ease);
}
.pillar-notify-form button:hover:not(:disabled) { color: var(--fg); }
.pillar-notify-form button:disabled { opacity: 0.4; }
.pillar-notify-note {
  margin-top: 10px; font-size: 12px; color: var(--muted-dim); min-height: 18px;
}

/* ─── Approach ─── */
.approach {
  padding: 128px 40px; border-top: 1px solid var(--border);
}
.approach-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 120px; align-items: start;
}
.approach-title {
  font-size: clamp(28px,3.5vw,44px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; margin: 32px 0;
}
.approach-body {
  font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 20px;
}
.approach-right { border-top: 1px solid var(--border); }
.approach-item {
  padding: 24px 0; border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s ease;
}
.approach-item:hover { padding-left: 8px; }
.approach-item-title {
  font-size: 14px; font-weight: 600; margin-bottom: 8px;
}
.approach-item-body { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ─── Email Capture ─── */
.coming-soon {
  padding: 128px 40px; border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.coming-soon-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 120px;
}
.coming-soon-col h2 {
  font-size: clamp(28px,3.5vw,44px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; margin: 32px 0 20px;
}
.coming-soon-col p {
  font-size: 14px; color: var(--muted); line-height: 1.75;
  margin-bottom: 32px; max-width: 340px;
}

.email-form {
  display: flex; border: 1px solid var(--border); max-width: 420px;
  transition: border-color 0.2s ease;
}
.email-form:focus-within { border-color: rgba(255,255,255,0.2); }
[data-theme="light"] .email-form:focus-within { border-color: rgba(0,0,0,0.2); }

.email-form input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 12px 16px; font-size: 14px; color: var(--fg); font-family: var(--sans);
}
.email-form input::placeholder { color: var(--muted-dim); }
.email-form input.error { outline: 1px solid rgba(201,80,76,0.6); }

.email-form button {
  background: var(--fg); color: var(--bg); border: none;
  padding: 12px 20px; font-size: 12px; font-weight: 500;
  font-family: var(--sans); cursor: pointer; white-space: nowrap;
  flex-shrink: 0; transition: opacity var(--ease);
}
.email-form button:hover:not(:disabled) { opacity: 0.8; }
.email-form button:disabled { opacity: 0.4; }

.form-note {
  margin-top: 16px; font-size: 12px; color: var(--muted-dim);
}
.success-msg {
  display: none; font-size: 14px; color: var(--amber); padding: 12px 0;
}
.success-msg.visible { display: block; }

/* ─── About / Studio ─── */
.about {
  padding: 128px 40px; border-top: 1px solid var(--border);
}
.about-inner { max-width: 1200px; margin: 0 auto; }
.about-content { max-width: 480px; }
.about h2 {
  font-size: clamp(28px,3.5vw,44px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; margin: 32px 0 20px;
}
.about-body {
  font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 16px;
}
.about-divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.about-contact-label { font-size: 12px; color: var(--muted-dim); margin-bottom: 8px; }
.about-contact-link {
  font-size: 14px; font-weight: 500; color: var(--amber); text-decoration: none;
  transition: opacity var(--ease);
}
.about-contact-link:hover { opacity: 0.7; }

/* ─── Footer ─── */
footer {
  padding: 32px 40px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-logo {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg);
}
.footer-copy { font-size: 11px; color: var(--muted-dim); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 12px; color: var(--muted-dim); text-decoration: none;
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--fg); }

/* ─── Reveal ─── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--spring), transform 0.6s var(--spring);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ─── Keyframes ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ─── Theme Transition ─── */
html, body, nav, section, footer, .pillar, .approach-item, .email-form input {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

/* ─── Responsive 1024px ─── */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .manifesto, .pillars, .approach, .coming-soon, .about {
    padding-left: 32px; padding-right: 32px;
  }
  .approach-inner { gap: 56px; }
  .coming-soon-inner { gap: 56px; }
}

/* ─── Responsive 768px ─── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }

  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(0,0,0,0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 12px 0;
  }
  [data-theme="light"] .nav-links { background: rgba(255,255,255,0.97); }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 20px; font-size: 14px; }
  .nav-toggle { display: flex; }
  .nav-cta { font-size: 11px; padding: 7px 14px; }

  .manifesto, .pillars, .approach, .coming-soon, .about {
    padding-left: 20px; padding-right: 20px;
    padding-top: 100px; padding-bottom: 100px;
  }
  .manifesto-inner { text-align: left; }
  .pillars-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pillars-subtitle { display: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { padding: 32px 20px; }
  .approach-inner { grid-template-columns: 1fr; gap: 48px; }
  .coming-soon-inner { grid-template-columns: 1fr; gap: 64px; }
  .email-form { flex-direction: column; max-width: 100%; }
  .email-form input { border-bottom: 1px solid var(--border); }
  .email-form button { padding: 14px; }

  footer {
    padding: 24px 20px; flex-wrap: wrap; gap: 12px;
  }
  .footer-copy { order: 3; width: 100%; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
