/* ============================================================
   Kaiyo Zero Software — Design System
   css/style.css
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Colours */
  --navy:        #1B2F6B;
  --deep:        #1E3A5F;
  --ocean:       #2B5BA8;
  --light-ocean: #4A7FC1;
  --foam:        #EBF3FF;
  --warm:        #F5F0EB;
  --gold:        #C4924A;
  --gold-light:  #E8B86D;
  --white:       #FAFCFF;
  --text-body:   #2C3E6B;
  --text-muted:  #6B7A9A;
  --text-light:  #9AABC4;
  --border:      rgba(27, 47, 107, 0.12);

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --space-2xl: 6.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--text-body);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  animation: bodyFadeIn 0.3s ease forwards;
}

@keyframes bodyFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ocean);
  text-decoration: none;
}

a:hover {
  color: var(--light-ocean);
}

/* ── Focus Visible ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
}

h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
}

p {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  color: var(--text-body);
}

/* ── Section Label ──────────────────────────────────────────── */
.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 12px;
  display: block;
}

/* ── Feature Chip ───────────────────────────────────────────── */
.chip {
  display: inline-block;
  background: var(--foam);
  border: 1px solid rgba(43, 91, 168, 0.18);
  color: var(--ocean);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(235, 243, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(235, 243, 255, 0.08);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--ocean);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Wave Divider ───────────────────────────────────────────── */
.wave-divider {
  display: block;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ── Glassmorphism Card ─────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
}

/* ── Fade-in on Scroll ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nav Shadow on Scroll ───────────────────────────────────── */
nav.scrolled {
  box-shadow: 0 2px 24px rgba(15, 30, 74, 0.08);
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(250, 252, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ocean);
}

.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--ocean) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--navy);
  padding: 4px 8px;
}

/* Mobile dropdown */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(250, 252, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: var(--space-md) 5%;
  flex-direction: column;
  gap: var(--space-sm);
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-body);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-mobile-menu a:last-child {
  border-bottom: none;
}

.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
  color: var(--ocean);
}

.nav-mobile-menu .nav-cta {
  margin-top: 4px;
  text-align: center;
  border-bottom: none;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--deep);
  color: rgba(235, 243, 255, 0.7);
  padding: var(--space-xl) 5% var(--space-lg);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(235, 243, 255, 0.1);
}

.footer-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.footer-brand-name span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(235, 243, 255, 0.5);
  margin-top: 2px;
}

.footer-tagline {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(235, 243, 255, 0.6);
  margin-top: var(--space-sm);
  max-width: 320px;
}

.footer-email {
  display: inline-block;
  margin-top: var(--space-sm);
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-email:hover {
  color: var(--gold);
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(235, 243, 255, 0.45);
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(235, 243, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-md) auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: rgba(235, 243, 255, 0.35);
}

.footer-bottom-right {
  font-style: italic;
}

/* ── Page Hero (compact — inner pages) ─────────────────────── */
.page-hero {
  background: var(--deep);
  padding: 140px 5% 80px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: var(--space-sm);
}

.page-hero p {
  color: rgba(235, 243, 255, 0.72);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}
