/* ==========================================================================
   Total Stack Solutions — style.css
   Dark hero + light sections hybrid. Edit brand colors in :root.
   ========================================================================== */

:root {
  --navy: #0b1220;          /* darkest background */
  --navy-2: #111a2e;        /* raised dark surface */
  --navy-3: #182238;        /* dark card */
  --ink: #1e293b;           /* body text on light */
  --muted: #5b6b84;         /* secondary text on light */
  --muted-dark: #94a3b8;    /* secondary text on dark */
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --grad: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
  --bg-light: #f7f9fc;
  --bg-gray: #eef2f7;
  --white: #ffffff;
  --line: #e2e8f0;
  --line-dark: rgba(148, 163, 184, 0.18);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 18, 32, 0.16);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding: 88px 0; }
.section--light { background: var(--bg-light); }
.section--gray { background: var(--bg-gray); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark .section-sub { color: var(--muted-dark); }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--grad);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.32);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover { background: var(--navy-3); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--white); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-name span { color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--muted-dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links .btn { padding: 10px 22px; font-size: 0.87rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 110px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 340px at 12% -10%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(700px 420px at 95% 110%, rgba(139, 92, 246, 0.18), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 780px; }
.hero p.lede { color: var(--muted-dark); font-size: 1.16rem; margin: 22px 0 34px; max-width: 640px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  color: var(--muted-dark);
  margin-bottom: 26px;
  background: rgba(24, 34, 56, 0.5);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 64px;
  max-width: 700px;
}
.stat {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: rgba(24, 34, 56, 0.45);
}
.stat b { font-family: var(--font-head); font-size: 1.5rem; display: block; }
.stat small { color: var(--muted-dark); font-size: 0.82rem; line-height: 1.4; display: block; margin-top: 4px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.card .icon svg { width: 26px; height: 26px; }
.card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0e7490;
}
.card-link:hover { color: var(--violet); }

/* Dark cards (private AI band) */
.card--dark {
  background: var(--navy-3);
  border-color: var(--line-dark);
  box-shadow: none;
}
.card--dark h3 { color: var(--white); }
.card--dark p { color: var(--muted-dark); }

/* ---------- Checklist ---------- */
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--muted);
}
.section--dark .checklist li { color: var(--muted-dark); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='M22 4 12 14.01l-3-3'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='M22 4 12 14.01l-3-3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Industry chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split h2 { margin-bottom: 16px; }
.split p { margin-bottom: 16px; }
.section--dark .split p { color: var(--muted-dark); }

/* Server visual */
.server-visual {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--navy-2);
  padding: 26px;
}
.server-rack { display: grid; gap: 10px; }
.server-unit {
  display: flex; align-items: center; gap: 12px;
  background: var(--navy-3);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--muted-dark);
}
.server-unit .led {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  flex: none;
  animation: pulse 2.2s infinite;
}
.server-unit:nth-child(2) .led { background: var(--violet); box-shadow: 0 0 8px var(--violet); animation-delay: 0.6s; }
.server-unit:nth-child(3) .led { animation-delay: 1.1s; }
.server-unit:nth-child(4) .led { background: var(--violet); box-shadow: 0 0 8px var(--violet); animation-delay: 1.6s; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.server-caption { margin-top: 16px; font-size: 0.8rem; color: var(--muted-dark); text-align: center; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}
.price-card--featured { border: 2px solid transparent; background:
  linear-gradient(var(--white), var(--white)) padding-box,
  var(--grad) border-box; }
.price-tag {
  position: absolute;
  top: -13px; right: 22px;
  background: var(--grad);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.15rem; }
.price-card .amount { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; margin: 14px 0 2px; }
.price-card .amount small { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.price-card .per { color: var(--muted); font-size: 0.85rem; margin-bottom: 18px; }
.price-card ul { margin-bottom: 24px; flex: 1; }
.price-card .btn { text-align: center; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
table.pricing-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.93rem; min-width: 640px; }
.pricing-table th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-head);
  font-size: 0.83rem;
  letter-spacing: 0.04em;
}
.pricing-table td { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.pricing-table td:first-child { font-weight: 600; }
.pricing-table tr:nth-child(even) td { background: var(--bg-light); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 20px 54px 20px 24px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: #0e7490;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  padding: 96px 0;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 300px at 20% 120%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(500px 300px at 80% -20%, rgba(139, 92, 246, 0.2), transparent 60%);
}
.cta-band .container { position: relative; }
.cta-band p { color: var(--muted-dark); max-width: 560px; margin: 16px auto 32px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 7px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-light);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
  background: var(--white);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Contact info blocks */
.contact-info .card { margin-bottom: 20px; }
.contact-info .card h3 { margin-top: 0; font-size: 1.02rem; }
.contact-info .card p { margin: 0; }
.contact-info a { color: #0e7490; font-weight: 600; }

/* ---------- Team ---------- */
.team-card .avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}
.team-card .role {
  color: #0e7490;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--muted-dark);
  padding: 70px 0 34px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand p { margin-top: 14px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 84px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 0%, rgba(139, 92, 246, 0.18), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero p { color: var(--muted-dark); max-width: 640px; margin-top: 16px; font-size: 1.08rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .server-unit .led { animation: none; }
}

/* ---------- Utility ---------- */
.mt-40 { margin-top: 40px; }
.center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-2, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 70px; }
  .hero-stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--navy-2);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 4vw 22px;
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 13px 0; width: 100%; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 10px; text-align: center; width: 100%; }
}
