:root {
  --bg: #f9fafb;
  --bg-alt: #ffffff;
  --bg-soft: #f3f4f6;
  --border-subtle: #e5e7eb;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --accent: linear-gradient(135deg, #1d9bf0, #22c55e);
  --accent-solid: #1d9bf0;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.06);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 250, 251, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
}

.brand-logo-small {
  width: 24px;
  height: 24px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 32px;
}

.brand-slogan {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text-main);
}

.header-cta {
  display: flex;
  gap: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-image: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.08);
}

.btn-full {
  width: 100%;
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-solid);
  background: var(--accent-soft);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin: 1rem 0 0.75rem;
}

.hero-slogan {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.5rem 0 1rem !important;
}

.hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Hero visual */

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-orbit {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.2), transparent 55%),
              radial-gradient(circle at 80% 100%, rgba(34, 197, 94, 0.18), transparent 55%);
  opacity: 0.9;
}

.hero-logo {
  position: relative;
  display: block;
  width: 96px;
  height: auto;
  margin: 0 auto 1.5rem;
}

.hero-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.metric {
  background: rgba(15, 23, 42, 0.02);
  border-radius: 16px;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.metric-value {
  display: block;
  margin-top: 0.25rem;
  font-weight: 600;
}

/* Grid & cards */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.card-outline {
  background: transparent;
  border-style: dashed;
}

/* -------------------------------------------------------------
   CONTACT PAGE
   ------------------------------------------------------------- */

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  align-self: center;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact-info-item svg {
  color: var(--accent-solid);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.contact-info-item div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-info-item a,
.contact-info-item span:not(.contact-info-label) {
  font-size: 0.95rem;
  color: var(--text-main);
  text-decoration: none;
}

.contact-info-item a:hover {
  color: var(--accent-solid);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.contact-sidebar h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.contact-sidebar > p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1.75rem;
}

.contact-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-steps li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-solid);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.form-status {
  font-size: 0.9rem;
  margin: 0;
  min-height: 1.2em;
}

.form-status--success {
  color: #15803d;
}

.form-status--error {
  color: #b91c1c;
}

.contact-urgent {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 1rem;
  border-left: 3px solid var(--accent-solid);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0;
}

.contact-form-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg);
  color: var(--text-main);
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-solid);
}

.form-field textarea {
  resize: vertical;
}

.contact-form-card .form-row {
  margin-bottom: 0;
}

.contact-form-card .btn-primary {
  margin-top: 0.25rem;
}

.form-field--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--accent-solid);
  cursor: pointer;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------
   ABOUT PAGE
   ------------------------------------------------------------- */

.about-split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3.5rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  min-height: 0;
}

.about-copy h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.9rem;
}

.about-copy h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.about-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-contact-card svg {
  color: var(--accent-solid);
  flex-shrink: 0;
}

.about-contact-card h3 {
  margin: 0;
  font-size: 1rem;
}

.about-contact-card a,
.about-contact-card span {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.about-contact-card a:hover {
  color: var(--accent-solid);
}

@media (max-width: 768px) {
  .about-split {
    grid-template-columns: 1fr;
  }

  .about-photo {
    aspect-ratio: 16 / 9;
  }
}

/* -------------------------------------------------------------
   PLATFORM ACCORDION
   ------------------------------------------------------------- */

.platform-accordion {
  border-top: 1px solid var(--border-subtle);
}

.acc-item {
  border-bottom: 1px solid var(--border-subtle);
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}

.acc-item.open {
  border-left-color: var(--accent-solid);
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1rem 1.25rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.acc-trigger:hover {
  color: var(--accent-solid);
}

.acc-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.acc-item.open .acc-chevron {
  transform: rotate(180deg);
}

.acc-panel {
  display: none;
  padding: 0 1rem 1.5rem 1.25rem;
}

.acc-item.open .acc-panel {
  display: flex;
}

.acc-body {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.acc-body p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.97rem;
}

.acc-visual {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .acc-body {
    grid-template-columns: 1fr;
  }

  .acc-visual {
    aspect-ratio: 2 / 1;
  }
}

/* -------------------------------------------------------------
   CARD ICON
   ------------------------------------------------------------- */

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 0.75rem;
  display: block;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-list li::before {
  content: "� ";
  color: var(--accent-solid);
}

/* Platform */

.platform-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.platform-copy p {
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  color: var(--text-muted);
}

.feature-list li + li {
  margin-top: 0.4rem;
}

.platform-visual {
  display: flex;
  justify-content: center;
}

.platform-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.5rem;
}

.platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.status-pill {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  font-size: 0.75rem;
}

.platform-body {
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.platform-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Links */

.link {
  font-size: 0.9rem;
  color: var(--accent-solid);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* CTA */

.section-cta {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%),
              radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 55%),
              #0f172a;
  color: #e5e7eb;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.cta-copy h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 2rem;
}

.cta-copy p {
  margin: 0;
  color: #cbd5f5;
}

.cta-form {
  background: rgba(15, 23, 42, 0.85);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.cta-form textarea {
  min-height: 90px;
  resize: vertical;
  margin-bottom: 0.75rem;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: #9ca3af;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: #f9fafb;
  padding: 1.75rem 0;
  font-size: 0.85rem;
}

.site-footer .brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-copy {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-meta {
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner,
  .platform-layout,
  .cta-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    gap: 2.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-cta {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    justify-content: space-between;
  }

  .header-cta {
    display: none; /* you can replace with a mobile menu later */
  }
}

/* -------------------------------------------------------------
  PLATFORM PAGE – hero feature grid
  ------------------------------------------------------------- */

.platform-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}

.platform-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
}

.platform-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-feature-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.platform-feature-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.platform-feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* -------------------------------------------------------------
  SERVICES PAGE – split panel layout
  ------------------------------------------------------------- */

.service-section {
  padding: 0;
  margin: 0 0 3rem;
}

.service-inner,
.service-inner.reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 480px;
}

.service-copy {
  padding: clamp(3rem, 6vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-copy h2 {
  font-size: clamp(2rem, 2.2vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin: 0 0 1rem;
}

.service-copy p {
  max-width: 44ch;
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0 0 1.9rem;
}

.service-tag {
  display: none;
}

.service-image {
  padding: 2rem;
  display: flex;
  align-items: stretch;
}

.service-image img,
.service-image .img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

/* Non-gradient sections: gradient button */
.service-section:not(.alt) .btn-primary {
  background-image: var(--accent);
  background-color: transparent;
  color: #ffffff;
  border-radius: 999px;
  padding: .5rem 1.2rem;
  font-size: 0.9rem;
  box-shadow: none;
}

.service-section:not(.alt) .btn-primary:hover {
  filter: brightness(1.07);
}

/* Gradient sections: white outline button */
.service-section.alt .btn-primary {
  background: transparent;
  background-image: none;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: .5rem 1.2rem;
  font-size: 0.9rem;
  box-shadow: none;
}

.service-section.alt .btn-primary:hover {
  background: rgba(255, 255, 255, 0.15);
  filter: none;
}

.service-section:not(.alt) .service-copy {
  background: var(--bg);
}

.service-section:not(.alt) .service-image {
  order: -1;
}

.service-section:not(.alt) .service-copy h2 {
  color: #182039;
}

.service-section:not(.alt) .service-copy p {
  color: #2e3447;
}

.service-section.alt .service-copy {
  background-image: var(--accent);
}

.service-section.alt .service-copy h2,
.service-section.alt .service-copy p {
  color: #ffffff;
}

@media (max-width: 900px) {
  .service-inner,
  .service-inner.reverse {
    grid-template-columns: 1fr;
  }

  .service-section {
    margin-bottom: 1.5rem;
  }

  .service-copy {
    padding: 2.5rem 1.5rem;
  }
}
