/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #0A84FF;
  --color-primary-dark: #0066CC;
  --color-primary-light: #3DA0FF;
  --color-bg-light: #F0F7FF;
  --color-text: #1A1A2E;
  --color-text-secondary: #6B7280;
  --color-white: #FFFFFF;
  --color-footer-bg: #111827;
  --color-footer-text: #9CA3AF;
  --color-border: #E5E7EB;
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-phone: 0 20px 60px rgba(0, 0, 0, 0.15);
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

@media (max-width: 639px) {
  .section {
    padding: 56px 0;
  }
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.nav__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav__cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .nav-open .nav__links {
    transform: translateY(0);
  }

  .nav-open .nav__hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-open .nav__hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-open .nav__hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav__link {
    font-size: 1.05rem;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  background: linear-gradient(165deg, #f8fbff 0%, #edf4ff 50%, #e0edff 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.25) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  animation: float 8s ease-in-out infinite;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.18) 0%, transparent 70%);
  bottom: -50px;
  left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 2;
}

.hero__content {
  flex: 1;
  min-width: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(10, 132, 255, 0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.hero__title {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease 0.1s both;
}

.hero__title span {
  background: linear-gradient(135deg, var(--color-primary) 0%, #5cb8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
  animation: fadeUp 0.6s ease 0.2s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* iPhone device mockup */
.hero__device {
  flex-shrink: 0;
  animation: fadeUp 0.8s ease 0.35s both;
}

.hero__device {
  perspective: 1200px;
}

.hero__iphone {
  position: relative;
  width: 280px;
  padding: 14px;
  background: #1a1a1a;
  border-radius: 44px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.18),
    0 10px 30px rgba(10, 132, 255, 0.12),
    inset 0 0 0 1.5px #333,
    inset 0 0 0 3px #1a1a1a;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
  will-change: transform;
  transform-style: preserve-3d;
}

.hero__iphone-shine {
  position: absolute;
  inset: 0;
  border-radius: 44px;
  pointer-events: none;
  z-index: 10;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 0%, transparent 60%);
  transition: background 0.3s ease;
}

.hero__iphone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  height: 4px;
  background: #333;
  border-radius: 0 0 12px 12px;
}

.hero__iphone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 5;
}

.hero__iphone-screen {
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 390 / 844;
}

.hero__iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1023px) {
  .hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__iphone {
    width: 240px;
  }
}

@media (max-width: 639px) {
  .hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 48px;
  }

  .hero__inner {
    gap: 36px;
  }

  .hero__iphone {
    width: 210px;
    padding: 12px;
    border-radius: 38px;
  }

  .hero__iphone-screen {
    border-radius: 28px;
  }

  .hero__iphone-notch {
    top: 12px;
    width: 85px;
    height: 24px;
    border-radius: 0 0 14px 14px;
  }
}

/* App Store Badge */
.app-store-badge {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 8px;
}

.app-store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.app-store-badge svg {
  display: block;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.35);
}


.btn--secondary {
  background: var(--color-white);
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== SOCIAL PROOF ===== */
.proof {
  background: var(--color-primary);
  padding: 40px 0;
}

.proof__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.proof__item {
  text-align: center;
  color: var(--color-white);
}

.proof__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.proof__icon svg {
  width: 28px;
  height: 28px;
  opacity: 0.9;
}

.proof__value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.proof__label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 2px;
}

@media (max-width: 639px) {
  .proof__inner {
    gap: 32px;
  }

  .proof__value {
    font-size: 1.25rem;
  }
}

/* ===== FEATURES ===== */
.features {
  background: var(--color-white);
}

.features__header {
  text-align: center;
  margin-bottom: 56px;
}

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

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-card__image {
  width: 180px;
  margin: 0 auto 24px;
  border-radius: 24px;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
}

.feature-card__image img {
  width: 100%;
}

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===== SECTION HEADINGS ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--color-bg-light);
  border: 1px solid rgba(10, 132, 255, 0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

.section-subtitle--center {
  margin: 0 auto;
}

/* ===== EDUCATION ===== */
.education {
  background: var(--color-bg-light);
}

.education__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.education__content {
  flex: 1;
}

.education__stat {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 20px;
}

.education__stat span {
  color: var(--color-primary);
}

.education__text {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.education__image {
  flex: 0 0 auto;
  width: 240px;
}

.education__image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-phone);
}

@media (max-width: 768px) {
  .education__inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .education__image {
    width: 200px;
  }
}

/* ===== HOW IT WORKS ===== */
.steps {
  background: var(--color-white);
}

.steps__header {
  text-align: center;
  margin-bottom: 56px;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

/* connecting line */
.steps__grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: var(--color-border);
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  border: 2px solid rgba(10, 132, 255, 0.2);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

.step__icon {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
}

.step__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.step__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .steps__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps__grid::before {
    display: none;
  }
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  text-align: center;
  padding: 80px 0;
}

.cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-footer-bg);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer__brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--color-footer-text);
  max-width: 280px;
}

.footer__links {
  display: flex;
  gap: 48px;
}

.footer__col-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--color-footer-text);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--color-white);
}

.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-footer-text);
}

@media (max-width: 639px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__tagline {
    max-width: 100%;
  }

  .footer__links {
    gap: 32px;
  }
}

/* ===== LEGAL PAGES ===== */
.legal {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
}

.legal__content {
  max-width: 720px;
  margin: 0 auto;
}

.legal__content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--color-text);
}

.legal__date {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
}

.legal__content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.legal__content p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal__content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}

.legal__content li {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal__content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__content a:hover {
  color: var(--color-primary-dark);
}

.legal__content strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
