/* Aerofy site — shared design system. No dependencies. */

:root {
  --bg: #0C0F14;
  --card: #141A24;
  --card-2: #161C26;
  --border: #232C3A;
  --text: #F2F6F8;
  --text-2: #8FB3C0;
  --accent: #22C08A;
  --accent-2: #3AC6E6;
  --warn: #FFB020;
  --error: #FF8A80;
  --radius: 16px;
  --maxw: 1080px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }

.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* Layout */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: #0A0E15;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #04120C;
  border-color: transparent;
}

/* Chips */

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .8rem;
  font-weight: 600;
}

.chip-on {
  background: rgba(34, 192, 138, .15);
  color: var(--accent);
}

.chip-warn {
  background: rgba(255, 176, 32, .15);
  color: var(--warn);
}

/* Cards */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card.feature:hover,
.card.feature:focus-within {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

/* Eyebrow label */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
}

/* Feature grid cells */

.feature h3 { margin: .4rem 0; }
.feature .ico {
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34,192,138,.18), rgba(58,198,230,.12));
  border: 1px solid var(--border);
}

/* Screen-reader only */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus, .sr-only:focus-visible {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: var(--accent);
  color: #04120C;
  border-radius: 999px;
  font-weight: 600;
  z-index: 100;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(12, 15, 20, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-header .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.wordmark-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
}

.site-header .chip {
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav a {
  margin-left: 22px;
  text-decoration: none;
  color: var(--text-2);
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.2rem;
  padding: 6px 10px;
  cursor: pointer;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-2);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav a {
  margin-left: 0;
  margin-right: 22px;
  text-decoration: none;
  color: var(--text-2);
  font-weight: 600;
}

.site-footer nav a:last-child { margin-right: 0; }

.site-footer nav a:hover { color: var(--text); }

/* Focus visibility */

a:focus-visible,
.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Mobile nav */

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav a {
    margin-left: 0;
    padding: 10px 0;
  }
}

/* Hero glow + screenshot frame */

.glow-wrap {
  position: relative;
  display: inline-block;
}

.glow-wrap::before {
  content: "";
  position: absolute;
  inset: -12% -8% -8% -8%;
  background: radial-gradient(60% 60% at 70% 15%, rgba(34,192,138,.28), transparent 70%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}

.shot {
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(58,198,230,.08);
}

/* Screenshot groups — centered and evenly spaced so phones read as an
   intentional set instead of left-aligned images with dead space. */
.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  margin-top: 20px;
}

.shots .shot {
  width: 300px;
  max-width: 100%;
}

/* Center the glow behind grouped phones (the hero glow sits top-right). */
.shots .glow-wrap::before {
  background: radial-gradient(55% 55% at 50% 25%, rgba(34,192,138,.22), transparent 70%);
}

/* Primary button glow + section separation */

.btn-primary {
  box-shadow: 0 6px 20px rgba(34, 192, 138, .25);
  transition: box-shadow .2s ease, transform .2s ease;
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(34, 192, 138, .40);
  transform: translateY(-1px);
}

.section-alt {
  background: linear-gradient(180deg, #0A0E15, #0B0F17);
  border-top: 1px solid rgba(35, 44, 58, .5);
  border-bottom: 1px solid rgba(35, 44, 58, .5);
}

/* Scroll reveal */

.reveal {
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Hero app icon */

.hero-icon {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .5);
  margin-bottom: 20px;
}

/* App Store download button — recognizable badge in the site's pill style */

.btn-appstore {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 10px 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .40);
}

.btn-appstore:hover {
  background: #000;
  border-color: rgba(255, 255, 255, .38);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  transform: translateY(-1px);
}

.btn-appstore .appstore-logo {
  flex: none;
}

.appstore-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.appstore-text small {
  font-size: .64rem;
  font-weight: 500;
  opacity: .85;
}

.appstore-text strong {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
