/* SynthVault — Secure AI Model Vault Platform */
:root {
  --dark: #0F0B1E;
  --light: #F5F3FF;
  --accent: #8B5CF6;
  --plum: #1E1535;
  --accent-light: #A78BFA;
  --accent-heading: #DDD6FE;
  --text-muted: #9CA3AF;
  --radius: 16px;
  --transition: 320ms cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Work Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--light);
  background: var(--dark);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

/* Surfaces */
.surface-dark { background: var(--dark); color: var(--light); }
.surface-light { background: var(--light); color: var(--dark); }
.surface-accent { background: var(--accent); color: var(--light); }
.surface-plum { background: var(--plum); color: var(--light); }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.section-lead { font-size: 1.125rem; color: var(--text-muted); max-width: 640px; margin-bottom: 2.5rem; }
.surface-light .section-lead { color: #4B5563; }

/* Dotted divider */
.divider-dotted {
  border: none;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 4px, transparent 4px, transparent 12px);
  margin: 3rem 0;
  opacity: 0.6;
}
.surface-light .divider-dotted {
  background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 4px, transparent 4px, transparent 12px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(15, 11, 30, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--light);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--accent-light); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }

.header-contact {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--light);
  padding: 0.5rem 0;
}
.header-contact:hover { color: var(--accent-light); }

.header-nav {
  display: none;
  flex: 1;
  justify-content: center;
  padding: 0 1rem;
}
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.header-nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--light);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.header-nav a:hover,
.header-nav a.active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-light);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--light);
  transition: var(--transition);
}
.hamburger:hover span { background: var(--accent); }

/* Sidebar Nav */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 11, 30, 0.7);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

.nav-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--plum);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(139, 92, 246, 0.2);
  overflow-y: auto;
}
body.nav-open .nav-sidebar { transform: translateX(0); }

.nav-close {
  align-self: flex-end;
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--light);
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 2rem;
}
.nav-close:hover { background: rgba(139, 92, 246, 0.15); color: var(--accent-light); }

.nav-list { list-style: none; }
.nav-list li { margin-bottom: 0.25rem; }
.nav-list a {
  display: block;
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--light);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav-list a:hover, .nav-list a.active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-light);
}

.nav-divider {
  height: 1px;
  background: rgba(139, 92, 246, 0.2);
  margin: 1.25rem 0;
}

/* Hero Pattern K */
.hero-pattern-k {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  background-image: url('../images/synthvault-01-hero-cinematic-vault.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 5rem;
}
.hero-pattern-k::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 11, 30, 0.85) 0%, rgba(15, 11, 30, 0.4) 60%, rgba(15, 11, 30, 0.2) 100%);
}
.hero-glass {
  position: relative;
  z-index: 1;
  margin-left: auto;
  margin-right: 5%;
  max-width: 520px;
  padding: 2.5rem;
  background: rgba(30, 21, 53, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius);
}
.hero-glass h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero-glass p { color: #D1D5DB; margin-bottom: 1.5rem; font-size: 1.05rem; }

/* CTA Button */
.btn-cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--light);
  background: linear-gradient(135deg, var(--accent) 0%, #7C3AED 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.btn-cta:hover {
  color: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-light);
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--accent); color: var(--light); }

/* Cards */
.card {
  background: var(--plum);
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
  padding: 1.75rem;
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.surface-light .card {
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 11, 30, 0.08);
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--accent-heading); }
.surface-light .card h3 { color: var(--accent); }
.card p { color: #D1D5DB; font-size: 0.95rem; }
.surface-light .card p { color: #4B5563; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card-grid-6 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }

/* Metrics strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 3rem 0;
  text-align: center;
}
.metric-item { padding: 1.5rem 1rem; }
.metric-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.metric-label { font-size: 0.9rem; color: var(--text-muted); }
.surface-light .metric-label { color: #6B7280; }

/* Mosaic */
.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.mosaic-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
}
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(15, 11, 30, 0.9));
}
.mosaic-caption h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.mosaic-caption p { font-size: 0.85rem; color: #D1D5DB; }

/* Tech stack */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
}
.tech-list li {
  padding: 0.6rem 1.25rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-light);
}
.surface-light .tech-list li {
  background: rgba(139, 92, 246, 0.08);
  color: var(--accent);
}

/* FAQ two-column */
.faq-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.faq-item { margin-bottom: 2rem; }
.faq-item h3 {
  font-size: 1.15rem;
  color: var(--light);
  margin-bottom: 0.5rem;
}
.surface-light .faq-item h3 { color: var(--accent); }
.faq-item p { font-size: 1.05rem; color: #E8EAED; line-height: 1.7; }
.surface-light .faq-item p { color: #6B7280; }

.faq-preview .section-lead,
.faq-preview .faq-item h3,
.faq-preview .faq-item p {
  color: var(--light);
}

/* CTA Band */
.cta-band {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--plum) 0%, var(--dark) 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.cta-band p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Page hero (inner pages) */
.page-hero {
  padding: 8rem 0 4rem;
  background: var(--plum);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; }

/* Content blocks */
.content-block { max-width: 800px; }
.content-block h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--accent-heading); }
.surface-light .content-block h2 { color: var(--accent); }
.content-block h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.content-block p { margin-bottom: 1rem; color: #D1D5DB; }
.surface-light .content-block p { color: #374151; }
.content-block ul, .content-block ol { margin: 1rem 0 1.5rem 1.5rem; color: #D1D5DB; }
.surface-light .content-block ul, .surface-light .content-block ol { color: #374151; }
.content-block li { margin-bottom: 0.5rem; }

.content-wide { max-width: 900px; }

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.two-col img { border-radius: var(--radius); border-top: 4px solid var(--accent); }
.two-col .lead-portrait {
  max-width: min(100%, 360px);
  margin-left: auto;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 11, 30, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  color: var(--light);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.surface-light .form-group input,
.surface-light .form-group textarea,
.surface-light .form-group select {
  background: #fff;
  color: var(--dark);
  border-color: #D1D5DB;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.form-check { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.25rem; }
.form-check input { margin-top: 0.3rem; accent-color: var(--accent); }
.form-check label { font-size: 0.9rem; color: #D1D5DB; }
.surface-light .form-check label { color: #4B5563; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-success {
  padding: 1rem 1.25rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--accent);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: var(--accent-light);
}

.contact-info-block { margin-bottom: 2rem; }
.contact-info-block h3 { font-size: 1rem; color: var(--accent-heading); margin-bottom: 0.5rem; }
.surface-light .contact-info-block h3 { color: var(--accent); }
.contact-info-block p { color: #D1D5DB; font-size: 0.95rem; }
.surface-light .contact-info-block p { color: #4B5563; }

/* Legal pages */
.legal-toc { margin-bottom: 2.5rem; padding: 1.5rem; background: rgba(139, 92, 246, 0.08); border-radius: var(--radius); }
.legal-toc h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.legal-toc ol { margin-left: 1.25rem; }
.legal-toc a { color: var(--accent-light); }

/* Disclaimer */
.disclaimer {
  padding: 1.25rem 1.5rem;
  background: rgba(139, 92, 246, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: #D1D5DB;
}
.surface-light .disclaimer { color: #4B5563; }

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--dark);
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--accent-heading);
}
.footer-col p, .footer-col li { font-size: 0.875rem; color: var(--text-muted); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-disclaimer { font-size: 0.75rem; color: #6B7280; max-width: 700px; margin-top: 1rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2000;
  background: var(--plum);
  border-top: 1px solid rgba(139, 92, 246, 0.25);
  padding: 1.25rem 1.5rem;
  transform: translateY(100%);
  transition: transform var(--transition);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-text { flex: 1; min-width: 260px; font-size: 0.875rem; color: #D1D5DB; }
.cookie-text a { color: var(--accent-light); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-btn {
  padding: 0.55rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: transparent;
  color: var(--light);
  transition: background 0.2s;
}
.cookie-btn:hover { background: rgba(139, 92, 246, 0.15); }
.cookie-btn-primary { background: var(--accent); border-color: var(--accent); }
.cookie-btn-primary:hover { background: #7C3AED; }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(15, 11, 30, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.cookie-modal.visible { display: flex; }
.cookie-modal-content {
  background: var(--plum);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.cookie-modal-content h3 { margin-bottom: 1rem; }
.cookie-toggle { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cookie-toggle label { font-size: 0.9rem; }

/* 404 */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
}
.error-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 901px) {
  .site-header {
    gap: 1rem;
    padding: 0.75rem 2rem;
  }
  .header-nav { display: flex; }
  .hamburger,
  .nav-sidebar,
  .nav-backdrop { display: none; }
  body.nav-open { overflow: auto; }
}

@media (max-width: 900px) {
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .mosaic-grid, .faq-split, .two-col, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-glass { margin: 0 1.5rem; max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .metrics-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}
