/* ========================================
   MASK·BEFORE·AI — Landing Page Styles
   Dark theme, accent blue #38bdf8
   ======================================== */

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-dim: rgba(56, 189, 248, 0.12);
  --border: #334155;
  --radius: 12px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", Consolas, monospace;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  background: var(--bg-secondary);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.hero__logo {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.hero__logo-icon {
  height: 80px;
  width: auto;
}

.hero__tagline {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero__sub {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__pricing-link {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.hero__image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 2.5rem auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
}

.btn--outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--outline:hover {
  background: var(--accent-dim);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ========================================
   Problem
   ======================================== */
.problem {
  padding: 5rem 1.5rem;
}

.problem__lead {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 1rem auto 2.5rem;
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 780px;
  margin: 0 auto;
}

.problem__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-weight: 500;
}

.problem__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.problem__icon svg {
  width: 24px;
  height: 24px;
}

.problem__note {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.problem__note strong {
  color: var(--accent);
}

.problem__image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 2.5rem auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ========================================
   How It Works
   ======================================== */
.how-it-works {
  padding: 5rem 1.5rem;
  background: var(--bg-secondary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.step__number {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step__icon {
  width: 48px;
  height: 48px;
  margin: 0.5rem auto 1rem;
  color: var(--accent);
}

.step__icon svg {
  width: 48px;
  height: 48px;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step__image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========================================
   Supported Platforms
   ======================================== */
.platforms {
  padding: 5rem 1.5rem;
}

.platforms__sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.platforms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.platform {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.platform:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.platform__name {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.platform__domain {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ========================================
   Masking Modes
   ======================================== */
.modes {
  padding: 5rem 1.5rem;
  background: var(--bg-secondary);
}

.modes__sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.modes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.mode {
  text-align: center;
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.mode__preview {
  padding: 2rem 1.5rem;
  background: #0b1120;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.mode__sample {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.mode__text {
  display: block;
  margin-bottom: 0.5rem;
}

.mode__masked {
  display: block;
}

.mode__preview--blur .mode__masked {
  filter: blur(6px);
  user-select: none;
}

.mode__preview--pixelate .mode__masked {
  filter: blur(3px) contrast(200%);
  image-rendering: pixelated;
  user-select: none;
}

.mode__preview--black .mode__masked {
  background: #000;
  color: #000;
  user-select: none;
  border-radius: 2px;
}

.mode h3 {
  padding: 1rem 1.5rem 0.25rem;
}

.mode p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========================================
   Pricing
   ======================================== */
.pricing {
  padding: 5rem 1.5rem;
  background: var(--bg-secondary);
}

.pricing__sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.pricing__card {
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing__card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
}

.pricing__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-primary);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing__header {
  margin-bottom: 1.5rem;
}

.pricing__price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.5rem 0 0.25rem;
}

.pricing__period {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing__features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing__features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.pricing__features li:last-child {
  border-bottom: none;
}

/* ========================================
   Enterprise
   ======================================== */
.enterprise {
  padding: 5rem 1.5rem;
}

.enterprise__lead {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.enterprise__image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.enterprise__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.enterprise__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.enterprise__feature svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-top: 0.1rem;
}

.enterprise__feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.enterprise__feature p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.enterprise__cta {
  text-align: center;
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.enterprise__cta p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* ========================================
   Install
   ======================================== */
.install {
  padding: 5rem 1.5rem;
  background: var(--bg-secondary);
}

.install__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.install__step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.install__num {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.install__step h3 {
  margin-bottom: 0.5rem;
}

.install__step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--accent);
}

/* ========================================
   Legal Pages
   ======================================== */
.legal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-header__back {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.legal-header__back:hover {
  color: var(--accent);
}

.legal-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-header__logo {
  height: 40px;
  width: auto;
}

.legal-header__title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.legal-page {
  padding: 3rem 1.5rem 4rem;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-content__date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  text-align: left;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--accent);
}

.legal-content a:hover {
  color: var(--accent-hover);
}

/* ========================================
   FAQ
   ======================================== */
.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.faq h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.faq__section {
  margin-top: 2.5rem;
}

.faq__section h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.faq__item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__q {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.faq__a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem 3.5rem;
  }

  .hero__logo {
    font-size: 2.2rem;
  }

  .hero__logo-icon {
    height: 60px;
  }

  .hero__tagline {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .problem__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .platforms__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modes__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .enterprise__grid {
    grid-template-columns: 1fr;
  }

  .install__steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer__content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__logo {
    font-size: 1.6rem;
  }

  .hero__logo-icon {
    height: 44px;
  }

  .hero__tagline {
    font-size: 1rem;
  }

  .hero__sub {
    font-size: 0.95rem;
  }

  .problem__grid {
    grid-template-columns: 1fr;
  }

  .platforms__grid {
    grid-template-columns: 1fr;
  }

  .pricing__card {
    padding: 1.5rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}
