/* ============================================================
   CODENANT — Design System
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800&family=Figtree:wght@300;400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  --coral:        #ff7e67;
  --coral-dark:   #e8624e;
  --teal:         #00a8a8;
  --teal-dark:    #008080;
  --navy:         #1f3c88;
  --navy-dark:    #1b3368;
  --navy-deep:    #0a1628;
  --purple:       #8085b7;
  --white:        #ffffff;
  --off-white:    #f8f9ff;
  --gray-100:     #f3f4f6;
  --gray-200:     #e5e7eb;
  --gray-400:     #9ca3af;
  --gray-600:     #6b7280;
  --text:         #0f172a;
  --text-muted:   #6b7280;

  --font-heading: 'Urbanist', sans-serif;
  --font-body:    'Figtree', sans-serif;

  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --radius-full:  9999px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow:       0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.12);
  --shadow-card:  0 4px 24px rgba(31,60,136,0.08);
  --shadow-hover: 0 12px 40px rgba(31,60,136,0.16);

  --transition:      0.3s ease;
  --transition-fast: 0.15s ease;

  --gradient-brand: linear-gradient(135deg, var(--navy), var(--teal), var(--coral));
  --gradient-text:  linear-gradient(90deg, var(--teal), var(--coral));
  --gradient-hero:  linear-gradient(135deg, #060e1f 0%, #0d1f4a 100%);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { font-size: 1rem; line-height: 1.75; }

/* --- Gradient Text Utility --- */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* --- Section Base --- */
.section {
  padding: 100px 0;
}
@media (max-width: 768px) { .section { padding: 64px 0; } }

.section-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(0,168,168,0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section-badge.light { color: rgba(0,168,168,0.9); background: rgba(0,168,168,0.12); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.075rem;
  margin-top: 12px;
}
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,0.65); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 14px 32px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255,126,103,0.35);
}
.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,126,103,0.45);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--coral);
  border: 1.5px solid var(--coral);
}
.btn-outline:hover {
  background: var(--coral);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Scroll Animations --- */
.anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim.visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-left  { transform: translateX(-28px); }
.anim-right { transform: translateX(28px); }
.anim-left.visible, .anim-right.visible { transform: translateX(0); opacity: 1; }
.anim-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-scale.visible { opacity: 1; transform: scale(1); }

/* --- Divider --- */
.divider {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-text);
  margin: 0 auto 20px;
}

/* --- Screen Reader Only --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
