:root {
  --primary: #073B4C;
  --primary-light: #0B5269;
  --accent: #23A455;
  --bg-light: #F9FAFC;
  --text-muted: #6f7d89;
  --text-muted-2: #667985;
  --text-muted-3: #8a96a3;
  --border: #dfe7ec;
  --border-2: #dce6ea;
  --red: #e0554f;
  --yellow: #f0a93c;
  --radius: 16px;
  --shadow: 0 12px 28px rgba(7,59,76,.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--primary);
  background: #ffffff;
  scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { line-height: 1.6; color: var(--text-muted-2); margin: 0 0 12px; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 10px 24px rgba(7,59,76,.25);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(7,59,76,.35); transform: translateY(-1px); }
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--border-2);
}
.btn-secondary:hover { border-color: var(--primary); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
}
.btn-ghost:hover { background: rgba(7,59,76,.06); }

/* ---------------- Header / Nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand-logo { height: 40px; width: auto; }

.main-nav {
  display: flex;
  gap: 22px;
  margin-left: 12px;
  flex: 1;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted-2);
}
.main-nav a:hover { color: var(--primary); }

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

.lang-switch {
  display: flex;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  overflow: hidden;
  margin-right: 4px;
}
.lang-btn {
  border: none;
  background: #fff;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--text-muted);
  cursor: pointer;
}
.lang-btn.active {
  background: var(--primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---------------- Hero ---------------- */

.hero { padding: 56px 0 40px; background: #ffffff; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-sub { font-size: 1.05rem; max-width: 560px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Hero visual */

.hero-visual {
  position: relative;
}
.hero-image {
  width: 100%;
  aspect-ratio: 1448 / 1086;
  object-fit: cover;
}
/* Promises row (below hero) */

.promises-grid { margin-top: 48px; }
.promises-grid .card { background: var(--bg-light); }

/* ---------------- Sections ---------------- */

.section { padding: 64px 0; }
.section-alt { background: var(--bg-light); }
.section-solution { background: #FDFDFD; }
.section-compact { padding: 36px 0; }

.section h2 { max-width: 760px; }
.section-intro {
  max-width: 720px;
  font-size: 1.02rem;
  margin-bottom: 32px;
}

.section-solution h2 {
  max-width: none;
  text-align: center;
  white-space: nowrap;
}
.section-solution .section-intro {
  max-width: none;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

.solution-image {
  width: 100%;
  display: block;
  margin: 24px auto 32px;
}

.note-box {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(35,164,85,.08);
  border: 1px solid rgba(35,164,85,.25);
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--primary);
}

/* ---------------- Grids / Cards ---------------- */

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.section-alt .card { background: #fff; }
.card-compact { padding: 18px 22px; }
.card h3 { margin-bottom: 8px; color: var(--primary); }
.card p { font-size: 0.92rem; margin: 0; }

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(35,164,85,.1);
  color: var(--accent);
  margin-bottom: 12px;
}
.card-icon svg { width: 22px; height: 22px; }

.card-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .05em;
  margin-bottom: 8px;
}

/* Compact list (use cases, differentiators, "more capabilities") */

.more-title {
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.compact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 32px;
  margin-top: 12px;
}
.compact-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.compact-item h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}
.compact-item p {
  margin: 0;
  font-size: 0.88rem;
}

/* Integrations */

.integration-card { padding: 22px; }
.integration-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.status-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-supported { background: rgba(35,164,85,.12); color: var(--accent); }
.status-planned { background: rgba(240,169,60,.15); color: #c9881f; }
.status-roadmap { background: rgba(7,59,76,.08); color: var(--text-muted-2); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-muted-2);
}
.integration-collects {
  font-size: 0.85rem;
  margin: 0;
}

/* AI panel */

.ai-panel {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.ai-examples-title {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}
.ai-examples {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ai-examples li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted-2);
}
.ai-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted-3);
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* Architecture diagram */

.diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 24px 0;
}
.diagram-box {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  color: var(--primary);
  box-shadow: var(--shadow);
}
.diagram-box-accent {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.diagram-box-muted {
  background: var(--bg-light);
  color: var(--text-muted-2);
}
.diagram-arrow {
  color: var(--text-muted-3);
  font-size: 1.2rem;
  line-height: 1;
}
.diagram-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.architecture-cols { margin-top: 36px; }

.bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bullet-list li {
  font-size: 0.92rem;
  color: var(--text-muted-2);
  padding-left: 22px;
  position: relative;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* Customer login */

.customer-login-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  flex-wrap: wrap;
}
.customer-login-box h3 { margin-bottom: 4px; }
.customer-login-box p { margin: 0; }

/* Final CTA */

.section-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}
.cta-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.cta-head h2 { color: #fff; }
.cta-head p { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.section-cta .btn-ghost { color: #fff; }
.section-cta .btn-ghost:hover { background: rgba(255,255,255,.12); }
.section-cta .btn-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.section-cta .btn-secondary:hover { border-color: #fff; }

/* Forms */

.forms-grid { align-items: start; }
.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--primary);
}
.form-card h3 { margin-bottom: 12px; }
.form-card label {
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 4px;
  color: var(--primary);
}
.form-card input,
.form-card select,
.form-card textarea {
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--primary);
  background: #fff;
  outline: none;
  resize: vertical;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(7,59,76,.08);
}
.form-card .btn { margin-top: 16px; }

.form-message {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0;
  min-height: 0;
}
.form-message[data-state="success"] {
  padding: 10px 12px;
  background: rgba(35,164,85,.1);
  color: var(--accent);
}
.form-message[data-state="error"] {
  padding: 10px 12px;
  background: rgba(224,85,79,.1);
  color: var(--red);
}
.form-message[data-state="hidden"] { display: none; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.85);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .brand-logo { filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 0.88rem; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ai-examples { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 14px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary,
  .nav-actions .btn-ghost { display: none; }
  .grid-3, .grid-2, .compact-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .customer-login-box { flex-direction: column; align-items: flex-start; text-align: left; }
  .dashboard-row { grid-template-columns: 1fr; }
}
