@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/PlayfairDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --bg-glow: #141414;
  --text: #f5f5f5;
  --text-soft: rgba(245, 245, 245, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ffffff;
  --max: 1120px;
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Playfair Display", "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.06'/></svg>");
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 32px clamp(20px, 5vw, 60px) 120px;
  display: grid;
  align-content: center;
  overflow: hidden;
}

.hero__parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.parallax-layer {
  position: absolute;
  inset: -10% -10% auto;
  height: 70vh;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.5;
}

.layer-1 {
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 60%);
  top: -20%;
  left: -10%;
}

.layer-2 {
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,0.08), transparent 60%);
  top: -10%;
  right: -20%;
}

.layer-3 {
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06), transparent 70%);
  top: 20%;
  left: 10%;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 80px;
}

.brand {
  font-size: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav__link {
  font-size: 16px;
  color: var(--text-soft);
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: var(--text);
}

.nav__cta {
  padding: 10px 18px;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-soft);
  margin-bottom: 32px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.button {
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--text);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.button.primary {
  background: var(--text);
  color: var(--bg);
}

.button.primary:hover {
  transform: translateY(-2px);
}

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

.hero__meta {
  font-size: 14px;
  color: var(--text-soft);
}

.section {
  padding: 120px clamp(20px, 5vw, 60px);
  position: relative;
  z-index: 2;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__intro {
  margin-bottom: 48px;
  max-width: 680px;
}

.section__intro h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}

.section__intro p {
  color: var(--text-soft);
  font-size: 18px;
}

.features {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.feature-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-soft);
}

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

.pair {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.pair__label {
  padding: 14px 18px;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}

.pair img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.process {
  background: var(--bg-glow);
}

.process__steps {
  display: grid;
  gap: 24px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.step__index {
  font-size: 24px;
  color: var(--text-soft);
}

.step h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-soft);
}

.download {
  background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.08), transparent 60%);
}

.download__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.footer {
  padding: 40px clamp(20px, 5vw, 60px) 60px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-soft);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav__actions {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 24px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .pair img {
    height: 200px;
  }
}

@media (max-width: 600px) {
  .brand {
    font-size: 20px;
  }

  .hero__title {
    font-size: 38px;
  }

  .section {
    padding: 90px 20px;
  }

  .download__card {
    padding: 32px 24px;
  }
}

.policy-hero {
  position: relative;
  padding: 32px clamp(20px, 5vw, 60px) 60px;
  border-bottom: 1px solid var(--line);
}

.policy-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.policy {
  background: var(--bg-soft);
}

.policy__content h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 28px;
  margin-bottom: 12px;
}

.policy__content p {
  color: var(--text-soft);
  margin-bottom: 16px;
}

.policy__content ul {
  color: var(--text-soft);
  padding-left: 20px;
  margin-bottom: 18px;
}

.policy__content li {
  margin-bottom: 10px;
}

.footer__link {
  margin-left: 16px;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.footer__link:hover {
  border-bottom-color: var(--text);
}

.delete-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.03);
}

.delete-steps {
  color: var(--text-soft);
  padding-left: 24px;
  margin-bottom: 24px;
}

.delete-steps li {
  margin-bottom: 10px;
}

.delete-note {
  margin-top: 8px;
}

.delete-actions {
  margin-top: 28px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.delete-google-button {
  width: 100%;
}

.delete-google-button > div,
.delete-google-button iframe {
  width: 100% !important;
}

.delete-button {
  width: 100%;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.48);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.delete-button[disabled] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.48);
  opacity: 1;
  cursor: not-allowed;
}

.delete-button:not([disabled]) {
  background: var(--bg);
  border-color: #d96a6a;
  color: #f08a8a;
}

.delete-button:not([disabled]):hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #f08a8a;
  color: #ffd0d0;
  transform: translateY(-2px);
}

.delete-status {
  min-height: 28px;
  max-width: 320px;
  color: var(--text-soft);
}

.delete-status.is-error {
  color: #ff9f9f;
}
