:root {
  --bg-dark: #18100b;
  --bg-card: rgba(255, 244, 224, 0.07);
  --bg-card-strong: rgba(255, 244, 224, 0.12);
  --text-main: #fff6e8;
  --text-muted: #e0c9a8;
  --gold: #edc078;
  --gold-soft: rgba(237, 192, 120, 0.2);
  --chocolate: #3f2518;
  --cocoa: #5c3824;
  --caramel: #c88e52;
  --cream: #fff6e8;
  --vanilla: #f6e8cc;
  --brown: #5c3824;
  --border-soft: rgba(255, 236, 205, 0.22);
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 15% 15%, rgba(237, 192, 120, 0.18), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(255, 246, 232, 0.11), transparent 24%),
    radial-gradient(circle at 50% 95%, rgba(92, 56, 36, 0.4), transparent 36%),
    linear-gradient(135deg, #1c120c 0%, #2c1a12 48%, #16100b 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 246, 232, 0.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(237, 192, 120, 0.42) 1px, transparent 1px);
  background-size: 70px 70px, 110px 110px;
  background-position: 0 0, 35px 40px;
  opacity: 0.16;
}

.presentation-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
  position: relative;
  z-index: 1;
}

.hero-section {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: end;
  align-content: center;
  gap: 0;
}

.hero-content {
  min-width: 0;
  padding: 48px;
  border: 1px solid rgba(237, 192, 120, 0.26);
  border-radius: 34px;
  background: linear-gradient(
    145deg,
    rgba(130, 84, 54, 0.48),
    rgba(63, 37, 24, 0.34)
  );
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 246, 232, 0.14);
  backdrop-filter: blur(18px);
}

.hero-cake-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(78vh, 640px);
  align-self: end;
  justify-self: start;
  object-fit: contain;
  object-position: bottom left;
  border: none;
  background: none;
  filter:
    drop-shadow(0 28px 48px rgba(0, 0, 0, 0.34))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
  pointer-events: none;
  user-select: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 700;
}

.hero-description {
  max-width: 700px;
  margin-bottom: 24px;
  color: var(--vanilla);
  font-size: 18px;
  line-height: 1.65;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(237, 192, 120, 0.22);
  background: rgba(200, 142, 82, 0.12);
  color: var(--vanilla);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.scroll-hint-text {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-hint-arrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: rgba(255, 248, 234, 0.08);
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  animation: scroll-hint-bounce 2s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

.primary-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #1b1008;
  background: linear-gradient(135deg, #faebd0, var(--gold));
  box-shadow: 0 14px 34px rgba(237, 192, 120, 0.3);
}

.secondary-button {
  color: #fff3dc;
  border: 1px solid rgba(200, 142, 82, 0.44);
  background: linear-gradient(135deg, #4e3220 0%, #312014 100%);
  box-shadow: 0 14px 34px rgba(110, 58, 28, 0.32);
}

.primary-button:hover,
.secondary-button:hover,
.demo-link-card:hover {
  transform: translateY(-4px);
}

.primary-button:hover {
  box-shadow: 0 18px 44px rgba(237, 192, 120, 0.4);
}

.secondary-button:hover {
  box-shadow: 0 18px 44px rgba(130, 68, 32, 0.44);
  background: linear-gradient(135deg, #55361f 0%, #362014 100%);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.demo-link-card:focus-visible,
.scroll-hint:focus-visible,
.inline-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.hero-card,
.feature-card,
.demo-link-card,
.info-card,
.content-panel,
.motivation-card,
.screenshot-card,
.metric-card,
.final-cta .content-panel {
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero-card {
  padding: 34px;
}

.inline-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.inline-link:hover {
  color: var(--cream);
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
  color: var(--gold);
}

.section-block {
  margin-top: 48px;
}

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

.section-header h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-intro {
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

.feature-grid,
.link-grid,
.motivation-grid,
.screenshot-grid,
.metric-grid,
.tech-category-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.motivation-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.screenshot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.tech-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  padding: 28px;
  min-width: 0;
}

.feature-card h3 {
  margin-bottom: 14px;
  color: var(--vanilla);
  font-size: 24px;
}

.feature-card p,
.content-panel p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.feature-list--inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(237, 192, 120, 0.18);
  color: var(--vanilla);
  font-size: 15px;
  line-height: 1.55;
}

.content-panel {
  padding: 32px 34px;
}

.content-panel p + p {
  margin-top: 18px;
}

.content-panel--cta {
  text-align: center;
}

.content-panel--cta .eyebrow,
.content-panel--cta h2,
.content-panel--cta p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.content-panel--cta h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.content-panel--cta .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.motivation-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
}

.motivation-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.2);
}

.motivation-card-body {
  padding: 18px 16px 20px;
}

.motivation-card-body h3 {
  margin-bottom: 8px;
  color: var(--vanilla);
  font-size: 18px;
  line-height: 1.25;
}

.motivation-card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.screenshot-card {
  margin: 0;
  overflow: hidden;
  min-width: 0;
  padding: 0;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-soft);
}

.screenshot-card figcaption {
  display: grid;
  gap: 8px;
  padding: 18px 20px 22px;
}

.screenshot-card figcaption strong {
  color: var(--vanilla);
  font-size: 18px;
  line-height: 1.3;
}

.screenshot-card figcaption span {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.metric-card {
  padding: 28px 22px;
  text-align: center;
}

.metric-value {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-link-card,
.info-card {
  min-height: 150px;
  padding: 24px;
  color: var(--text-main);
}

.demo-link-card {
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.demo-link-card:hover {
  background: var(--bg-card-strong);
}

.info-card {
  background: rgba(255, 244, 224, 0.05);
  cursor: default;
}

.demo-link-card span,
.info-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.demo-link-card strong,
.info-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.final-cta {
  margin-top: 44px;
}

@media (max-width: 1100px) {
  .motivation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .presentation-page {
    width: min(100% - 32px, 860px);
    padding-top: 32px;
  }

  .hero-section {
    min-height: auto;
    grid-template-columns: 2fr 1fr;
    align-content: start;
    gap: 0;
    padding: 32px 0;
  }

  .hero-cake-image {
    width: 100%;
    max-height: 320px;
    align-self: end;
    justify-self: start;
    object-position: bottom left;
  }

  .hero-content {
    padding: 34px;
  }

  .hero-card {
    padding: 28px;
  }

  .feature-grid,
  .link-grid,
  .tech-category-grid,
  .feature-list--inline {
    grid-template-columns: 1fr 1fr;
  }

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

  .motivation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .presentation-page {
    width: min(100% - 24px, 520px);
    padding: 20px 0 56px;
  }

  .presentation-page .hero-cake-image {
    display: none;
  }

  .hero-content {
    padding: 26px 22px;
    border-radius: 26px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    align-items: stretch;
    align-content: start;
    gap: 16px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-card,
  .feature-card,
  .demo-link-card,
  .info-card,
  .content-panel,
  .motivation-card,
  .screenshot-card,
  .metric-card {
    border-radius: 24px;
  }

  .feature-grid,
  .feature-grid--two,
  .link-grid,
  .motivation-grid,
  .screenshot-grid,
  .metric-grid,
  .tech-category-grid,
  .feature-list--inline {
    grid-template-columns: 1fr;
  }

  .demo-link-card,
  .info-card {
    min-height: 130px;
  }

  .section-block {
    margin-top: 36px;
  }

  .content-panel {
    padding: 24px 22px;
  }

  .section-header h2 {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-hint-arrow {
    animation: none;
  }

  .primary-button,
  .secondary-button,
  .demo-link-card,
  .scroll-hint {
    transition: none;
  }

  .primary-button:hover,
  .secondary-button:hover,
  .demo-link-card:hover {
    transform: none;
  }
}
