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

:root {
  --bg: #08080c;
  --bg-elevated: #0f0f16;
  --bg-card: #12121c;
  --bg-card-hover: #181826;
  --text: #ebebf0;
  --text-muted: #7a7a92;
  --accent: #e8a83e;
  --accent-dim: rgba(232, 168, 62, 0.15);
  --accent-glow: rgba(232, 168, 62, 0.25);
  --accent-hover: #f0bc60;
  --green: #5ee6a0;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --max-width: 1060px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Film grain ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ---------- Typography ---------- */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 em, h2 em {
  font-style: italic;
  color: var(--accent);
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

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

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 52px;
}

/* ---------- Layout ---------- */

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

section {
  padding: 110px 0;
  position: relative;
}

/* ---------- Nav ---------- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.8);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  transition: color 0.2s;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0, 0.2, 1);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #0a0a0f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 40px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 20px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-large {
  padding: 16px 36px;
  font-size: 17px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
  border-radius: 26px;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5));
  position: relative;
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  margin-bottom: 24px;
  position: relative;
}

.hero .highlight {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), #f0d090);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-trial {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 64px;
  letter-spacing: 0.02em;
}

.hero-video {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.2),
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255,255,255,0.03) inset;
}

.hero-video video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-placeholder {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 16px;
  aspect-ratio: 16/9;
}

.play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  padding-left: 3px;
}

/* ---------- Problem ---------- */

.problem {
  background: var(--bg-elevated);
}

.problem .container {
  text-align: center;
}

.problem h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 56px;
}

.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: left;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.problem-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.problem-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-style: italic;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 20px;
  right: 24px;
  line-height: 1;
}

.problem-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Solution ---------- */

.solution .container {
  text-align: center;
}

.solution h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 16px;
}

.workflow-steps {
  display: flex;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.workflow-step {
  flex: 1;
  padding: 24px 12px;
  position: relative;
  text-align: center;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
}

.step-line {
  position: absolute;
  top: 44px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(232, 168, 62, 0.15) 100%);
}

.workflow-step:last-child .step-line {
  display: none;
}

.workflow-step h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.workflow-step p {
  font-size: 13px;
  color: var(--text-muted);
}

.solution-video {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ---------- Features ---------- */

.features {
  background: var(--bg-elevated);
}

.features .container {
  text-align: center;
}

.features h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon-wrap span {
  font-size: 22px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-card kbd {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  background: rgba(232, 168, 62, 0.08);
  border: 1px solid rgba(232, 168, 62, 0.18);
  border-radius: 6px;
  font-size: 12px;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ---------- Pricing ---------- */

.pricing .container {
  text-align: center;
}

.pricing h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  text-align: center;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.price-card:hover {
  transform: translateY(-3px);
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow), 0 0 0 1px var(--accent) inset;
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.price-amount .currency {
  font-size: 28px;
  vertical-align: top;
  position: relative;
  top: 8px;
  margin-right: 2px;
}

.price-amount .cents {
  font-size: 28px;
  vertical-align: top;
  position: relative;
  top: 4px;
}

.price-period {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.price-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.price-card li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-card li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(94, 230, 160, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6L5 8.5L9.5 4' stroke='%235ee6a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.price-card .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Download ---------- */

.download {
  text-align: center;
  background: var(--bg-elevated);
}

.download h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 16px;
}

.download-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.download-box .system-req {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .copyright {
  font-size: 13px;
  color: var(--text-muted);
}

footer .footer-links {
  display: flex;
  gap: 24px;
}

footer .footer-links a {
  color: var(--text-muted);
  font-size: 13px;
}

footer .footer-links a:hover {
  color: var(--text);
}

/* ---------- Scroll animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.25, 0, 0.2, 1), transform 0.7s cubic-bezier(0.25, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

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

@media (max-width: 700px) {
  section {
    padding: 72px 0;
  }

  .hero {
    padding: 120px 0 56px;
  }

  .hero-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .nav-links {
    gap: 16px;
  }

  .problem-cards {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step-line {
    display: none;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .download-box {
    padding: 0 16px;
  }
}

