:root {
  --c-orange: #ff5500;
  --c-orange-dim: #fff0e5;
  --c-stroke: #d92d20;
  --c-teal: #004b6e;
  --c-ink: #1a1a1a;
  --c-bg: #fff8f2;
  --c-grid: #f1e4d9;
  --c-shadow: rgba(0, 0, 0, 0.12);
  --radius-hard: 6px;
  --radius-soft: 24px;
  --stroke-weight: 3px;
  --font-display: "Outfit", sans-serif;
  --font-ui: "Space Grotesk", sans-serif;
}

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

body {
  background-color: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-ui);
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(255, 85, 0, 0.08), transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(0, 75, 110, 0.08), transparent 40%),
    linear-gradient(var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
}

.page {
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3.5rem, 8vw, 6.2rem);
  color: var(--c-orange);
  -webkit-text-stroke: 2px var(--c-stroke);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  color: var(--c-teal);
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3d3d3d;
  max-width: 60ch;
}

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

.site-header {
  padding: 28px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--c-stroke);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 22px;
  height: 22px;
  background: var(--c-orange);
  border-radius: 50%;
  border: 2px solid var(--c-stroke);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.08);
}

.btn {
  border: none;
  background: transparent;
  font-family: var(--font-ui);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-hard);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--c-teal);
  color: white;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.12);
}

.btn-ghost {
  border: 2px solid var(--c-stroke);
  background: white;
  color: var(--c-ink);
}

.btn-ghost:hover {
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-teal);
  background: rgba(0, 75, 110, 0.08);
  border: 1px solid rgba(0, 75, 110, 0.2);
}

.hero {
  padding: 80px 0 110px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

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

.hero-visual {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vector-blob {
  width: 420px;
  height: 420px;
  background: var(--c-orange);
  border: 4px solid var(--c-stroke);
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  position: relative;
  animation: blob-float 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 12px 12px;
}

.pin {
  width: 16px;
  height: 16px;
  background: var(--c-ink);
  border-radius: 50%;
  position: absolute;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pin-1 {
  top: 10%;
  left: 30%;
}

.pin-2 {
  bottom: 20%;
  right: 15%;
}

.pin-3 {
  top: 50%;
  left: 5%;
}

.pin-4 {
  top: 15%;
  right: 25%;
}

.demo-window {
  background: white;
  border: 3px solid var(--c-ink);
  border-radius: 10px;
  padding: 24px;
  width: min(92%, 380px);
  position: absolute;
  z-index: 5;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.1);
  font-family: "Times New Roman", serif;
}

.demo-meta {
  color: #666;
  font-size: 0.75rem;
  margin-bottom: 8px;
  font-family: var(--font-ui);
}

.news-headline {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 12px;
  line-height: 1.3;
}

.replacement-target {
  background: var(--c-orange-dim);
  color: var(--c-stroke);
  padding: 0 4px;
  border-radius: 4px;
  display: inline-block;
  font-weight: bold;
  font-family: var(--font-display);
}

.demo-line {
  height: 8px;
  width: 100%;
  background: #eee;
  border-radius: 4px;
  margin-bottom: 8px;
}

.demo-line.short {
  width: 80%;
}

.features {
  padding: 100px 0 80px;
}

.section-title {
  display: grid;
  gap: 16px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

.card {
  background: white;
  border: var(--stroke-weight) solid var(--c-stroke);
  border-radius: var(--radius-soft);
  padding: 30px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: var(--c-ink);
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--c-ink);
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--c-teal);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--c-stroke);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--c-orange);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps {
  padding: 90px 0 110px;
  background: white;
  border-top: 2px dashed var(--c-ink);
  border-bottom: 2px dashed var(--c-ink);
}

.steps-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  padding: 24px;
  border-radius: 18px;
  border: 2px solid rgba(0, 75, 110, 0.2);
  background: #f6fbff;
  box-shadow: 6px 6px 0 rgba(0, 75, 110, 0.15);
}

.step-index {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--c-orange);
  letter-spacing: 0.08em;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.toggle-switch {
  width: 50px;
  height: 28px;
  background: var(--c-ink);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  border: none;
}

.toggle-knob {
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
}

.toggle-switch.active {
  background: var(--c-orange);
}

.toggle-switch.active .toggle-knob {
  transform: translateX(22px);
}

.site-footer {
  padding: 50px 0 70px;
  text-align: center;
  opacity: 0.6;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes blob-float {
  0%,
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0, 0);
  }
  33% {
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    transform: translate(10px, -20px);
  }
  66% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: translate(-10px, 10px);
  }
}

@keyframes warp-text {
  0% {
    transform: scale(1) skew(0deg);
  }
  50% {
    transform: scale(1.08) skew(-10deg);
    color: var(--c-orange);
  }
  100% {
    transform: scale(1) skew(0deg);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.warp-anim {
  animation: warp-text 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 420px;
  }

  .demo-window {
    position: relative;
    margin-top: -60px;
  }
}

@media (max-width: 900px) {
  .vector-blob {
    display: none;
  }

  .pin {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero-visual {
    height: auto;
    padding: 24px 0 20px;
    display: flex;
    justify-content: center;
  }

  .demo-window {
    position: relative;
    margin-top: 0;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
  }

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

  .hero-actions {
    width: 100%;
  }

  .demo-window {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vector-blob,
  .warp-anim,
  .reveal {
    animation: none;
  }
}
