/* ================================================================
   SUZUME AI — Shared Stylesheet (V2 — Mobile-First Responsive)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --navy:        #0A142E;
  --navy-mid:    #162035;
  --navy-light:  #1e3a5f;
  --blue:        #4B9EF5;
  --blue-dark:   #1A3BAA;
  --blue-light:  #4B9EF5;
  --teal:        #14b8a6;
  --gold:        #f59e0b;
  --emerald:     #10b981;
  --red:         #ef4444;
  --white:       #ffffff;
  --gray-50:     #F4F6FA;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-500:    #6B7A99;
  --gray-700:    #334155;
  --gray-900:    #0f172a;
  --text:        #1e293b;
  --text-muted:  #6B7A99;
  --border:      #e2e8f0;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md:   0 4px 12px rgba(0,0,0,.1), 0 16px 40px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 24px rgba(0,0,0,.12), 0 32px 64px rgba(0,0,0,.1);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  all .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Lock body scroll when mobile nav is open */
body.nav-open { overflow: hidden; }
/* Remove backdrop-filter when mobile nav is open so position:fixed works correctly */
body.nav-open .nav {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(59,130,246,.1);
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--gray-900);
  margin-bottom: 16px;
}
.section-title span { color: var(--blue); }
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ── Container ─────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
.nav.scrolled {
  background: rgba(9,18,34,.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 8px 32px rgba(0,0,0,.28);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  text-decoration: none;
  z-index: 1001;
}
/* SVG bird mark */
.nav-mark {
  width: 36px;
  height: auto;
  flex-shrink: 0;
}
/* Wordmark */
.nav-wordmark {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'Sora', sans-serif;
  line-height: 1;
}
.nav-word-suzume {
  font-size: 13.5px;
  font-weight: 300;
  letter-spacing: .22em;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
}
.nav-word-ai {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #4B9EF5;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: white; background: rgba(255,255,255,.1); }
.nav-cta {
  background: var(--blue) !important;
  color: white !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Nav Dropdown ───────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-dropdown-toggle .nav-chevron {
  font-size: .6rem;
  transition: transform .25s ease;
  opacity: .7;
}
.nav-dropdown:hover .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(9,18,46,.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  min-width: 160px;
  padding: 6px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.dropdown-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}
/* Force-close when toggled off by click */
.nav-dropdown.dropdown-closed .nav-dropdown-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.nav-dropdown-menu li a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 14px !important;
  border-radius: 6px !important;
  font-size: .85rem !important;
  color: rgba(255,255,255,.72) !important;
  background: transparent !important;
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a.active {
  color: white !important;
  background: rgba(255,255,255,.1) !important;
}

/* ── Page Hero (sub-pages) ─────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.page-hero h1 { color: white; font-size: clamp(2rem, 5vw, 3.5rem); position: relative; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-top: 16px; position: relative; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  min-height: 44px;
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 20px rgba(59,130,246,.35);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59,130,246,.45);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: white;
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--navy);
  color: white;
}
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding: 10px 0;
  gap: 6px;
}
.btn-ghost:hover { gap: 10px; }

/* ── Section ───────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--gray-50); }
.section-dark {
  background: var(--navy);
  color: white;
}
.section-dark .section-title { color: white; }
.section-dark .section-desc { color: rgba(255,255,255,.65); }
.section-header { text-align: center; margin-bottom: 64px; }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(59,130,246,.2);
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { margin-top: 12px; font-size: .9rem; max-width: 280px; }
.footer-col h4 {
  color: white;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: .9rem; transition: var(--transition); }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}
.footer-bottom a { color: var(--blue-light); }

/* ── Fade-in animations ────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(1) { transition-delay: 0ms; }
.fade-up:nth-child(2) { transition-delay: 100ms; }
.fade-up:nth-child(3) { transition-delay: 200ms; }
.fade-up:nth-child(4) { transition-delay: 300ms; }
.fade-up:nth-child(5) { transition-delay: 400ms; }
.fade-up:nth-child(6) { transition-delay: 500ms; }
.fade-up:nth-child(7) { transition-delay: 600ms; }

/* ── Responsive ────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .container { padding: 0 20px; }
}

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 40px; }
  .section-desc { margin-bottom: 32px; font-size: .95rem; }
  .container { padding: 0 16px; }

  .nav { padding: 16px 0; }
  .nav.scrolled { padding: 10px 0; }
  .nav-inner { padding: 0 16px; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    padding: 100px 24px 40px;
    gap: 8px;
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.open a {
    font-size: 1.15rem;
    padding: 14px 20px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .page-hero { padding: 120px 0 56px; }
  .page-hero p { font-size: 1rem; }

  .btn { padding: 12px 22px; font-size: .9rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer { padding: 48px 0 24px; }
}

/* Small mobile */
@media (max-width: 400px) {
  .container { padding: 0 12px; }
  .nav-inner { padding: 0 12px; }
  .page-hero { padding: 110px 0 48px; }
}

/* ── Cookie Banner ─────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(8, 15, 35, 0.97);
  border-top: 1px solid rgba(75,158,245,.25);
  padding: 16px 24px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  flex: 1;
  min-width: 0;
}
.cookie-banner-text i { color: var(--blue); font-size: 1.2rem; flex-shrink: 0; }
.cookie-banner-text p { margin: 0; }
.cookie-banner-text a { color: var(--blue); text-decoration: underline; }
.cookie-banner-text a:hover { color: var(--teal); }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn-primary {
  background: var(--blue);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  line-height: 1;
}
.cookie-btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.cookie-btn-secondary {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.25);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .15s;
  white-space: nowrap;
  line-height: 1;
}
.cookie-btn-secondary:hover { border-color: rgba(75,158,245,.6); color: var(--blue); transform: translateY(-1px); }

/* ── Cookie Modal ──────────────────────────────────────────────── */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cookie-overlay.visible { opacity: 1; pointer-events: all; }
.cookie-modal {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(110%);
  width: min(540px, calc(100% - 32px));
  background: var(--navy);
  border: 1px solid rgba(75,158,245,.25);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 32px 28px 28px;
  z-index: 10001;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.cookie-modal.visible { transform: translateX(-50%) translateY(0); }
.cookie-modal-title {
  font-family: 'Sora', sans-serif;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.cookie-modal > p {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  margin: 0 0 24px;
  line-height: 1.6;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,.08);
  border: none;
  color: rgba(255,255,255,.6);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.cookie-modal-close:hover { background: rgba(75,158,245,.2); color: var(--blue); }
.cookie-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cookie-cat-info strong {
  display: block;
  color: var(--white);
  font-size: .9rem;
  margin-bottom: 2px;
}
.cookie-cat-info span { color: rgba(255,255,255,.5); font-size: .8rem; line-height: 1.5; }
.cookie-always-on {
  font-size: .78rem;
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
  background: rgba(20,184,166,.12);
  border: 1px solid rgba(20,184,166,.25);
  padding: 4px 10px;
  border-radius: 100px;
  flex-shrink: 0;
}
.cookie-toggle { display: flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.cookie-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-toggle-track {
  width: 44px; height: 24px;
  background: rgba(255,255,255,.15);
  border-radius: 100px;
  position: relative;
  transition: background .25s;
}
.cookie-toggle input:checked + .cookie-toggle-track { background: var(--blue); }
.cookie-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: left .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.cookie-toggle input:checked + .cookie-toggle-track .cookie-toggle-thumb { left: 23px; }
.cookie-modal-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .cookie-banner-inner { gap: 14px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-primary, .cookie-btn-secondary { flex: 1; text-align: center; }
  .cookie-modal { padding: 24px 20px 20px; }
  .cookie-modal-footer { flex-direction: column; }
  .cookie-modal-footer button { width: 100%; }
}
