/* ---------- FITARNA Home Page ---------- */
:root {
  --home-red: #8b0000;
  --home-red-dark: #650000;
  --home-gold: #b2934f;
  --home-gold-bright: #d6b25e;

  --home-ink: #101828;
  --home-muted: #667085;
  --home-bg: #fbf8f2;
  --home-card: rgba(255, 255, 255, 0.92);
  --home-border: rgba(16, 24, 40, 0.12);
  --home-shadow: 0 18px 46px rgba(16, 24, 40, 0.12);

  --home-red-soft: rgba(139, 0, 0, 0.1);
  --home-gold-soft: rgba(178, 147, 79, 0.16);
}

html.dark {
  --home-ink: #f8fafc;
  --home-muted: #cbd5e1;
  --home-bg: #080b12;
  --home-card: rgba(15, 23, 42, 0.86);
  --home-border: rgba(255, 255, 255, 0.12);
  --home-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);

  --home-red-soft: rgba(139, 0, 0, 0.22);
  --home-gold-soft: rgba(214, 178, 94, 0.14);
}

body {
  overflow-x: hidden;
}

main {
  background:
    radial-gradient(circle at 10% 8%, rgba(139, 0, 0, 0.11), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(178, 147, 79, 0.16), transparent 28rem),
    linear-gradient(180deg, #fbf8f2 0%, #ffffff 46%, #f8f4ec 100%);
}

html.dark main {
  background:
    radial-gradient(circle at 10% 8%, rgba(139, 0, 0, 0.3), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(178, 147, 79, 0.14), transparent 28rem),
    linear-gradient(180deg, #080b12 0%, #111827 52%, #0f172a 100%);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(139, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 147, 79, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.hero-compact {
  padding: 58px 0 56px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.82fr);
  align-items: center;
  gap: 54px;
}

.hero-copy {
  position: relative;
  max-width: 760px;
  padding: 44px 0 44px 36px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--home-red);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(2.5rem, 4.6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.gradient-text {
  color: var(--home-red);
}

html.dark .gradient-text {
  color: var(--home-gold-bright);
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: #111827;
  font-size: clamp(1.04rem, 1.55vw, 1.22rem);
  line-height: 1.7;
}

html.dark .hero-lede {
  color: #ffffff;
}

/* ---------- Hero Image ---------- */
.hero-photo-wide {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 340px;
  justify-self: end;
}

.hero-photo-wide img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid rgba(139, 0, 0, 0.22);
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.16);
}

html.dark .hero-photo-wide img {
  border-color: rgba(214, 178, 94, 0.22);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

/* ---------- General Sections ---------- */
.section {
  padding: 64px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--home-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.dark .section-kicker {
  color: var(--home-gold-bright);
}

.section-header h2,
.showcase-copy h2,
.docs-intro h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-header p:not(.section-kicker),
.showcase-copy p,
.docs-intro p {
  color: var(--home-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ---------- Feature Cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 26px;
  border: 1px solid rgba(139, 0, 0, 0.12);
  border-radius: 22px;
  background: var(--home-card);
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(14px);
}

html.dark .feature-card {
  border-color: rgba(214, 178, 94, 0.14);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--home-red-soft);
  color: var(--home-red);
  font-weight: 900;
}

html.dark .feature-icon {
  background: var(--home-gold-soft);
  color: var(--home-gold-bright);
}

.feature-card h3 {
  margin: 0 0 10px;
  color: var(--home-ink);
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.6;
}

/* ---------- App Screenshot Section ---------- */
.app-section {
  padding-top: 30px;
}

.app-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  gap: 42px;
  align-items: center;
  padding: 36px;
  border: 1px solid rgba(139, 0, 0, 0.12);
  border-radius: 28px;
  background: var(--home-card);
  box-shadow: var(--home-shadow);
  backdrop-filter: blur(16px);
}

html.dark .app-showcase-grid {
  border-color: rgba(214, 178, 94, 0.14);
}

.phone-mockup {
  position: relative;
  width: min(330px, 100%);
  margin: 0 auto;
  padding: 14px;
  border-radius: 46px;
  background: #101010;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.28);
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 2;
  width: 92px;
  height: 25px;
  border-radius: 999px;
  background: #050505;
  transform: translateX(-50%);
}

.phone-mockup::after {
  content: "";
  position: absolute;
  top: 23px;
  left: calc(50% + 28px);
  z-index: 3;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f59e0b;
}

.phone-mockup img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: center;
  border-radius: 34px;
}

/* ---------- Demo Video ---------- */
.showcase-band,
.docs-card {
  padding: 36px;
  border: 1px solid rgba(139, 0, 0, 0.12);
  border-radius: 28px;
  background: var(--home-card);
  box-shadow: var(--home-shadow);
  backdrop-filter: blur(16px);
}

html.dark .showcase-band,
html.dark .docs-card {
  border-color: rgba(214, 178, 94, 0.14);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 32px;
  align-items: center;
}

.mode-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.mode-list li {
  display: flex;
  gap: 12px;
  color: var(--home-muted);
  line-height: 1.55;
}

.mode-list b {
  color: var(--home-ink);
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--home-red-soft);
  color: var(--home-red);
  font-weight: 900;
}

html.dark .check {
  background: var(--home-gold-soft);
  color: var(--home-gold-bright);
}

.video-panel {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.18);
}

.video-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Documents Section ---------- */
.docs-card {
  margin-bottom: 48px;
}

.docs-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.6fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.docs-card .table-title {
  color: var(--home-ink);
}

.docs-card .table-wrap {
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
footer {
  padding: 28px 16px;
  text-align: center;
}

footer p {
  margin: 8px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 28px, 1120px);
  }

  .hero-compact {
    padding: 46px 0 48px;
  }

  .hero-grid,
  .showcase-grid,
  .docs-intro,
  .app-showcase-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 860px;
  }

  .hero-photo-wide {
    max-width: 680px;
    justify-self: center;
  }

  .hero-photo-wide img {
    height: 430px;
  }

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

  .phone-mockup {
    width: min(310px, 100%);
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 22px, 1120px);
  }

  .hero-compact {
    padding: 34px 0 38px;
  }

  .hero-copy {
    padding: 28px 0 28px 24px;
  }

  .hero-copy::before {
    width: 6px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 13vw, 3.4rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-photo-wide {
    max-width: 100%;
  }

  .hero-photo-wide img {
    height: 340px;
    border-radius: 6px;
  }

  .showcase-band,
  .docs-card,
  .app-showcase-grid {
    padding: 22px;
    border-radius: 22px;
  }

  .phone-mockup {
    padding: 12px;
    border-radius: 40px;
  }

  .phone-mockup img {
    border-radius: 29px;
  }
}