/* ══════════════════════════════════════════════
   TRAZE AI — SHARED DESIGN SYSTEM
   ══════════════════════════════════════════════ */
:root {
  --teal:        #0A9E8A;
  --teal-l:      #12C4AC;
  --teal-dim:    rgba(10,158,138,0.12);
  --gold:        #E8B84B;
  --gold-dim:    rgba(232,184,75,0.14);
  --navy:        #0B1829;
  --navy-mid:    #122236;
  --navy-soft:   #1A3050;
  --cream:       #F4F0E8;
  --warm:        #FDFBF7;
  --white:       #ffffff;
  --text-1:      #0B1829;
  --text-2:      #3D5568;
  --text-3:      #7A95A8;
  --border:      #D8E6EF;
  --border-soft: #EDF3F7;
  --r:           14px;
  --r-lg:        20px;
  --sh:          0 4px 24px rgba(11,24,41,0.08);
  --sh-lg:       0 16px 64px rgba(11,24,41,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--warm); color: var(--text-1);
  line-height: 1.65; overflow-x: hidden;
}

/* ── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.025em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { line-height: 1.72; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-l); }
strong { font-weight: 600; }

/* ── NAV ────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px;
  background: rgba(11,24,41,0.94);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 1.45rem; color: var(--white); text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--teal-l); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; padding: 7px 14px;
  border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--teal-l); }
.nav-cta {
  background: var(--teal) !important; color: white !important;
  padding: 9px 20px !important; border-radius: 9px;
  font-weight: 600 !important; margin-left: 8px;
  box-shadow: 0 0 0 1px rgba(10,158,138,0.4);
}
.nav-cta:hover { background: var(--teal-l) !important; box-shadow: 0 4px 18px rgba(10,158,138,0.4) !important; }
.nav-ham { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-ham span { width: 22px; height: 2px; background: rgba(255,255,255,0.7); border-radius: 2px; transition: all 0.3s; }

/* ── HERO VARIANTS ──────────────────────────── */
.hero {
  min-height: 100vh; background: var(--navy);
  display: flex; align-items: center;
  padding: 120px 48px 80px; position: relative; overflow: hidden;
}
.hero-sm {
  min-height: 52vh; background: var(--navy);
  display: flex; align-items: flex-end;
  padding: 100px 48px 64px; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,158,138,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,158,138,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
}
.hero-glow-a {
  position: absolute; border-radius: 50%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(10,158,138,0.16) 0%, transparent 65%);
  top: -250px; right: -250px;
}
.hero-glow-b {
  position: absolute; border-radius: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,184,75,0.09) 0%, transparent 65%);
  bottom: -100px; left: -150px;
}
.hero-inner { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; width: 100%; }

/* ── BADGES ─────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  margin-bottom: 22px;
}
.badge-teal { background: rgba(10,158,138,0.15); border: 1px solid rgba(10,158,138,0.3); color: var(--teal-l); }
.badge-gold { background: rgba(232,184,75,0.14); border: 1px solid rgba(232,184,75,0.3); color: #e8c46a; }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 2.2s infinite; }
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.7)} }

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; cursor: pointer; border: none;
  font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; transition: all 0.22s;
}
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-l); color: white; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(10,158,138,0.38); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #f0c85e; color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,184,75,0.38); }
.btn-ghost { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.18); }
.btn-ghost:hover { border-color: var(--teal-l); color: var(--teal-l); }
.btn-outline-teal { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-outline-teal:hover { background: var(--teal); color: white; }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; border-radius: 8px; }

/* ── SECTION ─────────────────────────────────── */
section { padding: 90px 48px; }
.sec-inner { max-width: 1160px; margin: 0 auto; }
.sec-tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.sec-tag-gold { color: #b8900f; }
.sec-title { color: var(--text-1); margin-bottom: 14px; }
.sec-sub { font-size: 1.05rem; color: var(--text-2); max-width: 560px; line-height: 1.72; margin-bottom: 56px; }
.center { text-align: center; }
.center .sec-sub { margin-left: auto; margin-right: auto; }

/* ── CARDS ───────────────────────────────────── */
.card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 36px;
  transition: all 0.28s; position: relative; overflow: hidden;
}
.card:hover { box-shadow: var(--sh-lg); border-color: transparent; transform: translateY(-3px); }
.card-teal-bar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--teal-l)); }
.card-gold-bar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), #f5c96a); }

/* ── ICON BOXES ──────────────────────────────── */
.icon-box {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 18px; flex-shrink: 0;
}
.icon-teal { background: rgba(10,158,138,0.1); border: 1px solid rgba(10,158,138,0.2); }
.icon-gold { background: rgba(232,184,75,0.12); border: 1px solid rgba(232,184,75,0.22); }
.icon-navy { background: rgba(11,24,41,0.07); border: 1px solid rgba(11,24,41,0.1); }

/* ── TRUST BAR ───────────────────────────────── */
.trust-bar {
  background: rgba(10,158,138,0.06);
  border-top: 1px solid rgba(10,158,138,0.12);
  border-bottom: 1px solid rgba(10,158,138,0.12);
  padding: 18px 48px;
}
.trust-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; color: var(--text-2); font-weight: 500; }
.trust-icon { font-size: 1rem; }

/* ── FORMS ───────────────────────────────────── */
.form-wrap { background: var(--white); border-radius: 24px; padding: 48px 52px; box-shadow: var(--sh-lg); border: 1px solid var(--border); }
.form-tabs { display: flex; background: var(--border-soft); border-radius: 12px; padding: 4px; margin-bottom: 36px; }
.ftab { flex: 1; padding: 11px 14px; border-radius: 9px; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600; text-align: center; transition: all 0.22s; border: none; background: transparent; color: var(--text-3); }
.ftab.t-wms { background: var(--teal); color: white; box-shadow: 0 4px 14px rgba(10,158,138,0.28); }
.ftab.t-rcm { background: var(--gold); color: var(--navy); box-shadow: 0 4px 14px rgba(232,184,75,0.32); }
.fpanel { display: none; }
.fpanel.active { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.fg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.fg label { font-size: 0.82rem; font-weight: 600; color: var(--text-1); }
.fg input, .fg select, .fg textarea {
  padding: 11px 15px; border-radius: 10px; border: 1.5px solid var(--border);
  font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--text-1);
  background: var(--warm); outline: none; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--teal); background: white;
  box-shadow: 0 0 0 3px rgba(10,158,138,0.1);
}
.fg textarea { resize: vertical; min-height: 88px; }
.form-note { text-align: center; font-size: 0.79rem; color: var(--text-3); margin-top: 13px; }
.success-screen { display: none; text-align: center; padding: 44px 20px; }
.success-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(10,158,138,0.1); border: 2px solid var(--teal); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 20px; }

/* ── FOOTER ──────────────────────────────────── */
footer { background: var(--navy); padding: 60px 48px 30px; }
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 28px; }
.footer-logo { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.35rem; font-weight: 800; color: white; margin-bottom: 12px; letter-spacing: -0.02em; }
.footer-logo span { color: var(--teal-l); }
.footer-desc { font-size: 0.84rem; color: rgba(255,255,255,0.38); line-height: 1.65; }
.footer-col h5 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.76rem; font-weight: 700; color: rgba(255,255,255,0.45); letter-spacing: 0.11em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.48); font-size: 0.86rem; text-decoration: none; margin-bottom: 9px; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-l); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.28); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.28); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--teal-l); }

/* ── BREADCRUMB ──────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--teal-l); }
.breadcrumb span { color: rgba(255,255,255,0.2); }

/* ── UTILITY ─────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.divider-navy { border-color: rgba(255,255,255,0.06); }
.tag-pill { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pill-teal { background: rgba(10,158,138,0.1); color: var(--teal); }
.pill-gold { background: rgba(232,184,75,0.14); color: #9a7010; }
.pill-navy { background: rgba(11,24,41,0.08); color: var(--text-2); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-2); }
.check-list li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: rgba(10,158,138,0.1); border: 1.5px solid var(--teal); flex-shrink: 0; margin-top: 2px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%230A9E8A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-size: 65%; background-repeat: no-repeat; background-position: center; }
.stat-block { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--teal-l); line-height: 1; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.42); font-weight: 400; }
.text-white { color: white; }
.text-soft { color: rgba(255,255,255,0.55); }

/* ── FAQ ─────────────────────────────────────── */
.faq-item { border: 1.5px solid var(--border); border-radius: var(--r); padding: 20px 24px; cursor: pointer; transition: all 0.2s; margin-bottom: 10px; }
.faq-item:hover, .faq-item.open { border-color: var(--teal); box-shadow: 0 2px 16px rgba(10,158,138,0.06); }
.faq-q { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.faq-q strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text-1); }
.faq-tog { width: 22px; height: 22px; border-radius: 50%; background: var(--teal-dim); border: 1px solid rgba(10,158,138,0.22); display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 1rem; font-weight: 700; flex-shrink: 0; transition: all 0.2s; line-height: 1; }
.faq-item.open .faq-tog { background: var(--teal); color: white; transform: rotate(45deg); }
.faq-a { font-size: 0.88rem; color: var(--text-2); line-height: 1.7; margin-top: 12px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ── SCROLL ANIMATION ────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 960px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: rgba(11,24,41,0.98); padding: 20px 24px 32px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-ham { display: flex; }
  .hero, .hero-sm { padding: 100px 24px 60px; }
  section { padding: 64px 24px; }
  .form-wrap { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 48px 24px 24px; }
  .trust-bar { padding: 14px 24px; }
  .trust-inner { gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-inner { flex-direction: column; gap: 14px; }
}
