/* =============================================
   OPAL SYSTEMS — DARK MODE STYLESHEET
   ============================================= */

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

:root {
  --opal: #2dd4bf;
  --opal-dark: #14b8a6;
  --opal-dim: #0f766e;
  --opal-glow: rgba(45, 212, 191, 0.12);
  --accent: #f59e0b;
  --accent-dim: #d97706;

  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-elevated: #1c2230;
  --bg-border: #21262d;
  --bg-hover: #1f2937;

  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #484f58;
  --text-label: #2dd4bf;

  --border: #30363d;
  --border-bright: #444c56;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-opal: 0 0 0 1px rgba(45,212,191,0.3), 0 8px 32px rgba(0,0,0,0.6);

  --max-w: 1140px;
  --max-w-narrow: 760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--opal);
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
a { color: var(--opal); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--opal-dark); }

/* ---- LAYOUT ---- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--max-w-narrow); }
.text-center { text-align: center; }
.section { padding: 96px 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--opal);
  margin-bottom: 12px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 1.25em;
}

/* ---- BUTTONS ---- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--opal);
  color: #0d1117;
  border-color: var(--opal);
}
.btn-primary:hover {
  background: var(--opal-dark);
  border-color: var(--opal-dark);
  text-decoration: none;
  color: #0d1117;
}

.btn-outline {
  background: transparent;
  color: var(--opal);
  border-color: var(--opal);
}
.btn-outline:hover {
  background: var(--opal-glow);
  text-decoration: none;
  color: var(--opal);
}

.btn-nav {
  background: var(--opal);
  color: #0d1117;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.btn-nav:hover {
  background: var(--opal-dark);
  text-decoration: none;
  color: #0d1117;
}

.btn-large { padding: 18px 36px; font-size: 1.1rem; }

/* ---- NAV ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  flex: 1;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.1s;
}
.nav-links a:hover { color: var(--opal); text-decoration: none; }
.nav-inner .btn-nav { margin-left: auto; }

/* ---- HERO ---- */

.hero {
  padding: 112px 0 96px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(45,212,191,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--opal);
  margin-bottom: 20px;
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 24px;
  color: var(--text);
}

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

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 12px;
}

.hero-detail {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-detail strong { color: var(--text-muted); }

.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-sub { font-size: 0.875rem; color: var(--text-dim); margin: 0; }

/* ---- DIVIDER ---- */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ---- PAIN GRID ---- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.pain-card:hover { border-color: var(--border-bright); }

.pain-icon { font-size: 1.75rem; margin-bottom: 14px; }

.pain-card h3 { margin-bottom: 8px; font-size: 1rem; color: var(--text); }
.pain-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.pullquote {
  background: var(--bg-card);
  border-left: 3px solid var(--opal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 680px;
  margin-top: 16px;
}
.pullquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: var(--opal);
}

/* ---- SOLUTION TABLE ---- */

.solution-table-wrapper {
  margin-top: 48px;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.solution-table thead { background: var(--bg-elevated); }

.solution-table th {
  padding: 14px 24px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.solution-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.solution-table tr:last-child td { border-bottom: none; }
.solution-table td:first-child { color: var(--text-muted); width: 45%; }
.solution-table td:last-child { color: var(--opal); font-weight: 500; }
.solution-table tr:nth-child(even) { background: var(--bg-card); }
.solution-table tr:hover td { background: var(--bg-hover); }

/* ---- STEPS ---- */

.steps {
  display: flex;
  flex-direction: column;
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.step {
  display: flex;
  gap: 28px;
  padding: 32px 36px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  transition: background 0.15s;
}
.step:last-child { border-bottom: none; }
.step:hover { background: var(--bg-elevated); }

.step-number {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--opal);
  background: var(--opal-glow);
  border: 1px solid rgba(45,212,191,0.25);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.step-content { flex: 1; }
.step-content h3 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.step-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }

.step-tag {
  display: inline-block;
  background: var(--opal-glow);
  color: var(--opal);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.process-cta { margin-top: 48px; text-align: center; }

/* ---- CASE STUDIES ---- */

.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.case-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 24px 28px;
}

.case-meta { display: flex; gap: 10px; margin-bottom: 10px; }

.case-industry, .case-location {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 100px;
}
.case-industry {
  background: var(--opal-glow);
  color: var(--opal);
  border: 1px solid rgba(45,212,191,0.2);
}
.case-location {
  background: rgba(245,158,11,0.1);
  color: var(--accent);
  border: 1px solid rgba(245,158,11,0.2);
}

.case-header h3 { color: var(--text); font-size: 1.4rem; margin: 0; }

.case-body { padding: 24px 28px; }
.case-section { margin-bottom: 18px; }
.case-section p { font-size: 0.9rem; color: var(--text-muted); }

.case-result {
  display: flex;
  gap: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.result-stat { display: flex; flex-direction: column; gap: 3px; }
.stat-number { font-size: 1.5rem; font-weight: 800; color: var(--opal); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-dim); font-weight: 500; }

.case-screenshot {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.case-screenshot img { width: 100%; height: auto; display: block; }
.case-screenshot.placeholder {
  background: var(--bg-elevated);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* ---- PRICING ---- */

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

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--bg-card);
  position: relative;
}

.pricing-featured {
  border-color: var(--opal-dim);
  box-shadow: var(--shadow-opal);
  background: var(--bg-elevated);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0d1117;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--opal);
  margin-bottom: 6px;
}

.pricing-card h3 { font-size: 1.2rem; margin-bottom: 4px; }

.pricing-price {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin: 12px 0 2px;
}

.pricing-time { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 14px; }

.pricing-card > p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 18px; }

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.pricing-features li {
  font-size: 0.875rem;
  padding: 6px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }

.pricing-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ---- FAQ ---- */

.faq-list { margin-top: 48px; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  padding: 20px 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: color 0.1s;
}
.faq-item summary:hover { color: var(--opal); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--opal);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item > p {
  padding: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
}

/* ---- ABOUT ---- */

.about-content { margin-top: 32px; }
.about-text p { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.2em; }
.about-text .btn { margin-top: 8px; }

/* ---- FINAL CTA ---- */

.section-cta {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(45,212,191,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section-cta h2 {
  margin-bottom: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-body {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-secondary { margin-top: 20px; font-size: 0.875rem; color: var(--text-dim); }
.cta-secondary a { color: var(--opal); text-decoration: underline; }

/* ---- FOOTER ---- */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 48px;
}

.footer .logo { color: var(--text); display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 4px; }
.footer-location { font-size: 0.8rem; color: var(--text-dim) !important; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.1s; }
.footer-nav a:hover { color: var(--opal); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); margin: 0; }

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .pain-grid, .pricing-grid { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .solution-table td:first-child { width: auto; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 60px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 16px; }
}
