/* GPUIndia — Mobile-first, minimal dark theme */
:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --card: #161622;
  --border: #23233a;
  --text: #e8e8f4;
  --text-dim: #8a8aa8;
  --green: #00e676;
  --gold: #ffd54f;
  --red: #ff5252;
  --blue: #448aff;
  --accent: #00e676;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ============ HEADER ============ */
header {
  background: rgba(10,10,15,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.logo { font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -.5px; min-height: 44px; display: inline-flex; align-items: center; }
.logo span { color: var(--accent); }
header nav { display: flex; align-items: center; gap: 4px; }
header nav a {
  color: var(--text-dim); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 10px 12px; border-radius: 8px;
  transition: color .2s, background .2s;
  min-height: 44px; display: inline-flex; align-items: center;
}
header nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
header nav a.nav-cta {
  background: var(--accent); color: #000; font-weight: 700;
}
header nav a.nav-cta:hover { background: #2bff9a; }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 12px; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { padding: 56px 0 40px; text-align: center; }
.hero .badge {
  display: inline-block; background: rgba(0,230,118,.08); color: var(--green);
  padding: 6px 16px; border-radius: 20px; font-size: 13px;
  border: 1px solid rgba(0,230,118,.2); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-bottom: 14px; }
.hero h1 span { background: linear-gradient(135deg, var(--green), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: var(--text-dim); font-size: clamp(15px, 2.5vw, 18px); max-width: 620px; margin: 0 auto 10px; }
.hero .updated { color: var(--text-dim); font-size: 13px; margin-bottom: 22px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  transition: opacity .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { opacity: .88; }
.btn-outline { border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--text-dim); }

/* ============ SECTIONS ============ */
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-title { font-size: clamp(20px, 4vw, 28px); text-align: center; margin-bottom: 8px; letter-spacing: -.5px; }
.section-sub { text-align: center; color: var(--text-dim); margin-bottom: 28px; font-size: 14px; }
.dim-link { color: var(--text-dim); text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }

/* ============ TOP DEALS / PRICE WIDGET ============ */
.price-widget { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.deal-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; text-align: center; text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .15s;
}
.deal-card:active { transform: scale(.98); }
.deal-card .deal-gpu { font-size: 13px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.deal-card .deal-price { font-size: 22px; font-weight: 800; color: var(--green); margin: 4px 0 2px; font-family: 'JetBrains Mono', monospace; }
.deal-card .deal-prov { font-size: 12px; color: var(--text-dim); }
.deal-card.best-deal { border-color: rgba(0,230,118,.4); background: linear-gradient(180deg, rgba(0,230,118,.06), var(--card)); }
.deal-card .deal-tag { position: absolute; top: 8px; left: 8px; font-size: 10px; background: var(--green); color: #000; padding: 2px 8px; border-radius: 8px; font-weight: 700; }

/* ============ PRICING TABLE ============ */
.table-wrapper { border-radius: var(--radius); border: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
thead th {
  background: var(--surface); padding: 12px 10px; text-align: left;
  border-bottom: 2px solid var(--border); white-space: nowrap;
  font-weight: 600; font-size: 12px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .4px;
}
thead th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 2; }
tbody td { padding: 12px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td:first-child {
  position: sticky; left: 0; background: var(--bg); font-weight: 600; z-index: 1;
  white-space: normal;
}
tbody tr:hover { background: rgba(255,255,255,.02); }
td a { color: var(--blue); text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
td a:hover { text-decoration: underline; }
.best { color: var(--green); font-weight: 700; }
.worst { color: var(--red); }
.price-cell { font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.loading-row { text-align: center; padding: 32px !important; color: var(--text-dim); }
.table-note { text-align: center; color: var(--text-dim); font-size: 12px; margin-top: 10px; }

/* Mobile: pricing table → cards */
@media (max-width: 640px) {
  .table-wrapper { border: none; overflow: visible; }
  table#pricing-table { min-width: 0; display: block; }
  table#pricing-table thead { display: none; }
  table#pricing-table tbody { display: grid; grid-template-columns: 1fr; gap: 12px; }
  table#pricing-table tbody tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px;
  }
  table#pricing-table tbody td {
    display: flex; justify-content: space-between; align-items: center;
    border: none; padding: 6px 0; white-space: normal;
    position: static; background: none;
  }
  table#pricing-table tbody td:first-child {
    grid-column: 1 / -1; font-size: 14px; font-weight: 700;
    border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 4px;
    position: static; background: none;
  }
  table#pricing-table tbody td::before {
    content: attr(data-label); color: var(--text-dim);
    font-size: 11px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600;
  }
  table#pricing-table tbody td.price-cell::before { content: attr(data-label); }
  table#pricing-table tbody tr.loading-row { display: none; }
}

/* ============ CALCULATOR ============ */
.calc-wrapper { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.calc-group { display: flex; flex-direction: column; gap: 6px; }
.calc-group label { font-size: 12px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.calc-group select, .calc-group input {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 12px; font-size: 14px; min-height: 44px;
  width: 100%;
}
.calc-group select:focus, .calc-group input:focus { outline: none; border-color: var(--blue); }
.calc-results { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.calc-placeholder { color: var(--text-dim); text-align: center; font-size: 13px; }
.calc-savings { font-size: 14px; line-height: 1.7; }
.calc-savings .save-line { font-size: 22px; font-weight: 800; color: var(--green); }
.calc-savings .compare-line { color: var(--text-dim); }

/* ============ PROVIDER CARDS ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border); transition: border-color .2s;
}
.card:hover { border-color: #33335a; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card h3 a { color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.card h3 a:hover { color: var(--blue); }
.card .price { color: var(--green); font-size: 24px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.card .price span { font-size: 12px; color: var(--text-dim); font-weight: 400; font-family: -apple-system, sans-serif; }
.card p { color: var(--text-dim); font-size: 13px; margin: 8px 0; line-height: 1.5; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.card .tags span {
  background: rgba(68,138,255,.1); color: var(--blue);
  padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 500;
}
.card .btn { margin-top: 6px; }

/* ============ WHY ============ */
.why-section { background: var(--surface); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.why-card { background: var(--card); border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); }
.why-card .icon { font-size: 26px; margin-bottom: 6px; }
.why-card h4 { font-size: 15px; margin-bottom: 4px; }
.why-card p { color: var(--text-dim); font-size: 13px; }

/* ============ LEAD CAPTURE ============ */
.lead-capture {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 20px; text-align: center;
}
.lead-capture h2 { font-size: clamp(18px, 4vw, 24px); margin-bottom: 8px; letter-spacing: -.5px; }
.lead-capture p { color: var(--text-dim); margin-bottom: 18px; font-size: 14px; }
.lead-capture form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lead-capture input {
  padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 14px;
  min-height: 44px; min-width: 220px; flex: 1 1 220px;
}
.lead-capture input:focus { outline: none; border-color: var(--blue); }
.lead-capture button {
  padding: 12px 28px; border-radius: 10px; border: none;
  background: var(--green); color: #000; font-weight: 700; font-size: 14px;
  min-height: 44px; cursor: pointer; transition: opacity .2s;
}
.lead-capture button:hover { opacity: .88; }
.lead-note { font-size: 12px; margin-top: 12px !important; margin-bottom: 0 !important; }

/* ============ ARTICLES ============ */
.articles-list { max-width: 720px; margin: 0 auto; }
.article-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.article-item:last-child { border: none; }
.article-item .meta { font-size: 12px; color: var(--text-dim); margin-bottom: 2px; }
.article-item h3 { font-size: 16px; line-height: 1.4; }
.article-item h3 a { color: var(--text); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.article-item h3 a:hover { color: var(--blue); }

/* ============ FAQ ============ */
.faq-section { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item h3 {
  font-size: 15px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 12px;
  min-height: 44px; padding: 8px 0;
}
.faq-item h3 span { color: var(--text-dim); font-size: 12px; transition: transform .2s; }
.faq-item.active h3 span { transform: rotate(180deg); }
.faq-item p { color: var(--text-dim); font-size: 14px; margin-top: 6px; display: none; }
.faq-item.active p { display: block; }

/* ============ FOOTER ============ */
footer { border-top: 1px solid var(--border); padding: 24px 0; text-align: center; color: var(--text-dim); font-size: 13px; }
footer p { margin: 4px 0; }
.foot-note { font-size: 12px; }
footer a { color: var(--text-dim); }

/* ============ RESPONSIVE NAV ============ */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  header nav {
    position: fixed; top: 56px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px;
    display: none; z-index: 99;
  }
  header nav.open { display: flex; }
  header nav a {
    padding: 14px 12px; border-radius: 10px;
    border-bottom: 1px solid rgba(255,255,255,.04);
  }
  header nav a.nav-cta { margin-top: 8px; justify-content: center; }
}

/* ============ REVEAL (polish, respects reduced motion) ============ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ SMALL SCREENS ============ */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .cards { grid-template-columns: 1fr; }
  .lead-capture input { min-width: 100%; }
}
