:root {
  --bg: #f4f8fc;
  --bg-soft: #eaf1f8;
  --surface: #ffffff;
  --text: #0f1f33;
  --text-soft: #3c546f;
  --line: #c8d7e7;
  --primary: #0f6db2;
  --primary-dark: #0a4f83;
  --accent: #ff8d1a;
  --success: #0f9f6e;
  --radius: 16px;
  --shadow: 0 14px 30px rgba(15, 31, 51, 0.1);
}

html[data-theme="dark"] {
  --bg: #0a0f1a;
  --bg-soft: #121822;
  --surface: #1a212e;
  --text: #f0f4f9;
  --text-soft: #b8c5d6;
  --line: #2a3548;
  --primary: #3b9ff1;
  --primary-dark: #2a7dd4;
  --accent: #ff9d3a;
  --success: #2ec98c;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Sora", system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

:root body::before {
  background:
    radial-gradient(circle at 10% 10%, rgba(15, 109, 178, 0.18), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(255, 141, 26, 0.2), transparent 40%);
}

html[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 10% 10%, rgba(59, 159, 241, 0.1), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(255, 157, 58, 0.08), transparent 40%);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(244, 248, 252, 0.92);
  border-bottom: 1px solid var(--line);
}

html[data-theme="dark"] .topbar {
  background: rgba(10, 15, 26, 0.92);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
}

.brand-text {
  font-size: 0.96rem;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
}

.nav a:hover {
  color: var(--primary-dark);
  background: var(--bg-soft);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 1.1rem;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(15, 109, 178, 0.32);
}

html[data-theme="dark"] .btn {
  box-shadow: 0 8px 18px rgba(59, 159, 241, 0.28);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.62rem 0.92rem;
}

.btn-ghost {
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.25s ease;
}

.menu-btn:hover {
  border-color: var(--primary);
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: all 0.25s ease;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 4.7rem 0 3.6rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.1;
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-copy p {
  color: var(--text-soft);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #dcebfa;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

html[data-theme="dark"] .eyebrow {
  background: rgba(59, 159, 241, 0.18);
  color: #7fc9f3;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  margin: 1.4rem 0 1.2rem;
  flex-wrap: wrap;
}

.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.trust-list li::before {
  content: "•";
  color: var(--success);
  margin-right: 0.45rem;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f5faff);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .hero-panel {
  background: linear-gradient(180deg, #1a212e, #141b28);
}

.status-card {
  border: 1px dashed #aac7e2;
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 1rem;
}

html[data-theme="dark"] .status-card {
  border-color: #3d5a7d;
}

.status-title {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.status-live {
  margin: 0.2rem 0;
  font-weight: 700;
  color: var(--text);
}

.status-live span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.45rem;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(15, 159, 110, 0.18);
}

html[data-theme="dark"] .status-live span {
  box-shadow: 0 0 0 5px rgba(46, 201, 140, 0.2);
}

.status-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.metric-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem;
}

html[data-theme="dark"] .metric-grid article {
  background: var(--surface);
}

.metric-grid h3 {
  margin: 0;
  color: var(--primary-dark);
}

.metric-grid p {
  margin: 0.15rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-bg-shape {
  position: absolute;
  width: 460px;
  height: 460px;
  right: -140px;
  bottom: -190px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, rgba(15, 109, 178, 0.3), rgba(255, 141, 26, 0.2), rgba(15, 109, 178, 0.3));
  filter: blur(18px);
  z-index: -1;
}

html[data-theme="dark"] .hero-bg-shape {
  background: conic-gradient(from 20deg, rgba(59, 159, 241, 0.2), rgba(255, 157, 58, 0.15), rgba(59, 159, 241, 0.2));
}

.section {
  padding: 4.4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #edf3fa, #f8fbff);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

html[data-theme="dark"] .section-alt {
  background: linear-gradient(180deg, #12182f, #0f1b33);
}

.section-head {
  max-width: 720px;
  margin-bottom: 1.7rem;
}

.section-head h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 8px 18px rgba(15, 31, 51, 0.06);
}

html[data-theme="dark"] .card {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e5f1fc;
  color: var(--primary-dark);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
}

html[data-theme="dark"] .card .icon {
  background: rgba(59, 159, 241, 0.15);
  color: #7fc9f3;
}

.card h3 {
  margin: 0.8rem 0 0.35rem;
}

.card p {
  margin: 0;
  color: var(--text-soft);
}

.card ul {
  margin: 0.9rem 0 0;
  padding-left: 1rem;
  color: var(--text-soft);
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.sector {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.sector:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .sector {
  background: var(--surface);
}

.sector-icon {
  font-size: 3rem;
  margin-bottom: 0.8rem;
  line-height: 1;
}

.sector h3 {
  margin: 0 0 0.6rem;
}

.sector p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.step {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
}

html[data-theme="dark"] .step {
  background: var(--surface);
}

.step span {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  color: var(--accent);
}

.step h3 {
  margin: 0.2rem 0;
  font-size: 1.06rem;
}

.step p {
  margin: 0;
  color: var(--text-soft);
}

.cta-section {
  background: linear-gradient(180deg, #0f2744, #0b1f36);
  color: #f2f8ff;
}

html[data-theme="dark"] .cta-section {
  background: linear-gradient(180deg, #111e33, #0d1820);
  color: #d4e3f5;
}

.cta-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.cta-section .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #d8eaff;
}

html[data-theme="dark"] .cta-section .eyebrow {
  background: rgba(59, 159, 241, 0.16);
  color: #7fc9f3;
}

.cta-section p {
  color: #d4e3f5;
}

html[data-theme="dark"] .cta-section p {
  color: #a8c5dd;
}

html[data-theme="dark"] .cta-section p {
  color: #a8c5dd;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

html[data-theme="dark"] .contact-form {
  background: rgba(59, 159, 241, 0.08);
  border: 1px solid rgba(59, 159, 241, 0.2);
}

html[data-theme="dark"] .contact-form {
  background: rgba(59, 159, 241, 0.08);
  border: 1px solid rgba(59, 159, 241, 0.2);
}

.contact-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: all 0.25s ease;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230f6db2' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

html[data-theme="dark"] .contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b9ff1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.contact-form select option {
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem;
}

html[data-theme="dark"] .contact-form select option {
  background: #1a212e;
  color: #f0f4f9;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 109, 178, 0.12);
}

html[data-theme="dark"] .contact-form input:focus,
html[data-theme="dark"] .contact-form select:focus,
html[data-theme="dark"] .contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 159, 241, 0.2);
}

html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form select,
html[data-theme="dark"] .contact-form textarea {
  border-color: rgba(59, 159, 241, 0.3);
  background: rgba(59, 159, 241, 0.1);
  color: #f0f4f9;
}

.cta-section .contact-form input,
.cta-section .contact-form select,
.cta-section .contact-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cta-section .contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-color: rgba(255, 255, 255, 0.08);
  padding-right: 2.5rem;
}

.cta-section .contact-form select option {
  background: #1a212e;
  color: #f0f4f9;
  padding: 0.5rem;
}

.cta-section .contact-form input::placeholder,
.cta-section .contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.cta-section .contact-form input:focus,
.cta-section .contact-form select:focus,
.cta-section .contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-msg {
  min-height: 1.3rem;
  margin: 0;
  font-size: 0.9rem;
}

.clients-section {
  background: var(--bg-soft);
}

html[data-theme="dark"] .clients-section {
  background: #0a0f1a;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.client-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: all 0.3s ease;
}

.client-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 109, 178, 0.1);
}

html[data-theme="dark"] .client-item:hover {
  box-shadow: 0 4px 12px rgba(59, 159, 241, 0.15);
}

.footer {
  padding: 1.1rem 0;
  background: #08182a;
  color: #bdd3ea;
}

html[data-theme="dark"] .footer {
  background: #08111e;
  color: #7991aa;
}

html[data-theme="dark"] .footer {
  background: #08111e;
  color: #7991aa;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer a {
  color: #fff;
}

.reveal,
.reveal-delay,
.reveal-delay-2 {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-delay {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.22s;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .cards,
  .cta-wrap,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-copy {
    grid-column: 1 / -1;
  }

  .hero-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-block;
    margin-left: auto;
  }

  .btn-sm {
    display: none;
  }

  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #f4f8fc;
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 4%;
    display: none;
    flex-direction: column;
  }

  html[data-theme="dark"] .nav {
    background: #121822;
  }

  html[data-theme="dark"] .nav {
    background: #121822;
  }

  .nav.open {
    display: flex;
  }

  .cards,
  .sector-grid,
  .timeline,
  .hero-grid,
  .cta-wrap,
  .clients-grid {
    grid-template-columns: 1fr;
  }
}
