:root {
  --bg: #05070a;
  --bg-elevated: #0b0f15;
  --surface: #10151d;
  --surface-2: #141a23;
  --border: #202834;
  --text: #e8edf3;
  --text-dim: #8b96a5;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-2: #f59e0b;
  --radius: 12px;
  --font-head: 'Chakra Petch', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0; color: var(--text-dim); }

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5, 7, 10, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.brand-mark { width: 34px; height: 34px; }

.brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

.btn-primary {
  background: var(--accent);
  color: #05070a;
  box-shadow: 0 0 0 rgba(45,212,191,0);
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(45,212,191,0.35);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  color: var(--text-dim);
  padding: 10px 4px;
}

.btn-ghost:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 90px;
  text-align: center;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 20%, black 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: scroll-left 28s linear infinite;
}

.marquee-track span {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.marquee-track span:nth-child(2n) { color: var(--accent); }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-elevated); }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
  font-size: 1rem;
}

/* Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.pillar {
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.pillar-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.pillar-icon svg { width: 22px; height: 22px; }

.pillar h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.pillar p { font-size: 0.92rem; }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.product-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--accent-2);
  margin-bottom: 20px;
}

.product-icon svg { width: 22px; height: 22px; }

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.product-card p { font-size: 0.93rem; }

.badge {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 9px;
  border-radius: 999px;
}

.badge-live {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(45, 212, 191, 0.35);
}

.product-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.product-link:hover { opacity: 0.75; }

.product-card-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: transparent;
  border-style: dashed;
}

.product-card-cta .btn { align-self: flex-start; }

/* Workflow */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}

.workflow-step {
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.workflow-num {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.workflow-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.workflow-step p { font-size: 0.92rem; }

/* CTA / Contact */
.cta-section {
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 14px;
}

.contact-copy p { margin-bottom: 28px; }

.contact-form {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.86rem;
  min-height: 1.2em;
  text-align: center;
}

.form-status.success { color: var(--accent); }
.form-status.error { color: #f87171; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-tagline { font-size: 0.92rem; }

.footer-copy { font-size: 0.8rem; color: #5a6472; }

/* Responsive */
@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }

  .main-nav.open { display: flex; }

  .nav-toggle { display: flex; }

  .header-actions .btn-ghost { display: none; }

  .hero { padding: 90px 0 60px; }

  .pillar-grid, .product-grid, .workflow-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
}
