/* IteraTools — Global Styles */
:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-glow: rgba(99,102,241,0.15);
  --text: #e2e8f0;
  --muted: #64748b;
  --border: #1e1e2e;
  --success: #10b981;
}

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

html { scroll-behavior: smooth; }

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

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.nav-logo img { height: 28px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Layout */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
h1, h2, h3 { line-height: 1.2; }

/* Hero */
.hero {
  padding: 7rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.hero h1 span {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.hero-tagline {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Tools Grid */
.tools-section { background: var(--bg); }
.tools-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.tools-section p.sub {
  color: var(--muted);
  margin-bottom: 3rem;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}
.tool-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: inherit;
}
.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.1);
}
.tool-card:hover::before { opacity: 1; }
.tool-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.tool-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.tool-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}
.tool-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* How it works */
.how-section {
  background: linear-gradient(180deg, var(--bg) 0%, #0d0d15 100%);
}
.how-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.how-section .sub {
  color: var(--muted);
  margin-bottom: 3rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.step {
  display: flex;
  gap: 1.25rem;
}
.step-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}
.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.step-content p {
  font-size: 0.875rem;
  color: var(--muted);
}
.step-content code {
  font-size: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  color: var(--accent);
}

/* Pricing */
.pricing-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pricing-section .sub {
  color: var(--muted);
  margin-bottom: 3rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 750px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.price-card.featured {
  border-color: var(--accent);
  position: relative;
  box-shadow: 0 0 40px rgba(99,102,241,0.12);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.75rem;
  border-radius: 99px;
  white-space: nowrap;
}
.price-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.price-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.price-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text);
}
.price-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.price-features li.coming-soon {
  color: var(--muted);
}
.price-features li.coming-soon::before {
  content: '○';
  color: var(--muted);
}
.soon-tag {
  font-size: 0.7rem;
  background: rgba(100,116,139,0.15);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  color: var(--muted);
  margin-left: auto;
}

/* CTA */
.cta-section {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #0d0d18 100%);
}
.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta-section p {
  color: var(--muted);
  margin-bottom: 2rem;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-brand strong { color: var(--text); }
.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* Code blocks */
pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}
code { font-family: 'Fira Code', 'Cascadia Code', monospace; }
.inline-code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 0.85em;
  color: var(--accent);
  font-family: 'Fira Code', monospace;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 2rem;
}

/* Responsive */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Pricing table */
.pricing-table-wrap {
  overflow-x: auto;
  margin-bottom: 2.5rem;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.pricing-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted, #aaa);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pricing-table td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td:last-child {
  font-weight: 700;
  color: var(--accent, #00e5a0);
  white-space: nowrap;
}

/* Pricing table - fix v2 */
.pricing-table-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}
.pricing-table col.col-tool { width: 30%; }
.pricing-table col.col-desc { width: 55%; }
.pricing-table col.col-price { width: 15%; }
.pricing-table thead tr {
  background: rgba(255,255,255,0.07);
}
.pricing-table th {
  text-align: left;
  padding: 0.75rem 1.25rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pricing-table td {
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
  line-height: 1.4;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td:first-child { font-weight: 500; }
.pricing-table td:last-child {
  font-weight: 700;
  color: #00e5a0;
  text-align: right;
  white-space: nowrap;
  padding-right: 1.5rem;
}
.pricing-table th:last-child { text-align: right; padding-right: 1.5rem; }
