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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #060b18;
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', 'Inter', sans-serif;
}

code, .mono {
  font-family: 'JetBrains Mono', monospace;
}

a {
  color: #00d4ff;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #5ce1ff;
}

img {
  max-width: 100%;
}

/* ===== Layout ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  letter-spacing: -0.01em;
}

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

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn-primary {
  background: #ff6b6b;
  color: #fff;
  box-shadow: 0 4px 24px rgba(255, 107, 107, 0.25);
}

.btn-primary:hover {
  background: #ff5252;
  color: #fff;
  box-shadow: 0 6px 32px rgba(255, 107, 107, 0.35);
}

.btn-outline {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.btn-outline:hover {
  border-color: #00d4ff;
  color: #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 24, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.06);
}

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

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 2px;
}


.logo::before {
  content: '~';
  color: #00d4ff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: 2px;
}

.logo:hover {
  color: #fff;
}

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

.nav-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #e2e8f0;
}

.nav-links .btn {
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}

/* Animated dot grid background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: gridDrift 20s linear infinite;
  pointer-events: none;
}

@keyframes gridDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(32px, 32px); }
}

/* Subtle radial glow */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 740px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #00d4ff 0%, #ffffff 50%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ===== Wave Section Separator ===== */
.wave-separator {
  position: relative;
  height: 60px;
  overflow: hidden;
}

.wave-separator svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
}

/* ===== Scanner Card ===== */
.scanner-card {
  background: rgba(13, 21, 38, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 660px;
  margin: 0 auto;
  text-align: left;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 4px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 212, 255, 0.05) inset;
}

.scanner-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: #00d4ff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.input-group input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(6, 11, 24, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input::placeholder {
  color: #4a5568;
}

.input-group input:focus {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.scanner-form .btn {
  width: 100%;
}

/* Scanner Loading */
.scanner-loading {
  text-align: center;
  padding: 32px 0;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 212, 255, 0.15);
  border-top-color: #00d4ff;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.scanner-loading p {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Scanner Error */
.scanner-error {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 20px;
}

.scanner-error p {
  color: #ff6b6b;
  font-size: 0.9rem;
}

/* Scanner Results */
.scanner-results {
  margin-top: 28px;
}

.results-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.08);
}

.score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid;
  position: relative;
}

/* Glowing ring animation */
.score-circle::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: scoreGlow 2s ease-in-out infinite;
}

.score-circle.score-high {
  border-color: #00e676;
  background: rgba(0, 230, 118, 0.08);
}

.score-circle.score-high::after {
  border-color: rgba(0, 230, 118, 0.3);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.15);
}

.score-circle.score-mid {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.score-circle.score-mid::after {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.score-circle.score-low {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.08);
}

.score-circle.score-low::after {
  border-color: rgba(255, 107, 107, 0.3);
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.15);
}

@keyframes scoreGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.score-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.score-high .score-value { color: #00e676; }
.score-mid .score-value { color: #f59e0b; }
.score-low .score-value { color: #ff6b6b; }

.score-label {
  display: flex;
  flex-direction: column;
}

.score-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.score-desc {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 3px;
}

/* Engine Cards */
.engine-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.engine-card {
  background: rgba(6, 11, 24, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color 0.2s;
}

.engine-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
}

.engine-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.engine-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.engine-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.engine-status.cited {
  color: #00e676;
}

.engine-status.not-cited {
  color: #ff6b6b;
}

.engine-detail {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 8px;
}

.engine-snippet {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 8px;
  line-height: 1.5;
  border-left: 2px solid rgba(0, 212, 255, 0.2);
  padding-left: 12px;
}

.results-cta {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 212, 255, 0.08);
}

.results-cta p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* ===== Section Headings ===== */
.section-heading {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-subtitle {
  text-align: center;
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ===== Features ===== */
.features {
  position: relative;
  padding: 120px 0;
}

.features h2,
.comparison h2,
.pricing h2,
.cta h2 {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  background: #0d1526;
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

/* Gradient border effect using pseudo-element */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.02), rgba(0, 212, 255, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.06);
}

.feature-card:hover::before {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 212, 255, 0.05), rgba(0, 212, 255, 0.15));
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #e2e8f0;
}

.feature-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ===== Comparison Table ===== */
.comparison {
  padding: 120px 0;
  position: relative;
}

.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 48px;
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.08);
  background: #0d1526;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 24px;
  text-align: left;
}

.comparison-table thead th {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  background: rgba(6, 11, 24, 0.5);
}

.comparison-table thead .highlight-col {
  color: #00d4ff;
}

.comparison-table .highlight-col {
  background: rgba(0, 212, 255, 0.04);
}

.comparison-table tbody tr {
  border-bottom: 1px solid rgba(0, 212, 255, 0.04);
  transition: background 0.15s;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(0, 212, 255, 0.015);
}

.comparison-table tbody tr:nth-child(even) .highlight-col {
  background: rgba(0, 212, 255, 0.055);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: rgba(0, 212, 255, 0.03);
}

.comparison-table .yes {
  color: #00e676;
  font-weight: 600;
}

.comparison-table .no {
  color: #64748b;
}

.comparison-table td:first-child {
  color: #e2e8f0;
  font-weight: 500;
}

/* ===== Pricing ===== */
.pricing {
  padding: 120px 0;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: rgba(13, 21, 38, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
}

.pricing-card-popular {
  border-color: transparent;
  background: rgba(13, 21, 38, 0.8);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.2),
    0 0 60px rgba(0, 212, 255, 0.08),
    0 8px 40px rgba(0, 0, 0, 0.3);
}

/* Glowing gradient border for popular card */
.pricing-card-popular::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, #00d4ff, rgba(0, 212, 255, 0.2), #00d4ff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00d4ff, #0090b3);
  color: #060b18;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #e2e8f0;
}

.pricing-amount {
  margin-bottom: 8px;
}

.price {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #e2e8f0;
}

.price-period {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #94a3b8;
  font-weight: 400;
}

.pricing-desc {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 28px;
}

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

.pricing-features li {
  padding: 9px 0;
  font-size: 0.9rem;
  color: #94a3b8;
  border-bottom: 1px solid rgba(0, 212, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-card .btn {
  width: 100%;
}

/* ===== CTA ===== */
.cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
}

.cta::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  background: linear-gradient(135deg, #00d4ff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta p {
  color: #94a3b8;
  font-size: 1.05rem;
  margin: 16px auto 36px;
  max-width: 480px;
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.12), transparent);
}

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

.footer-brand .logo {
  font-size: 1.1rem;
}

.footer-brand p {
  color: #64748b;
  font-size: 0.8rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: #64748b;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #94a3b8;
}

.footer-copy {
  color: #334155;
  font-size: 0.8rem;
}

/* ===== Wave Separator (between sections) ===== */
.section-wave {
  display: block;
  width: 100%;
  height: 48px;
  color: #060b18;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 36px;
  }

  .scanner-inputs {
    grid-template-columns: 1fr;
  }

  .scanner-card {
    padding: 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .features h2,
  .comparison h2,
  .pricing h2,
  .cta h2 {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .results-header {
    flex-direction: column;
    text-align: center;
  }

  .comparison-table-wrap {
    border-radius: 12px;
  }

  .features,
  .comparison,
  .pricing,
  .cta {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .scanner-card {
    padding: 20px;
    border-radius: 14px;
  }

  .price {
    font-size: 2.2rem;
  }

  .pricing-card {
    padding: 28px 24px;
  }

  .feature-card {
    padding: 24px;
  }
}
