/* ══════════════════════════════════════════════════════════════
   Studio B — Shared Design System
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --bg: #04060B;
  --surface: #0C1017;
  --surface-2: #141A24;
  --border: #1E2A3A;
  --text: #E8ECF1;
  --text-muted: #8A95A5;
  --text-dim: #566174;
  --accent: #22D3EE;
  --accent-deep: #0891B2;
  --accent-glow: rgba(34, 211, 238, 0.10);
  --accent-glow-strong: rgba(34, 211, 238, 0.18);
}

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Body ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(4, 6, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 42, 58, 0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.nav-logo svg { width: 28px; height: auto; }

.nav-logo .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo .wordmark .s {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.5rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-logo .wordmark .b {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--text);
  margin-top: -0.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bg) !important;
  background: var(--accent);
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: #06b6d4;
  color: var(--bg) !important;
  transform: translateY(-1px);
}

/* ── Mobile nav toggle ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  margin: 4px 0;
  transition: all 0.3s;
}

/* ── Animation Keyframes ── */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-mark {
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-mark svg {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(34, 211, 238, 0.06));
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-top: 2rem;
  max-width: 740px;
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 1.4rem;
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-trust {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* ── Buttons ── */
.btn-primary {
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: #06b6d4;
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Section Commons ── */
.section-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.6rem;
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}

/* ── Divider ── */
.divider {
  width: 100%;
  max-width: 1000px;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
}

/* ── Cards (shared pattern) ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
  border-color: rgba(34, 211, 238, 0.2);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-glow-strong);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  font-size: 1.1rem;
}

.card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 3rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-brand .nav-logo { display: inline-flex; }

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 240px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-powered {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.footer-powered .acuops {
  color: var(--accent);
  font-weight: 400;
}

/* ── Fade-in on Scroll ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile Responsive ── */
@media (max-width: 900px) {
  .footer-grid {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(4, 6, 11, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

  .nav-toggle { display: block; }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
