/* ==========================================================================
   Korus Landing Page — style.css
   Matches mobile app design: sharp corners, two-tone headings, 
   striped patterns, deep purple identity
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Primary — matches app design tokens */
  --primary: #180358;
  --primary-80: rgba(24, 3, 88, 0.80);
  --primary-50: rgba(24, 3, 88, 0.50);
  --primary-30: rgba(24, 3, 88, 0.30);
  --primary-20: rgba(24, 3, 88, 0.20);
  --primary-12: rgba(24, 3, 88, 0.12);
  --primary-08: rgba(24, 3, 88, 0.08);

  --secondary: #4754F4;
  --tertiary: #D7B2FF;
  --blue: #3B30F8;
  --white: #FFFFFF;
  --black: #000000;

  /* Shades */
  --violet-dark: #1E0863;
  --violet-mid: #421ABF;
  --violet-light: #6D52F1;
  --blue-mid: #4754F4;

  /* Neutrals — zinc scale from app */
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  /* Semantic */
  --success: #22c55e;
  --error: #ef4444;

  /* Gradients — signature app gradient */
  --gradient-brand: linear-gradient(90deg, #180358 0%, #4754F4 50%, #D7B2FF 100%);
  --gradient-btn: linear-gradient(90deg, #180358 0%, #4754F4 60%, #D7B2FF 100%);

  /* Typography */
  --font-heading: 'Syne', sans-serif;
  --font-number: 'Tomorrow', sans-serif;

  /* Spacing — 4px grid from app */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-18: 72px;
  --space-24: 96px;

  --section-padding: 120px 0;
  --container-width: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* --- Striped Pattern (app signature) --- */
.striped-bg {
  position: relative;
}

.striped-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    var(--primary-12) 0px,
    var(--primary-12) 1px,
    transparent 1px,
    transparent 32px
  );
  pointer-events: none;
  opacity: 0.4;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-5) 0;
  background: transparent;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.4s, border-color 0.4s;
}

/* Scrolled state — light nav */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--primary-12);
}

.nav.scrolled .nav__logo svg path { fill: var(--primary); }
.nav.scrolled .nav__logo-text { color: var(--primary); }
.nav.scrolled .nav__link { color: var(--primary-50); }
.nav.scrolled .nav__link:hover { color: var(--primary); }
.nav.scrolled .nav__lang a { color: var(--primary-30); }
.nav.scrolled .nav__lang a:hover { color: var(--primary-80); }
.nav.scrolled .nav__lang a.active { color: var(--white); background: var(--primary); }
.nav.scrolled .nav__toggle span { background: var(--primary); }

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__logo svg {
  width: 28px;
  height: 31px;
}

/* Nav logo: white by default (hero is dark) */
.nav__logo svg path { fill: var(--white); transition: fill 0.4s; }

.nav__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 0.4s;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

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

.nav__lang {
  display: flex;
  gap: var(--space-1);
}

.nav__lang a {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.35);
  transition: all 0.3s;
}

.nav__lang a:hover { color: rgba(255, 255, 255, 0.8); }
.nav__lang a.active {
  color: var(--primary);
  background: var(--white);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s;
}

/* --- Two-tone heading (app signature) --- */
.two-tone__line1 {
  display: block;
  color: var(--primary);
}

.two-tone__line2 {
  display: block;
  color: var(--primary-30);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
  background: var(--primary);
}

/* Striped overlay on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 48px
  );
  pointer-events: none;
}

/* Gradient glow orb */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 84, 244, 0.2) 0%, rgba(215, 178, 255, 0.05) 40%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
}

.hero__descriptor {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.05;
  margin-bottom: var(--space-8);
  color: var(--white);
}

.hero__title .two-tone__line1 {
  color: var(--white);
}

.hero__title .two-tone__line2 {
  color: rgba(255, 255, 255, 0.35);
}

.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-6);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__body {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 540px;
  margin: 0 auto var(--space-12);
  line-height: 1.8;
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Gradient line divider (app accent) --- */
.gradient-line {
  height: 4px;
  background: var(--gradient-brand);
  border: none;
}

/* --- Store badges — sharp corners like app --- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 16px 32px;
  border-radius: 0;
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.store-badge svg { width: 24px; height: 24px; }

.store-badge__label {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-badge__small {
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.6;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-badge__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

/* --- Features --- */
.features {
  padding: var(--section-padding);
  background: linear-gradient(180deg, #F4E6FF 0%, #FAF5FF 40%, #F0F7FF 100%);
  position: relative;
}

.section__descriptor {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--space-4);
  text-align: center;
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: var(--space-18);
  line-height: 1.15;
  color: var(--primary);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* Feature cards — app style: sharp corners, elevated shadow */
.feature-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(24, 3, 88, 0.06);
  border-radius: 0;
  padding: var(--space-10) var(--space-6);
  text-align: left;
  box-shadow: 0 4px 24px rgba(24, 3, 88, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(24, 3, 88, 0.12);
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-6);
  border-radius: 0;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.feature-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--primary);
}

.feature-card__desc {
  font-size: 0.88rem;
  color: var(--primary-50);
  line-height: 1.6;
}

/* --- Pricing --- */
.pricing {
  padding: var(--section-padding);
  background: linear-gradient(180deg, #F0F7FF 0%, #FAF5FF 50%, #EDDCFF 100%);
  position: relative;
}

.pricing__card {
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(24, 3, 88, 0.1);
  border-radius: 0;
  padding: var(--space-12) var(--space-10);
  text-align: center;
  position: relative;
  box-shadow: 0 8px 40px rgba(24, 3, 88, 0.1);
}

.pricing__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

.pricing__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary);
  margin-bottom: var(--space-6);
}

.pricing__price {
  font-family: var(--font-number);
  font-weight: 700;
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 0;
  line-height: 1;
}

.pricing__price .pricing__currency {
  font-size: 1.5rem;
  color: var(--primary-30);
  vertical-align: super;
  margin-right: 4px;
}

.pricing__period {
  font-size: 0.9rem;
  color: var(--primary-30);
  margin-bottom: var(--space-8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pricing__features {
  text-align: left;
  margin-bottom: var(--space-10);
}

.pricing__features li {
  font-size: 0.9rem;
  color: var(--primary-80);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--primary-08);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pricing__features li::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234754F4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

/* Gradient CTA button — app signature */
.btn-gradient {
  display: inline-block;
  padding: 18px 56px;
  border-radius: 0;
  background: var(--gradient-btn);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(24, 3, 88, 0.2);
}

/* --- Download Section --- */
.download {
  padding: var(--section-padding);
  background: var(--primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 40px
  );
  pointer-events: none;
}

.download .container { position: relative; z-index: 1; }

.download__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: var(--space-4);
  color: var(--white);
}

.download__subtitle {
  font-size: 1rem;
  color: var(--tertiary);
  margin-bottom: var(--space-10);
  letter-spacing: 0.05em;
}

.download__badges {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Download badges already white by default — no override needed */

/* --- Footer --- */
.footer {
  padding: var(--space-12) 0;
  background: var(--zinc-950);
  border-top: 3px solid;
  border-image: var(--gradient-brand) 1;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__logo svg {
  width: 22px;
  height: 24px;
}

/* Footer logo stays white */
.footer__logo svg path { fill: var(--white); }

.footer__logo-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__link {
  font-size: 0.8rem;
  color: var(--zinc-500);
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer__copy {
  font-size: 0.75rem;
  color: var(--zinc-600);
}



/* --- Legal pages --- */
.legal-page {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, #FAF5FF 0%, #F0F7FF 50%, #FAF5FF 100%);
  min-height: 100vh;
}

.legal-page .container { max-width: 800px; }

.legal-page__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.4rem;
  margin-bottom: var(--space-8);
  color: var(--primary);
}

.legal-page__embed {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--primary-12);
  border-radius: 0;
  background: var(--white);
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(24, 3, 88, 0.97);
    backdrop-filter: blur(24px);
    padding: var(--space-6);
    gap: var(--space-5);
    border-bottom: 1px solid var(--primary-12);
  }

  :root { --section-padding: 80px 0; }

  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero__title { font-size: 2.4rem; }

  .features__grid { grid-template-columns: 1fr; }

  .pricing__card { padding: var(--space-8) var(--space-6); }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer__links { justify-content: center; }

  .store-badge { padding: 14px 24px; }
}
