/* ============================================
   operatedby.ai — stylesheet
   Dark theme, electric teal accent, Inter font
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Reset & base ─────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #0a0a0a;
  --bg-card:    #111111;
  --bg-card-2:  #161616;
  --border:     #1e1e1e;
  --border-2:   #2a2a2a;
  --accent:     #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --accent-glow:rgba(0, 212, 255, 0.25);
  --text:       #f5f5f5;
  --text-muted: #888888;
  --text-dim:   #555555;
  --radius:     12px;
  --radius-lg:  20px;
  --max-w:      1100px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ── Scrollbar ────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ── Utility ──────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

/* ── Scroll-animation classes ─────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate][data-delay="1"] { transition-delay: 0.1s; }
[data-animate][data-delay="2"] { transition-delay: 0.2s; }
[data-animate][data-delay="3"] { transition-delay: 0.3s; }
[data-animate][data-delay="4"] { transition-delay: 0.4s; }

/* ── NAV ──────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
}

/* ── HERO ─────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 0 90px;
  text-align: center;
  overflow: hidden;
}

/* Radial glow behind headline */
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-headline .highlight {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

/* ── Hero form ────────────────────────────── */
.hero-form-wrap {
  max-width: 480px;
  margin: 0 auto 20px;
}

.hero-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-form:focus-within {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.hero-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}
.hero-form input[type="email"]::placeholder {
  color: var(--text-dim);
}

.hero-form button,
.hero-form input[type="submit"] {
  flex-shrink: 0;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 14px 22px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: -0.01em;
}
.hero-form button:hover,
.hero-form input[type="submit"]:hover {
  background: #33dcff;
}
.hero-form button:active,
.hero-form input[type="submit"]:active {
  transform: scale(0.98);
}

.hero-trust {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 12px;
}
.hero-trust strong {
  color: var(--text-muted);
  font-weight: 500;
}

/* ── SECTION BASE ─────────────────────────── */
section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
}

/* ── WHAT YOU GET ─────────────────────────── */
.benefits {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefits-header {
  text-align: center;
  margin-bottom: 56px;
}
.benefits-header .section-sub {
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.card-body {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── SAMPLE PROMPT ────────────────────────── */
.sample {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sample-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.sample-left .section-sub {
  margin-bottom: 28px;
}

.sample-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

.sample-teaser {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Prompt code block */
.prompt-block {
  background: #0d0d0d;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #141414;
  border-bottom: 1px solid var(--border);
}

.prompt-dots {
  display: flex;
  gap: 6px;
}
.prompt-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.prompt-dots .dot-r { background: #ff5f57; }
.prompt-dots .dot-y { background: #febc2e; }
.prompt-dots .dot-g { background: #28c840; }

.prompt-title-bar {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.prompt-body {
  padding: 28px 28px 24px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: #c9d1d9;
  white-space: pre-wrap;
  overflow-x: auto;
}

.prompt-body .comment { color: #6e7681; }
.prompt-body .var     { color: var(--accent); font-weight: 500; }
.prompt-body .keyword { color: #ff9d5c; }
.prompt-body .string  { color: #a5d6ff; }

.prompt-footer {
  padding: 14px 28px;
  background: #0d0d0d;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* ── ABOUT ────────────────────────────────── */
.about {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.about-store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.about-store-link:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.about-store-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.about-store-link:hover svg {
  opacity: 1;
}

.about-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── FINAL CTA ────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-title {
  max-width: 600px;
  margin: 0 auto 16px;
}

.cta-section .section-sub {
  margin: 0 auto 40px;
  text-align: center;
}

.cta-section .hero-form-wrap {
  margin-bottom: 16px;
}

/* ── FOOTER ───────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

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

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}

/* ── DIVIDERS ─────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
  margin: 0;
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 72px 0 68px;
  }

  .sample-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-form {
    flex-direction: column;
    border-radius: 12px;
  }

  .hero-form input[type="email"] {
    border-bottom: 1px solid var(--border-2);
  }

  .hero-form button,
  .hero-form input[type="submit"] {
    width: 100%;
    padding: 14px;
    border-radius: 0 0 11px 11px;
  }

  .nav-cta {
    display: none;
  }

  section {
    padding: 60px 0;
  }

  .cta-section {
    padding: 72px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .about-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}
