/* ============================================================
   SkyLog landing — styles.css
   Aesthetic: aviation-editorial. Navy + sky + warm off-white.
   Display: Fraunces (serif, optical sizing). Body: Inter Tight.
   ============================================================ */

:root {
  /* Palette — pulled from the SkyLog logo */
  --navy-900:  #0b1e3f;
  --navy-800:  #122a55;
  --navy-700:  #1e3a8a;
  --blue-600:  #2563eb;
  --blue-500:  #3b82f6;
  --sky-200:   #bfdbfe;
  --sky-100:   #dbeafe;
  --sky-50:    #eff6ff;

  --ink:       #0a1530;
  --ink-soft:  #334155;
  --ink-mute:  #64748b;

  --paper:     #fbfaf6;   /* warm off-white — keeps it out of generic-SaaS-white territory */
  --paper-2:   #f4f1ea;
  --line:      #e6e1d6;

  --accent:    #f59e0b;   /* warm amber accent — used sparingly */

  /* Type */
  --f-display: "Fraunces", "Times New Roman", Georgia, serif;
  --f-body:    "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container-max: 1180px;
  --gutter: clamp(20px, 4vw, 48px);

  --radius:    14px;
  --radius-sm: 8px;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin: 0 0 0.4em;
  line-height: 1.1;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.brand img {
  height: 40px;
  width: auto;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.primary-nav a:not(.nav-cta):hover {
  color: var(--navy-900);
}
.primary-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--navy-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.primary-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}
.nav-cta {
  background: var(--navy-900);
  color: var(--paper) !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  font-weight: 600 !important;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover {
  background: var(--navy-700);
  transform: translateY(-1px);
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-around;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 16px;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.mobile-nav a.nav-cta {
  background: none;
  color: var(--navy-900) !important;
  padding: 14px var(--gutter) !important;
  border-radius: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 110px) 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 0%, var(--sky-100) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 100%, var(--paper-2) 0%, transparent 60%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding-bottom: clamp(56px, 10vw, 120px);
}

.eyebrow {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--blue-600);
}

.hero-text h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144;
}
.hero-accent {
  font-style: italic;
  color: var(--navy-700);
  font-weight: 400;
}

.hero-lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 36px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-fineprint {
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  max-width: 52ch;
}

/* Compass rose visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.rose {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(30, 58, 138, 0.15));
}
.rose-label {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  fill: var(--navy-900);
  letter-spacing: 0.05em;
}
.rose-label-main {
  font-size: 30px;
  fill: var(--blue-600);
}
.needle {
  transform-origin: 200px 200px;
  animation: needle-drift 14s ease-in-out infinite;
}
@keyframes needle-drift {
  0%, 100% { transform: translate(200px, 200px) rotate(-15deg); }
  25%      { transform: translate(200px, 200px) rotate(8deg); }
  55%      { transform: translate(200px, 200px) rotate(-22deg); }
  80%      { transform: translate(200px, 200px) rotate(3deg); }
}

/* Runway-stripe divider */
.runway {
  height: 14px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--navy-900) 0 60px,
      transparent 60px 100px
    );
  opacity: 0.85;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--paper);
  box-shadow: 0 6px 24px -8px rgba(11, 30, 63, 0.5);
}
.btn-primary:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(11, 30, 63, 0.55);
}
.btn-primary svg { transition: transform 0.2s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-ghost:hover {
  background: var(--navy-900);
  color: var(--paper);
}

.btn-lg {
  padding: 18px 32px;
  font-size: 16px;
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
.section-eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--blue-600);
}
.section-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  max-width: 22ch;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--navy-700);
}

/* ============================================================
   WHO IT'S FOR
   ============================================================ */
.who {
  padding: clamp(64px, 8vw, 110px) 0;
  background: var(--paper);
}
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.who-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.who-card:hover {
  transform: translateY(-4px);
  border-color: var(--navy-700);
  box-shadow: 0 20px 40px -20px rgba(11, 30, 63, 0.2);
}
.who-icon {
  width: 56px;
  height: 56px;
  background: var(--sky-100);
  color: var(--navy-700);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.who-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.who-card p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: clamp(64px, 8vw, 110px) 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--sky-50) 100%);
  position: relative;
}
.features::before {
  /* Subtle grid texture */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
  pointer-events: none;
}
.features > .container { position: relative; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 24px;
}
.feature {
  background: var(--paper);
  padding: 36px 28px;
  transition: background 0.25s ease;
  position: relative;
}
.feature:hover {
  background: var(--sky-50);
}
.feature-tag {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-600);
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 14px;
  font-style: italic;
}
.feature h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}
.feature p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: clamp(64px, 8vw, 110px) 0;
  background: var(--navy-900);
  color: var(--sky-100);
  position: relative;
  overflow: hidden;
}
.how::before {
  /* atmospheric gradient */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.18) 0%, transparent 50%);
  pointer-events: none;
}
.how > .container { position: relative; }

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.how-text .section-eyebrow {
  color: var(--blue-500);
}
.how-text .section-eyebrow::before { background: var(--blue-500); }
.how-text .section-title {
  color: var(--paper);
}
.how-text .section-title em {
  color: var(--sky-200);
}
.how-text p {
  color: var(--sky-200);
  font-size: 17px;
  max-width: 52ch;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  counter-reset: step;
}
.how-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(191, 219, 254, 0.15);
}
.how-steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.step-num {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--sky-200);
  font-style: italic;
  font-variation-settings: "opsz" 144;
  line-height: 1;
  display: inline-block;
  padding-top: 4px;
}
.how-steps h4 {
  font-size: 19px;
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 6px;
  font-family: var(--f-display);
}
.how-steps p {
  font-size: 15px;
  color: var(--sky-200);
  margin: 0;
  line-height: 1.55;
  max-width: none;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: clamp(56px, 7vw, 90px) 0;
  background:
    linear-gradient(135deg, var(--sky-100) 0%, var(--paper) 60%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 500;
  margin: 0 0 8px;
}
.cta-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}
.cta-info {
  margin-top: 14px !important;
  font-size: 15px !important;
  color: var(--ink-mute) !important;
}
.cta-info a {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--sky-200);
  transition: border-color 0.2s ease;
}
.cta-info a:hover {
  border-color: var(--navy-700);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--paper-2);
  padding: 56px 0 28px;
  color: var(--ink-soft);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img {
  height: 36px;
  margin-bottom: 16px;
}
.footer-tag {
  max-width: 44ch;
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin: 0;
}
.footer-links h5 {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin: 0 0 16px;
}
.footer-links a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--navy-900);
}
.footer-baseline {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-mute);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-visual {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .who-grid {
    grid-template-columns: 1fr;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }

  .hero { padding-top: 40px; }
  .hero-text h1 { font-size: 40px; }
  .hero-lede { font-size: 17px; }
  .runway { background-size: 40px 14px; }

  .feature-grid {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-baseline {
    flex-direction: column;
    gap: 6px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
