/* ===========================
   EKS-D-Xpress – eksdx.express
   =========================== */

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

:root {
  --bg:         #0d1117;
  --bg-card:    #161b22;
  --bg-card2:   #1a2235;
  --border:     #21262d;
  --border-acc: #2d3f5e;
  --text:       #e6edf3;
  --text-muted: #8b949e;
  --accent:     #f0883e;      /* AWS orange */
  --accent2:    #58a6ff;      /* link blue */
  --green:      #3fb950;
  --yellow:     #d29922;
  --radius:     12px;
  --radius-sm:  8px;
  --max-w:      1100px;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-icon { font-size: 1.3rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); text-decoration: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #e07930; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-card); border-color: var(--accent2); }
.btn-ghost {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 6px 12px;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }

/* ── HERO ── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.badge {
  display: inline-block;
  background: rgba(240, 136, 62, 0.12);
  border: 1px solid rgba(240, 136, 62, 0.35);
  color: var(--accent);
  border-radius: 100px;
  padding: 4px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #f0883e 0%, #58a6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── SECTION COMMON ── */
.section { padding: 80px 0; }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── CARDS ── */
.platform { background: var(--bg); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--accent2);
  transform: translateY(-2px);
}
.card-accent {
  background: var(--bg-card2);
  border-color: var(--border-acc);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.65;
}
.feature-list {
  list-style: none;
  margin-bottom: 24px;
}
.feature-list li {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.78rem;
}
.feature-list li code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 4px;
}
.card-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.version-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.25);
  color: var(--accent2);
  padding: 3px 10px;
  border-radius: 100px;
}
.card-flow {
  margin-top: 4px;
}
.card-flow code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: block;
  color: var(--text-muted);
  overflow-x: auto;
  white-space: nowrap;
}
.card-github-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent2);
  border: 1px solid rgba(88, 166, 255, 0.2);
  background: rgba(88, 166, 255, 0.06);
  padding: 5px 12px;
  border-radius: 100px;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.card-github-link:hover {
  background: rgba(88, 166, 255, 0.12);
  border-color: rgba(88, 166, 255, 0.4);
  text-decoration: none;
}

/* ── HOW IT WORKS ── */
.how-it-works { background: #0a0f16; }
.flow-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 56px;
  overflow-x: auto;
}
.flow-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: fit-content;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
  min-width: 140px;
}
.step-final { min-width: 160px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(240, 136, 62, 0.12);
  border: 1px solid rgba(240, 136, 62, 0.3);
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 6px;
  white-space: nowrap;
}
.step-final .step-num {
  color: var(--green);
  background: rgba(63, 185, 80, 0.1);
  border-color: rgba(63, 185, 80, 0.3);
}
.step-content strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.step-content span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.flow-arrow {
  color: var(--border-acc);
  font-size: 1.2rem;
  flex-shrink: 0;
  padding: 0 4px;
}
.use-cases h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.use-case {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.uc-icon { font-size: 1.5rem; display: block; margin-bottom: 12px; }
.use-case h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.use-case p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── PRICING ── */
.pricing { background: var(--bg); }
.pricing-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.pricing-table th {
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.pricing-table .highlight { color: var(--text); font-weight: 600; }
.pricing-table .savings { color: var(--green); font-weight: 700; }
.pricing-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ── QUICK START ── */
.quickstart { background: #0a0f16; }
.terminal {
  background: #010409;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 740px;
  margin: 0 auto;
}
.terminal-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.terminal-body {
  padding: 24px;
  overflow-x: auto;
}
.terminal-body code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #c9d1d9;
  line-height: 1.8;
  white-space: pre;
}
.terminal-body code .comment { color: #6e7681; }

/* ── FOOTER ── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  margin-bottom: 40px;
  align-items: start;
}
.footer-brand .logo-icon { font-size: 1.2rem; }
.footer-brand .logo-text {
  font-size: 1rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 6px;
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 300px;
  line-height: 1.5;
}
.footer-links { display: flex; gap: 48px; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links li:not(:last-child) { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .flow-steps { gap: 6px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
}
