/* ═══ Custom Properties ═══ */
:root {
  --blush: #E8A0B4;
  --peach: #F4B89A;
  --beige: #D7C4A9;
  --grape: #6B4C6E;
  --grape-light: #8A6B8D;
  --espresso: #3E2F2B;
  --cocoa: #5C4742;
  --cream: #FBF8F4;
  --muted: #8D7B74;
  --soft: #B8A99E;
  --border: #EDE6DE;
  --blush-mist: #FDF0F4;
  --peach-mist: #FFF5EE;
  --beige-mist: #FAF6F0;
  --grape-mist: #F5EDF5;
  --blush-soft: #F9D5DF;
  --peach-soft: #FDDCC8;
  --beige-soft: #EDE3D4;

  --gradient-brand: linear-gradient(135deg, #E8A0B4, #F4B89A, #D7C4A9);
  --gradient-cta: linear-gradient(135deg, #E8A0B4, #F4B89A);

  --shadow-card: 0 4px 20px rgba(62, 47, 43, 0.05);
  --shadow-btn: 0 4px 16px rgba(232, 160, 180, 0.25);
  --shadow-phone: 0 24px 60px rgba(62, 47, 43, 0.15), 0 8px 20px rgba(62, 47, 43, 0.08);

  --font-display: 'Quicksand', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--espresso);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* ═══ Background Orbs ═══ */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 160, 180, 0.10) 0%, transparent 70%);
  top: -80px;
  right: -100px;
  animation: float-1 8s ease-in-out infinite alternate;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(244, 184, 154, 0.08) 0%, transparent 70%);
  bottom: 10%;
  left: -120px;
  animation: float-2 10s ease-in-out infinite alternate;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(215, 196, 169, 0.08) 0%, transparent 70%);
  top: 40%;
  right: -60px;
  animation: float-3 7s ease-in-out infinite alternate;
}

@keyframes float-1 {
  from { transform: translate(0, 0); }
  to { transform: translate(-30px, 40px); }
}

@keyframes float-2 {
  from { transform: translate(0, 0); }
  to { transform: translate(40px, -30px); }
}

@keyframes float-3 {
  from { transform: translate(0, 0); }
  to { transform: translate(-20px, -35px); }
}

/* ═══ Main Layout ═══ */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 20px;
  position: relative;
  z-index: 1;
  min-height: 0;
}

/* ═══ Fade-in Animations ═══ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* ═══ Logo ═══ */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.logo-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(232, 160, 180, 0.2);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-khar { color: var(--espresso); }
.logo-chi { color: var(--blush); }

/* ═══ Tagline ═══ */
.tagline {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--espresso);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.15;
}

.teaser {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
}

/* ═══ Mock iPhone ═══ */
.phone-wrapper {
  margin-bottom: 28px;
  perspective: 1200px;
  flex-shrink: 1;
  min-height: 0;
}

.phone {
  width: min(220px, 28vh);
  height: min(440px, 56vh);
  border-radius: 44px;
  border: 3px solid #1A1A1A;
  background: #000;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.phone:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}

.phone-screen {
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 41px;
  background: var(--cream);
  overflow: hidden;
}

.screen-content {
  width: 100%;
  height: 100%;
  padding: 44px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  filter: blur(6px);
  -webkit-filter: blur(6px);
}

/* ═══ Mock UI Elements ═══ */
.mock-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px;
  margin-bottom: 2px;
}

.mock-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mock-dot-small {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.mock-bar-sm {
  width: 44px;
  height: 8px;
  border-radius: 4px;
}

.mock-nav {
  display: flex;
  gap: 6px;
  padding: 6px 0;
}

.mock-tab {
  flex: 1;
  height: 24px;
  border-radius: 12px;
  background: var(--beige-soft);
}

.mock-tab-active {
  background: var(--gradient-cta);
}

.mock-card {
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-card-1 {
  background: linear-gradient(145deg, var(--blush-mist), var(--peach-mist));
  border: 1px solid var(--border);
}

.mock-card-2 {
  background: linear-gradient(145deg, var(--grape-mist), var(--beige-mist));
  border: 1px solid var(--border);
}

.mock-card-title {
  width: 60%;
  height: 8px;
  border-radius: 4px;
  background: var(--soft);
}

.mock-card-value {
  width: 45%;
  height: 16px;
  border-radius: 6px;
  background: var(--espresso);
  opacity: 0.7;
}

.mock-card-subtitle {
  width: 35%;
  height: 6px;
  border-radius: 3px;
  background: var(--blush);
  opacity: 0.6;
}

.mock-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

.mock-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-label {
  width: 40px;
  height: 7px;
  border-radius: 4px;
  background: var(--soft);
}

.mock-progress {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: var(--beige-soft);
  overflow: hidden;
}

.mock-fill {
  height: 100%;
  border-radius: 5px;
}

.mock-bottom {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 8px;
  margin-top: auto;
}

.mock-circle {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* ═══ CTA ═══ */
.cta {
  text-align: center;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 24px;
  background: var(--gradient-cta);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 160, 180, 0.35);
}

.cta-button:focus-visible {
  outline: 2px solid var(--grape);
  outline-offset: 3px;
}

.cta-button:active {
  transform: translateY(0);
}

.cta-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--soft);
}

.apple-icon {
  opacity: 0.6;
}

/* ═══ Social ═══ */
.social {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.social-link {
  color: var(--cocoa);
  transition: color 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.social-link:hover {
  color: var(--blush);
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 2px solid var(--blush);
  outline-offset: 3px;
}

/* ═══ Footer ═══ */
.footer {
  text-align: center;
  padding: 12px 24px 16px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--soft);
}

.footer-year {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--soft);
  opacity: 0.6;
}

/* ═══ Responsive ═══ */
@media (max-width: 480px) {
  main {
    padding: 28px 20px 16px;
  }

  .tagline {
    font-size: 28px;
  }

  .teaser {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .phone {
    width: 180px;
    height: 360px;
    border-radius: 34px;
  }

  .phone-screen {
    border-radius: 31px;
  }

  .phone-notch {
    width: 68px;
    height: 20px;
  }

  .screen-content {
    padding: 34px 10px 14px;
    gap: 8px;
  }

  .logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .logo-icon svg {
    width: 22px;
    height: 22px;
  }

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

  .orb-1 { width: 250px; height: 250px; }
  .orb-2 { width: 200px; height: 200px; }
  .orb-3 { width: 160px; height: 160px; }
}

/* ═══ Reduced Motion ═══ */
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; will-change: auto; }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .phone {
    transform: none;
  }

  .phone:hover {
    transform: none;
  }

  .cta-button:hover {
    transform: none;
  }

  .social-link:hover {
    transform: none;
  }
}
