/* ── SkyPath Website ── */

:root {
  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F7;
  --bg-tertiary: #E8E8ED;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFAFA;

  /* Text */
  --text-primary: #1C1C1E;
  --text-secondary: #6E6E73;
  --text-tertiary: #AEAEB2;

  /* Brand */
  --blue: #3B9CE1;
  --blue-text: #1A73AA;
  --blue-hover: #2B8CD1;
  --blue-light: #EBF5FC;
  --blue-glow: rgba(59, 156, 225, 0.18);
  --green: #34C759;

  /* Shield */
  --shield-stroke: #3B9CE1;
  --shield-fill: rgba(59, 156, 225, 0.05);
  --logo-blue: #3B9CE1;
  --logo-light: #9DCEF0;
  --shield-glow: rgba(59, 156, 225, 0.2);

  /* Nav */
  --nav-bg: rgba(255, 255, 255, 0.88);
  --nav-border: rgba(0, 0, 0, 0.06);

  /* Cards */
  --card-border: rgba(0, 0, 0, 0.06);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);

  /* Layout */
  --font-stack: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1080px;
  --max-width-narrow: 720px;
  --radius: 16px;
  --radius-sm: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0D0D0F;
    --bg-secondary: #161618;
    --bg-tertiary: #2C2C2E;
    --bg-card: #1C1C1E;
    --bg-card-hover: #222224;

    --text-primary: #F5F5F7;
    --text-secondary: #A1A1A6;
    --text-tertiary: #636366;

    --blue: #4DA8E8;
    --blue-text: #6DBAE8;
    --blue-hover: #5DB8F0;
    --blue-light: #1A2A3A;
    --blue-glow: rgba(77, 168, 232, 0.15);

    --shield-stroke: #4DA8E8;
    --shield-fill: rgba(77, 168, 232, 0.08);
    --logo-blue: #4DA8E8;
    --logo-light: #7FBDE8;
    --shield-glow: rgba(77, 168, 232, 0.3);

    --nav-bg: rgba(13, 13, 15, 0.88);
    --nav-border: rgba(255, 255, 255, 0.06);

    --card-border: rgba(255, 255, 255, 0.06);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

/* ── Reset ── */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s, color 0.3s;
}

a {
  color: var(--blue-text);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--blue-hover);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-stack);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  min-height: 48px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--blue);
  color: #FFFFFF;
  box-shadow: 0 2px 12px var(--blue-glow);
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--blue-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-small {
  font-size: 14px;
  padding: 10px 24px;
}

/* ── Hero ── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 32px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -60%);
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.hero-shield {
  width: 220px;
  height: 264px;
  margin: 0 auto 44px;
  filter: drop-shadow(0 4px 32px var(--shield-glow));
  animation: shield-float 4s ease-in-out infinite;
}

.hero-shield svg {
  width: 100%;
  height: 100%;
}

@keyframes shield-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--blue);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.2px;
}

/* ── Sections ── */

.section {
  padding: 100px 32px;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Features Grid ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Steps ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 2px 12px var(--blue-glow);
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── CTA Banner ── */

.cta-banner {
  text-align: center;
  padding: 100px 32px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--nav-border);
  padding: 40px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  width: 22px;
  height: 22px;
}

.footer-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── Legal Pages ── */

.legal-page {
  padding-top: 80px;
}

.legal-header {
  text-align: center;
  padding: 60px 32px 40px;
  border-bottom: 1px solid var(--nav-border);
}

.legal-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.legal-body {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 44px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-body ul, .legal-body ol {
  margin: 12px 0 20px 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-body a {
  color: var(--blue-text);
  text-decoration: underline;
  text-decoration-color: var(--bg-tertiary);
  text-underline-offset: 2px;
}

.legal-body a:hover {
  text-decoration-color: var(--blue-text);
}

/* ── Accessibility ── */

@media (prefers-reduced-motion: reduce) {
  .hero-shield {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Responsive ── */

/* Tablet (≤768px) */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 20px;
  }

  .nav-links a {
    font-size: 13px;
    padding: 8px 10px;
  }

  .hero {
    padding: 88px 24px 60px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 36px;
    max-width: 440px;
  }

  .hero-shield {
    width: 180px;
    height: 216px;
    margin-bottom: 40px;
  }

  .hero::before {
    width: 440px;
    height: 440px;
  }

  .section {
    padding: 72px 24px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .section-header h2,
  .cta-banner h2 {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-banner {
    padding: 72px 24px;
  }

  .footer {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .legal-header {
    padding: 48px 24px 32px;
  }

  .legal-header h1 {
    font-size: 28px;
  }

  .legal-body {
    padding: 36px 20px 60px;
  }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  body {
    overflow-x: hidden;
  }

  /* ── Nav ── */
  .nav-inner {
    padding: 0 16px;
    height: 56px;
  }

  .nav-brand {
    font-size: 16px;
    gap: 8px;
  }

  .nav-brand img {
    width: 26px;
    height: 26px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    font-size: 12px;
    padding: 8px;
  }

  /* ── Hero ── */
  .hero {
    padding: 72px 24px 40px;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero h1 {
    font-size: 26px;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 32px;
    max-width: 320px;
  }

  .hero-shield {
    width: 160px;
    height: 192px;
    margin-bottom: 28px;
    filter: drop-shadow(0 4px 24px var(--shield-glow));
  }

  .hero::before {
    width: 280px;
    height: 280px;
    transform: translate(-50%, -68%);
  }

  @keyframes shield-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn-small {
    display: none;
  }

  .hero-actions .btn-primary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .btn {
    font-size: 15px;
    padding: 14px 24px;
  }

  .hero-note {
    margin-top: 20px;
    font-size: 12px;
    letter-spacing: 0.3px;
    opacity: 0.65;
  }

  /* ── Sections ── */
  .section {
    padding: 56px 20px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2,
  .cta-banner h2 {
    font-size: 24px;
  }

  .section-header p,
  .cta-banner p {
    font-size: 15px;
  }

  /* ── Feature cards: horizontal layout ── */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 16px;
    text-align: left;
    padding: 20px;
    align-items: start;
  }

  .feature-card:hover {
    transform: none;
  }

  .feature-icon {
    grid-row: 1 / -1;
    margin: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    align-self: start;
  }

  .feature-card h3 {
    font-size: 15px;
    margin-bottom: 0;
    align-self: end;
  }

  .feature-card p {
    font-size: 13px;
    align-self: start;
  }

  /* ── Steps: horizontal layout ── */
  .steps {
    gap: 16px;
  }

  .step {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 16px;
    text-align: left;
  }

  .step-number {
    grid-row: 1 / -1;
    margin: 0;
    width: 40px;
    height: 40px;
    font-size: 16px;
    align-self: start;
  }

  .step h3 {
    font-size: 15px;
    margin-bottom: 0;
    align-self: end;
  }

  .step p {
    font-size: 13px;
    align-self: start;
  }

  /* ── CTA ── */
  .cta-banner {
    padding: 56px 20px;
  }

  .cta-banner::before {
    width: 320px;
    height: 320px;
  }

  /* ── Footer ── */
  .footer {
    padding: 28px 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .footer-links a {
    min-height: 40px;
  }

  .footer-copy {
    font-size: 12px;
  }

  /* ── Legal pages ── */
  .legal-page {
    padding-top: 56px;
  }

  .legal-header {
    padding: 32px 20px 24px;
  }

  .legal-header h1 {
    font-size: 24px;
  }

  .legal-body {
    padding: 28px 20px 48px;
  }

  .legal-body h2 {
    font-size: 19px;
    margin-top: 32px;
  }

  .legal-body h3 {
    font-size: 15px;
  }

  .legal-body p,
  .legal-body ul,
  .legal-body ol {
    font-size: 15px;
    line-height: 1.7;
  }

  .legal-body ul,
  .legal-body ol {
    margin-left: 20px;
  }
}
