:root {
  --bg: #050814;
  --bg-alt: #050a16;
  --accent: #ffd46b;
  --accent-soft: rgba(255, 212, 107, 0.22);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);
  --text-main: #f5f7ff;
  --text-muted: #a7b0d0;
  --text-soft: #7f88a6;
  --danger: #ff6b81;
  --success: #4ad991;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.4);
  --container-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #0a1b3a 0%, #03040a 55%, #020308 100%);
  color: var(--text-main);
}

body {
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* HEADER / NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 8, 20, 0.92), rgba(5, 8, 20, 0.78));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #ffffff, #ffe7a4, #f3b24d);
  box-shadow: 0 0 18px rgba(255, 212, 107, 0.6);
}

.logo-text {
  font-size: 18px;
}

.main-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.main-nav a {
  padding: 6px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe7a4, #ffd46b, #ffb84d);
  transition: width 0.18s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 10px;
  font-size: 14px;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease-out, transform 0.12s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at 10% 0%, #fff7d4, #ffd46b);
  color: #1b1303;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* HERO */

.hero {
  padding: 72px 0 40px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 540px;
}

.hero-cta-row {
  display: flex;
  gap: 10px;
  margin: 20px 0 10px 0;
}

.hero-footnote {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 6px;
}

.hero-visual {
  position: relative;
  min-height: 220px;
}

.hero-card {
  position: absolute;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero-card-main {
  top: 0;
  right: 0;
  left: 8%;
  padding: 16px 18px;
}

.hero-card-secondary {
  right: 6%;
  bottom: -8px;
  padding: 12px 14px;
  max-width: 260px;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #fef7dd;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-metric-label {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.hero-metric-value {
  font-size: 26px;
  font-weight: 600;
  margin: 0;
}

.hero-metric-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-mini-label {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.hero-mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-visual-bird {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-bird-img {
  max-width: 360px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.7));
}

/* SOCIAL PROOF */

.social-proof {
  padding: 10px 0 4px 0;
}

.social-proof-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 12px;
  color: var(--text-soft);
}

/* FEATURES GRID */

.features-section {
  padding: 32px 0 56px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px auto;
}

.section-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* FLIP FEATURE CARDS */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.glass-card {
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.feature-card {
  padding: 16px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  font-size: 17px;
  margin-bottom: 4px;
}

.feature-card h3 {
  font-size: 15px;
  margin: 0;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.feature-link {
  margin-top: 6px;
  font-size: 12px;
  color: #ffe7a4;
}

.feature-flip-card {
  position: relative;
  width: 100%;
  height: 260px;
  perspective: 1200px;
  cursor: pointer;
}

.feature-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.35, 0.2, 0.15, 1);
  transform-origin: center;
}

.feature-flip-card:hover .feature-flip-inner,
.feature-flip-card.is-flipped .feature-flip-inner {
  transform: rotateX(180deg);
}

.feature-card-front,
.feature-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 16px 14px 16px;
}

.feature-card-front h3 {
  margin-bottom: 4px;
}

.feature-card-front p {
  font-size: 13px;
  color: var(--text-muted);
}

.feature-card-back {
  transform: rotateX(180deg);
}

.feature-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

/* Chip used as flip toggle */

.chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Mini glass cards inside backs */

.mini-card {
  width: 100%;
  border-radius: var(--radius-md);
  background: rgba(8, 12, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  padding: 10px 12px;
  font-size: 12px;
}

.mini-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--text-soft);
}

.mini-label {
  font-size: 11px;
  opacity: 0.8;
}

.mini-card-body {
  font-size: 12px;
  color: var(--text-muted);
}

.mini-metric {
  margin: 0 0 2px 0;
  font-weight: 600;
  color: var(--text-main);
}

.mini-sub {
  margin: 0 0 2px 0;
}

.mini-note {
  margin: 4px 0 0 0;
  font-size: 11px;
  color: var(--text-soft);
}

.mini-list p {
  margin: 2px 0;
}

.feature-flip-card .feature-link {
  font-size: 12px;
  color: #ffe7a4;
  text-decoration: none;
}

.feature-flip-card .feature-link:hover {
  text-decoration: underline;
}

@media (max-width: 880px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-flip-card {
    height: 240px;
  }
}

/* HOW IT WORKS */

.how-section {
  padding: 40px 0 56px 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.how-card {
  padding: 16px 16px 18px 16px;
}

.how-card h3 {
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 6px;
}

.how-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* PLACEHOLDER SECTIONS */

.placeholder-section {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* BOTTOM CTA */

.bottom-cta {
  padding: 40px 0 32px 0;
}

.bottom-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 18px;
  background: linear-gradient(135deg, rgba(7, 13, 36, 0.92), rgba(7, 16, 40, 0.96));
}

.bottom-cta-inner h2 {
  margin: 0 0 6px 0;
  font-size: 20px;
}

.bottom-cta-inner p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.bottom-cta-actions {
  display: flex;
  gap: 10px;
}

/* FOOTER */

.site-footer {
  padding: 24px 0 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(3, 5, 12, 0.96);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  font-size: 13px;
}

.footer-block h3 {
  margin: 0 0 8px 0;
  font-size: 13px;
}

.footer-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-block li {
  margin-bottom: 4px;
}

.footer-block a {
  color: var(--text-soft);
  font-size: 12px;
}

.footer-block a:hover {
  color: var(--text-main);
}

.footer-bottom {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
}

/* RESPONSIVE */

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card-main {
    left: 0;
    right: 0;
  }

  .hero-card-secondary {
    right: 4%;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bottom-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-container {
    gap: 10px;
  }

  .main-nav {
    display: none; /* you can later convert to a hamburger */
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 56px;
  }
}
