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

/* ═══════════════════════════════════════════════════════════════
   AlgorithmsData Design System
   Dark theme · Accent #00D4AA · Font Inter
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0a0a;
  --bg-card: #111;
  --bg-surface: #161616;
  --border: #1e1e1e;
  --border-accent: #2a2a2a;
  --white: #f5f5f5;
  --gray-100: #e0e0e0;
  --gray-200: #b0b0b0;
  --gray-300: #808080;
  --gray-400: #555;
  --gray-500: #333;
  --accent: #00D4AA;
  --accent-bright: #00F0C0;
  --accent-dim: #00A888;
  --accent-glow: rgba(0,212,170,.08);
  --accent-glow-strong: rgba(0,212,170,.15);
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
  --radius: 10px;
}

/* ── Reset ─────────────────────────────────────────────────── */

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

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--gray-200);
  line-height: 1.7;
  font-size: 16px;
}

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

/* ── Homepage Nav ──────────────────────────────────────────── */

.home-nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.5px;
}

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

.nav-cta {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  transition: all .3s var(--ease);
}

.nav-cta:hover {
  background: var(--accent-bright);
  box-shadow: 0 4px 20px rgba(0,212,170,.25);
}

/* ── Homepage Hero ─────────────────────────────────────────── */

.home-hero {
  padding: 100px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
}

.home-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.home-hero p {
  font-size: 17px;
  color: var(--gray-300);
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

/* ── Trust Pills ───────────────────────────────────────────── */

.trust-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
  position: relative;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 12px;
  color: var(--gray-200);
  font-weight: 500;
}

.trust-pill .dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* ── Home Sections ─────────────────────────────────────────── */

.home-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

/* ── Services Grid ─────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.service-card {
  display: block;
  padding: 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.service-card .price-from {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow-strong);
  padding: 3px 8px;
  border-radius: 4px;
}

.service-card p {
  font-size: 13px;
  color: var(--gray-300);
  line-height: 1.5;
  margin-bottom: 6px;
}

.service-card .unit {
  font-size: 11px;
  color: var(--gray-400);
}

.service-card .arrow {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* ── Steps Row ─────────────────────────────────────────────── */

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-item {
  text-align: center;
}

.step-num {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.step-item h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.step-item p {
  font-size: 12px;
  color: var(--gray-400);
}

/* ── Trust Bar ─────────────────────────────────────────────── */

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 36px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-stat {
  text-align: center;
}

.trust-stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.trust-stat-label {
  font-size: 11px;
  color: var(--gray-400);
}

/* ── Homepage Footer ───────────────────────────────────────── */

.home-footer {
  padding: 36px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.home-footer p {
  font-size: 12px;
  color: var(--gray-500);
}

.home-footer a {
  color: var(--gray-400);
  transition: color .2s;
}

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

/* ── Advantages Grid ───────────────────────────────────────── */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

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

.advantage-card .adv-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.advantage-card h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.advantage-card p {
  font-size: 12px;
  color: var(--gray-300);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   Landing Page (.lp) — used by all service pages
   ═══════════════════════════════════════════════════════════════ */

.lp {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px;
}

.lp-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 36px;
}

.lp-logo span {
  color: var(--accent);
}

.lp h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.5vw, 38px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.8px;
  margin-bottom: 12px;
}

.lp-sub {
  font-size: 15px;
  color: var(--gray-300);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── Calculator / Upload Widget ────────────────────────────── */

.calc-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 20px;
  transition: border-color .3s;
}

.calc-wrap.active {
  border-color: var(--accent);
}

.drop-zone {
  border: 2px dashed var(--border-accent);
  border-radius: 10px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .3s var(--ease);
  position: relative;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.drop-zone-icon {
  font-size: 28px;
  margin-bottom: 10px;
  opacity: .5;
}

.drop-zone-text {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gray-200);
  margin-bottom: 4px;
}

.drop-zone-hint {
  font-size: 11px;
  color: var(--gray-400);
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.calc-result {
  display: none;
  text-align: center;
  padding-top: 16px;
}

.calc-result.show {
  display: block;
  animation: fadeUp .4s var(--ease);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.calc-file-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-300);
  padding: 6px 12px;
  background: var(--bg-surface);
  border-radius: 6px;
  margin-bottom: 12px;
}

.calc-file-info .file-icon {
  color: var(--accent);
}

.calc-metric {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gray-200);
  margin-bottom: 6px;
}

.calc-metric strong {
  color: var(--white);
  font-size: 16px;
}

.calc-price {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 52px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  margin: 10px 0 4px;
}

.calc-price-detail {
  font-size: 13px;
  color: var(--gray-300);
}

.calc-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 12px;
}

.calc-privacy .shield {
  color: var(--accent);
}

/* ── LP CTA Buttons ────────────────────────────────────────── */

.lp-cta {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .3s var(--ease);
  margin-bottom: 10px;
}

.lp-cta:hover:not(:disabled) {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,212,170,.3);
}

.lp-cta:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.lp-cta-secondary {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--gray-300);
  padding: 8px;
  margin-bottom: 32px;
  transition: color .2s;
}

.lp-cta-secondary:hover {
  color: var(--accent);
}

/* ── LP Content Sections ───────────────────────────────────── */

.lp-divider {
  height: 1px;
  background: var(--border);
  margin: 36px 0;
}

.lp-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lp-problem {
  font-size: 15px;
  color: var(--gray-200);
  line-height: 1.8;
}

.lp-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-100);
  line-height: 1.5;
}

.lp-check {
  width: 18px;
  height: 18px;
  background: var(--accent-glow-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
}

/* ── LP Trust Grid ─────────────────────────────────────────── */

.lp-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px 0;
}

.lp-trust-item {
  text-align: center;
  padding: 14px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.lp-trust-item .icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.lp-trust-item p {
  font-size: 11px;
  color: var(--gray-200);
  font-weight: 500;
  line-height: 1.3;
}

/* ── Pricing Tiers ─────────────────────────────────────────── */

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 16px 0;
}

.tier {
  text-align: center;
  padding: 12px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all .3s;
}

.tier.highlight {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.tier-volume {
  font-size: 10px;
  color: var(--gray-300);
  margin-bottom: 2px;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

/* ── Cross-sell Grid ───────────────────────────────────────── */

.cross-sell {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

/* ── LP Footer ─────────────────────────────────────────────── */

.lp-footer {
  text-align: center;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  margin-top: 36px;
}

.lp-footer p {
  font-size: 11px;
  color: var(--gray-500);
}

.lp-footer a {
  color: var(--gray-400);
}

/* ── LP Spinner ────────────────────────────────────────────── */

.lp-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* ═══════════════════════════════════════════════════════════════
   Hub Cards (fix.html service hub)
   ═══════════════════════════════════════════════════════════════ */

.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.hub-card {
  display: block;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .4s var(--ease);
}

.hub-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.hub-card .hub-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.hub-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.hub-card p {
  font-size: 13px;
  color: var(--gray-300);
  line-height: 1.5;
  margin-bottom: 10px;
}

.hub-card .hub-price {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.hub-card .hub-arrow {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   Accent Color Overrides (per-service pages)
   ═══════════════════════════════════════════════════════════════ */

.accent-blue {
  --accent: #3B82F6;
  --accent-bright: #60A5FA;
  --accent-dim: #2563EB;
  --accent-glow: rgba(59,130,246,.08);
  --accent-glow-strong: rgba(59,130,246,.15);
}

.accent-violet {
  --accent: #8B5CF6;
  --accent-bright: #A78BFA;
  --accent-dim: #7C3AED;
  --accent-glow: rgba(139,92,246,.08);
  --accent-glow-strong: rgba(139,92,246,.15);
}

.accent-rose {
  --accent: #F43F5E;
  --accent-bright: #FB7185;
  --accent-dim: #E11D48;
  --accent-glow: rgba(244,63,94,.08);
  --accent-glow-strong: rgba(244,63,94,.15);
}

.accent-teal {
  --accent: #14B8A6;
  --accent-bright: #2DD4BF;
  --accent-dim: #0D9488;
  --accent-glow: rgba(20,184,166,.08);
  --accent-glow-strong: rgba(20,184,166,.15);
}

.accent-amber {
  --accent: #F59E0B;
  --accent-bright: #FBBF24;
  --accent-dim: #D97706;
  --accent-glow: rgba(245,158,11,.08);
  --accent-glow-strong: rgba(245,158,11,.15);
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .services-grid     { grid-template-columns: 1fr; }
  .steps-row         { grid-template-columns: repeat(2, 1fr); }
  .trust-bar         { flex-direction: column; gap: 16px; }
  .lp                { padding: 32px 18px; }
  .lp-trust          { grid-template-columns: 1fr; }
  .pricing-tiers     { grid-template-columns: repeat(3, 1fr); }
  .advantages-grid   { grid-template-columns: 1fr; }
  .hub-cards         { grid-template-columns: 1fr; }
  .cross-sell        { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .pricing-tiers     { grid-template-columns: repeat(2, 1fr); }
  .steps-row         { grid-template-columns: 1fr; }
  .lp { padding: 24px 16px; }
  .lp-logo { margin-bottom: 20px; }
  .lp h1 { font-size: 22px; margin-bottom: 8px; }
  .lp-sub { font-size: 14px; margin-bottom: 12px; }
  .lp-cta { font-size: 14px; padding: 14px; }
}
