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

:root {
  --bg: #0C0F14;
  --bg-alt: #111520;
  --card: #161B22;
  --accent: #E8A838;
  --green: #34D399;
  --red: #F87171;
  --text: #F0F2F5;
  --text-muted: #8B949E;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: 'Outfit', system-ui, sans-serif; }

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

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .3s, backdrop-filter .3s;
}
.nav--scrolled {
  background: rgba(12,15,20,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  display: flex; align-items: center; gap: 6px;
}
.nav__logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  font-weight: 800; font-size: .9rem;
}
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-size: .95rem;
  color: var(--text-muted);
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
}
.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .6s ease forwards;
  animation-delay: var(--delay);
}
.hero__line:nth-child(3) { color: var(--accent); }
.hero__sub {
  margin-top: 24px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
}
.hero__cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem; font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover { box-shadow: 0 8px 24px rgba(232,168,56,.3); }
.btn--outline {
  background: transparent;
  border: 1.5px solid rgba(240,242,245,.2);
  color: var(--text);
}
.btn--outline:hover { border-color: rgba(240,242,245,.4); }
.btn--full { width: 100%; justify-content: center; }

/* === PHONE MOCKUP === */
.phone-mockup {
  width: 280px; margin: 0 auto;
  background: var(--card);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
.phone-mockup__screen {
  background: var(--bg);
  border-radius: 22px;
  padding: 24px 16px;
  min-height: 420px;
}
.mock-header { text-align: center; margin-bottom: 24px; }
.mock-greeting { display: block; font-size: .8rem; color: var(--text-muted); }
.mock-amount { display: block; font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 700; color: var(--accent); margin: 4px 0; }
.mock-label { display: block; font-size: .75rem; color: var(--text-muted); }
.mock-entity {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 8px;
}
.mock-entity__icon { font-size: 1.5rem; }
.mock-entity__info { flex: 1; }
.mock-entity__name { display: block; font-size: .85rem; font-weight: 600; }
.mock-entity__detail { display: block; font-size: .72rem; color: var(--text-muted); }
.mock-entity__badge { font-size: .65rem; padding: 3px 8px; border-radius: 20px; font-weight: 600; }
.mock-entity__badge--warn { background: rgba(248,113,113,.15); color: var(--red); }

/* === SECTIONS === */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 16px; }
.section__desc { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }

/* === CALENDAR DEMO === */
.calendar-demo { max-width: 600px; margin: 0 auto; }
.calendar-demo__labels {
  display: grid; grid-template-rows: repeat(6, 1fr);
  gap: 6px;
  text-align: right;
  font-size: .8rem;
  color: var(--text-muted);
  position: absolute;
  left: -120px; top: 0; bottom: 0;
}
.calendar-demo__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 6px;
  position: relative;
}
.calendar-demo__months {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  text-align: center;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.cal-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.5);
  animation: popIn .3s ease forwards;
}
.cal-cell--green { background: var(--green); }
.cal-cell--red { background: var(--red); }
.cal-cell--amber { background: var(--accent); }
.cal-cell--empty { background: rgba(240,242,245,.06); }

/* === ENTITIES DEMO === */
.entities-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.entity-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 3px solid var(--card-color, var(--accent));
  transition: transform .2s;
}
.entity-card:hover { transform: translateY(-4px); }
.entity-card__icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.entity-card__name { display: block; font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.entity-card__count { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; }
.entity-card__types { display: flex; flex-wrap: wrap; gap: 6px; }
.entity-card__types span {
  font-size: .75rem;
  background: rgba(240,242,245,.06);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--text-muted);
}

/* === CHANNELS === */
.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.channel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform .2s;
}
.channel:hover { transform: translateY(-4px); }
.channel__icon { font-size: 2.4rem; margin-bottom: 16px; }
.channel__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.channel__desc { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* === PRIVACY === */
.privacy-visual { display: flex; justify-content: center; }
.privacy-phone {
  background: var(--card);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  max-width: 360px;
}
.privacy-phone__shield { font-size: 3.5rem; margin-bottom: 24px; }
.privacy-phone__lines { display: flex; flex-direction: column; gap: 12px; }
.privacy-phone__lines span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .95rem;
  color: var(--green);
  padding: 10px 16px;
  background: rgba(52,211,153,.08);
  border-radius: var(--radius-sm);
}
.privacy-phone__lines span::before { content: '\2713'; font-weight: 700; }

/* === REMINDERS === */
.reminders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.reminder {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform .2s;
}
.reminder:hover { transform: translateY(-4px); }
.reminder__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.reminder__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.reminder__desc { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* === PRICING === */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.price-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1.5px solid rgba(240,242,245,.06);
  transition: transform .2s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card--featured { border-color: var(--accent); position: relative; }
.price-card__badge {
  display: inline-block;
  font-size: .8rem; font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(240,242,245,.06);
  color: var(--text-muted);
  margin-bottom: 20px;
}
.price-card--featured .price-card__badge { background: var(--accent); color: var(--bg); }
.price-card__price { margin-bottom: 8px; display: flex; align-items: baseline; gap: 2px; }
.price-card__currency { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700; }
.price-card__amount { font-family: 'Outfit', sans-serif; font-size: 3rem; font-weight: 800; line-height: 1; }
.price-card__period { font-size: .85rem; color: var(--text-muted); margin-left: 4px; }
.price-card__note { font-size: .85rem; color: var(--text-muted); margin-bottom: 24px; }
.price-card__features { list-style: none; margin-bottom: 28px; }
.price-card__features li {
  font-size: .9rem;
  padding: 6px 0;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(240,242,245,.04);
}
.price-card__features li:last-child { border-bottom: none; }

/* === FOOTER === */
.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(240,242,245,.06);
}
.footer__inner { text-align: center; }
.footer__tagline { color: var(--text-muted); font-size: .9rem; margin-top: 8px; }
.footer__links { display: flex; justify-content: center; gap: 24px; margin: 24px 0; }
.footer__links a { color: var(--text-muted); font-size: .85rem; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { font-size: .8rem; color: var(--text-muted); }

/* === ANIMATIONS === */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  to { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .nav__links { display: none; }
  .section { padding: 72px 0; }
  .calendar-demo__labels { display: none; }
  .pricing { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding-top: 96px; }
  .hero__cta { flex-direction: column; }
  .btn--full, .hero__cta .btn { width: 100%; justify-content: center; }
  .entities-demo { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
}
