/* ============================================
   TaleDrop Landing — Brand orange + parchment
   ============================================ */

:root {
  --orange: #E87A2D;
  --orange-soft: #FFE9D6;
  --orange-dark: #C25E14;
  --ink: #1A1A1F;
  --ink-soft: #4A4A55;
  --ink-faint: #8A8A95;
  --parchment: #FBF8F2;
  --parchment-deep: #F4EFE4;
  --surface: #FFFFFF;
  --surface-alt: #F4F5F8;
  --border: #E8E5DC;
  --shadow-sm: 0 2px 8px rgba(26, 26, 31, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 31, 0.10);
  --shadow-lg: 0 24px 60px rgba(26, 26, 31, 0.18);
  --radius: 6px;
  --radius-lg: 14px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
}

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

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

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

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 20px;
}
.nav__logo {
  font-size: 24px;
}
.brand-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}
.nav__title {
  letter-spacing: -0.02em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
}
.nav__links a {
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav__links a:hover {
  color: var(--orange);
}
.nav__cta {
  background: var(--orange);
  color: white !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 700;
}
.nav__cta:hover {
  background: var(--orange-dark);
  color: white !important;
}

@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) {
    display: none;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse at top right, var(--orange-soft) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, var(--parchment-deep) 0%, transparent 50%),
    var(--parchment);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero__pill {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange-dark);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(232, 122, 45, 0.25);
}
.hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero__title-accent {
  color: var(--orange);
  font-style: italic;
}
.hero__subtitle {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 32px;
  font-weight: 500;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 8px 20px rgba(232, 122, 45, 0.35);
}
.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 122, 45, 0.45);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--orange);
  color: var(--orange);
}
.hero__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--orange);
  font-family: 'Playfair Display', serif;
}
.stat span {
  font-size: 13px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Phone mockups */
.hero__phones {
  position: relative;
  height: 580px;
}
.phone {
  position: absolute;
  width: 260px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 8px #1a1a1f, 0 0 0 9px #2a2a2f;
  transition: transform 0.4s ease;
}
.phone img {
  width: 100%;
  display: block;
}
.phone--back {
  top: 30px;
  right: 0;
  transform: rotate(6deg);
  z-index: 1;
}
.phone--back:hover {
  transform: rotate(6deg) translateY(-8px);
}
.phone--front {
  top: 80px;
  left: 0;
  transform: rotate(-4deg);
  z-index: 2;
}
.phone--front:hover {
  transform: rotate(-4deg) translateY(-8px);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__cta {
    justify-content: center;
  }
  .hero__stats {
    justify-content: center;
  }
  .hero__phones {
    height: 500px;
    margin-top: 24px;
  }
  .phone {
    width: 220px;
  }
  .phone--back {
    right: 50%;
    margin-right: -160px;
  }
  .phone--front {
    left: 50%;
    margin-left: -160px;
  }
}

/* ============================================
   SECTIONS / HEADERS
   ============================================ */
section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-header p {
  font-size: 17px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  background: var(--surface);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--parchment);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}
.feature__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ink);
}
.feature p {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how {
  background: var(--parchment-deep);
}
.how__grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.how__step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.how__step--reverse .how__step-img {
  order: 2;
}
.how__step-img {
  display: flex;
  justify-content: center;
}
.how__step-img img {
  max-width: 280px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg), 0 0 0 6px #1a1a1f;
}
.how__num {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.4;
}
.how__step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.how__step p {
  font-size: 17px;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 460px;
}

@media (max-width: 800px) {
  .how__step,
  .how__step--reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .how__step--reverse .how__step-img {
    order: 0;
  }
  .how__step p {
    margin: 0 auto;
  }
}

/* ============================================
   COMMUNITY / DEMO
   ============================================ */
.community {
  background: var(--surface);
}
.community__card {
  background: linear-gradient(135deg, var(--orange) 0%, #F39B5E 100%);
  border-radius: 28px;
  padding: 60px 48px;
  text-align: center;
  color: white;
  box-shadow: 0 30px 70px rgba(232, 122, 45, 0.30);
  position: relative;
  overflow: hidden;
}
.community__card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.community__card::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.community__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.20);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.community__card h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.community__card p {
  font-size: 18px;
  opacity: 0.92;
  max-width: 540px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}
.community__buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.comm-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  color: var(--ink);
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all 0.2s;
  box-shadow: var(--shadow-md);
}
.comm-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.comm-btn svg {
  flex-shrink: 0;
}
.comm-btn--telegram svg {
  color: #0088CC;
}
.comm-btn--discord svg {
  color: #5865F2;
}
.comm-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.comm-btn strong {
  font-size: 16px;
  font-weight: 800;
}
.comm-btn small {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* ============================================
   DOWNLOAD
   ============================================ */
.download {
  background: var(--parchment);
  text-align: center;
}
.download__buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: white;
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all 0.2s;
  min-width: 220px;
}
.store-btn:hover {
  background: #2a2a30;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.store-btn svg {
  flex-shrink: 0;
}
.store-btn div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.store-btn small {
  font-size: 12px;
  opacity: 0.8;
}
.store-btn strong {
  font-size: 19px;
  font-weight: 800;
}
.download__note {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 500;
}
.download__note a {
  color: var(--orange);
  font-weight: 700;
  border-bottom: 2px solid var(--orange-soft);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 40px;
  text-align: center;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 14px;
}
.footer p {
  margin-bottom: 6px;
  font-weight: 500;
}
.footer__copy {
  font-size: 14px;
  opacity: 0.6;
  margin-top: 18px;
}
