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

:root {
  --bg: #F0EBE3;
  --text: #141210;
  --accent: #6B2432;
  --gold: #B8944F;
  --muted: #6E6358;
  --card: #FAF6F0;
  --line: #C4A96A;
  --font-display: 'IBM Plex Serif', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --max-w: 1140px;
  --header-h: 4.25rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

.hero-grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 52%, #000 58%, #000 100%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2rem);
  background: rgba(240, 235, 227, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold);
}

.site-header__brand {
  color: var(--gold);
}

.site-header__cta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: filter 0.25s, background 0.25s, color 0.25s;
}

.site-header__cta:hover {
  background: var(--accent);
  color: #FAF6F0;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--header-h);
}

.hero--mirror {
  grid-template-columns: 58% 42%;
}

.hero__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
}

.hero__panel--visual {
  position: relative;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  justify-content: stretch;
  background: var(--card);
}

.hero__panel--text {
  flex-direction: column;
  align-items: flex-start;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-left: none;
  background: var(--bg);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  opacity: 0;
}

.hero__subtitle {
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0;
}

.hero__btn {
  display: inline-flex;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, var(--accent) 0%, #5A1A26 100%);
  color: #FAF6F0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--gold);
  opacity: 0;
  transition: filter 0.25s;
}

.hero__btn:hover { filter: brightness(1.1); }

.hero__panel--text .hero__title,
.hero__panel--text .hero__subtitle,
.hero__panel--text .hero__btn {
  max-width: 28rem;
}

.hero-visual {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.hero-visual__ui {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero--mirror .hero-image img {
  object-position: right center;
}

.hero__btn-wrap {
  display: none;
  opacity: 0;
}

.hero__btn--float {
  opacity: 0;
}

.ui-tag {
  background: rgba(250, 246, 240, 0.92);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.35rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold);
  backdrop-filter: blur(6px);
  opacity: 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline__line {
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
  transform-origin: top;
  transform: scaleY(0);
}

.timeline__item {
  position: relative;
  padding-bottom: 2.25rem;
  opacity: 0;
  transform: translateX(-16px);
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -2rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--line);
}

.timeline__item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.timeline__item p {
  font-size: 0.9rem;
  color: var(--muted);
}

.benefits-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.benefit-card {
  flex-shrink: 0;
  min-width: clamp(220px, 24vw, 260px);
  padding: 1.5rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.04);
}

.cta {
  text-align: center;
  max-width: 540px;
  opacity: 0;
  transform: translateY(30px);
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.cta__text {
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.cta__btn {
  display: inline-flex;
  padding: 0.9rem 1.85rem;
  background: linear-gradient(135deg, var(--accent) 0%, #5A1A26 100%);
  color: #FAF6F0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--gold);
  transition: filter 0.25s;
}

.cta__btn:hover { filter: brightness(1.1); }

.site-footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(250, 246, 240, 0.6);
}

.site-footer__inner {
  text-align: center;
}

.site-footer__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.site-footer__line {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .hero,
  .hero--mirror { grid-template-columns: 1fr; min-height: auto; }

  .hero__panel--visual {
    min-height: 70svh;
    height: 70svh;
    max-height: 70svh;
  }

  .hero__panel--text {
    padding: 1.5rem 1.15rem 2.5rem;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 768px) {
  html,
  body {
    height: auto;
    min-height: 100svh;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .hero__panel--visual {
    flex-shrink: 0;
    position: relative;
    height: 70svh;
    min-height: 70svh;
    max-height: 70svh;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
  }

  .hero-image img {
    object-position: center 55%;
  }

  .hero__panel--text .hero__btn {
    display: none;
  }

  .hero__btn-wrap {
    display: flex;
    position: absolute;
    bottom: clamp(0.85rem, 3vw, 1.25rem);
    left: 0;
    right: 0;
    justify-content: center;
    z-index: 3;
    padding: 0 1rem;
    pointer-events: none;
  }

  .hero__btn-wrap .hero__btn {
    pointer-events: auto;
    width: min(100%, 20rem);
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .hero-visual__ui {
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
  }

  .hero__panel--text {
    flex-shrink: 0;
    height: auto;
    min-height: auto;
    padding: 1.5rem 1.15rem 2.5rem;
    border-top: 1px solid var(--line);
  }

  .benefits-track { flex-wrap: wrap; width: 100%; }
  .benefit-card { min-width: 100%; }
}
