/* Prevent iOS zoom on input focus */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px;
  }
}

/* Informer - Surveillance-themed form builder */

:root {
  --primary: #1e3a5f;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --bg-dark: #0f172a;
  --bg-surface: #1e293b;
  --bg-card: #1e293b;
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-dim: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.1);
  --warning: #f59e0b;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-white);
}

.nav-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.nav-links a,
.nav-links button {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

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

.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.1s !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: scale(1.02);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent), #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-white);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Demo Banner */
.demo-banner {
  background: var(--primary);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.demo-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.demo-pulse {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
}

/* Features */
.features {
  padding: 100px 24px;
  background: var(--bg-surface);
}

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

.feature-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* Code Section */
.code-section {
  padding: 100px 24px;
}

.code-example {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.code-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
}

.code-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.code-tab:hover {
  color: var(--text-white);
}

.code-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.code-block {
  padding: 24px;
  overflow-x: auto;
}

.code-block.hidden {
  display: none;
}

.code-block pre {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-white);
  margin: 0;
  white-space: pre-wrap;
}

.code-keyword { color: #c792ea; }
.code-string { color: #c3e88d; }
.code-property { color: #82aaff; }
.code-comment { color: #546e7a; }
.code-number { color: #f78c6c; }

/* Form Gallery */
.gallery {
  padding: 100px 24px;
  background: var(--bg-surface);
}

.gallery-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s;
}

.gallery-card:hover {
  border-color: rgba(34, 197, 94, 0.3);
}

.gallery-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.gallery-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.gallery-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.gallery-btn {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-btn:hover {
  background: rgba(34, 197, 94, 0.2);
}

/* Dashboard Preview */
.dashboard-preview {
  padding: 100px 24px;
}

.dashboard-mock {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.dashboard-tabs {
  display: flex;
  gap: 24px;
}

.dashboard-tab {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.dashboard-tab.active {
  color: var(--accent);
  font-weight: 600;
}

.dashboard-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.dashboard-body {
  padding: 24px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-stat {
  background: var(--bg-dark);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.dash-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.dash-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-white);
}

.dash-stat-change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.dash-stat-change.positive {
  color: var(--accent);
}

.dash-stat-change.neutral {
  color: var(--text-muted);
}

.dashboard-recent {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.recent-header {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.recent-item:last-child {
  border-bottom: none;
}

.recent-time {
  width: 60px;
  color: var(--text-muted);
  font-size: 12px;
}

.recent-event {
  flex: 1;
  color: var(--text-white);
}

.recent-user {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 12px;
}

/* Pricing */
.pricing {
  padding: 100px 24px;
  background: var(--bg-surface);
}

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

.pricing-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.pricing-card.featured .pricing-badge {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.pricing-name {
  font-size: 24px;
  font-weight: 800;
  margin-top: 16px;
  margin-bottom: 4px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 24px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.pricing-btn.primary {
  background: var(--accent);
  color: #000;
}

.pricing-btn.primary:hover {
  background: var(--accent-hover);
}

.pricing-btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-white);
}

.pricing-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Testimonials */
.testimonials {
  padding: 100px 24px;
}

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

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-weight: 600;
  font-size: 14px;
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* CTA */
.cta {
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--primary), var(--bg-dark));
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Footer */
.footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 60px 24px 24px;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-brand img {
  height: 32px;
}

.footer-brand span {
  font-size: 20px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    justify-self: center;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-link-docs {
    display: none !important;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-value {
    font-size: 24px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .features-grid,
  .gallery-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }

  .recent-user {
    display: none;
  }
}
