:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #475569;
  --subtle: #64748b;
  --accent: #2563eb;
  --sky: #60a5fa;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-strong: #cbd5e1;
  --max-width: 1040px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand img {
  display: block;
  width: 26px;
  height: 26px;
}

.brand-accent {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 11px 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.83rem;
}

.btn-dark {
  background-color: var(--ink);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: var(--ink-soft);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--surface);
  border-color: var(--border-strong);
}

.gh-icon {
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Hero */
.hero {
  padding: 72px 0 62px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 42% at 50% 0%, rgba(239, 246, 255, 0.7) 0%, rgba(255, 255, 255, 0) 75%),
    #ffffff;
}

.hero h1 {
  margin: 0 auto 14px;
  max-width: 680px;
  font-size: clamp(2.1rem, 4.3vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-subtitle {
  margin: 0 auto 26px;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 42px;
}

/* Interactive Screenshot Showcase */
.showcase {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.06),
    0 2px 8px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.showcase-header {
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.showcase-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.tab-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 13px;
  font-family: inherit;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tab-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
  flex-shrink: 0;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.tab-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.tab-btn:hover .tab-icon {
  opacity: 1;
}

.tab-btn.active {
  color: var(--ink);
  font-weight: 600;
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.tab-btn.active .tab-icon {
  color: var(--accent);
  opacity: 1;
}

.showcase-frame {
  background: #ffffff;
  padding: 8px;
}

.showcase-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  border: 1px solid #eef2f6;
}

/* Elevated 4-Column Capability Strip */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 34px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  text-align: left;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 4px;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.pillar:hover .pillar-icon {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--accent);
}

.pillar:hover strong {
  color: var(--accent);
}

.pillar .pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  margin-bottom: 12px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pillar-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.pillar-desc {
  display: block;
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 58px 0;
  border-top: 1px solid var(--border-light);
}

/* Team Experience Logo Grid */
.logos-section {
  text-align: center;
}

.logos-heading {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.logos-sub {
  margin: 0 auto 36px;
  font-size: 0.94rem;
  color: var(--muted);
  white-space: nowrap;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 32px 24px;
  max-width: 840px;
  margin: 0 auto;
}

.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 100%;
}

.logo-slot img {
  display: block;
  width: auto;
  object-fit: contain;
  opacity: 0.78;
  filter: grayscale(100%);
  transition: opacity 0.15s ease;
}

.logo-slot img:hover {
  opacity: 1;
}

.logo-google { height: 34px; }
.logo-facebook { height: 21px; }
.logo-microsoft { height: 24px; }
.logo-fluidcloud { height: 17px; max-width: 156px; }
.logo-zeta { height: 30px; }
.logo-dehaat { height: 32px; }
.logo-splashlearn { height: 33px; filter: grayscale(100%) contrast(1.15); }
.logo-vegapay { height: 24px; }

/* Quickstart / Deploy (Centered bash terminal) */
.deploy-section {
  text-align: center;
}

.deploy-heading {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.deploy-sub {
  margin: 0 auto 28px;
  font-size: 0.94rem;
  color: var(--muted);
}

.terminal-panel {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: var(--ink);
  border: 1px solid var(--ink-soft);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.7);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.terminal-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.terminal-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334155;
}

.terminal-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-left: 6px;
}

.copy-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 6px;
  color: #94a3b8;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.copy-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.copy-btn .check-icon {
  display: none;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.copy-btn.copied {
  color: #6ee7b7;
}

.copy-btn.copied .copy-icon {
  display: none;
}

.copy-btn.copied .check-icon {
  display: block;
}

.terminal-body {
  padding: 16px 18px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.75;
  color: #f8fafc;
}

.cmd-line {
  white-space: nowrap;
}

.cmd-prompt {
  color: var(--sky);
  user-select: none;
  margin-right: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 34px;
  background: #ffffff;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.footer-brand img {
  width: 21px;
  height: 21px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.84rem;
  color: var(--subtle);
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: var(--subtle);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.footer-icon-link:hover {
  color: var(--ink);
  background: var(--surface);
}

.footer-icon-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  display: block;
}

.footer-license {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--subtle);
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-license:hover {
  color: var(--ink);
}

.footer-license svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

@media (max-width: 860px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .logos-sub {
    white-space: normal;
    max-width: 520px;
  }

  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .terminal-panel {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 44px 0 40px;
  }

  .nav-actions .btn-outline {
    display: none;
  }

  .showcase-header {
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .showcase-tabs {
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .showcase-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .terminal-body {
    font-size: 0.72rem;
    padding: 14px;
  }
}
