/* ===== SENSION LAB — SHARED STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --navy: #1A2B45;
  --navy-mid: #243B5E;
  --blue: #1E8BE8;
  --blue-light: #5BB8FF;
  --teal: #14B89A;
  --teal-light: #30D4B8;
  --cream: #F4F9FF;
  --off-white: #F8FBFF;
  --text: #1A2B45;
  --muted: #5A6E88;
  --border: rgba(26,43,69,0.1);
  --white: #ffffff;
  --nav-h: 64px;
  --lang-h: 36px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--off-white); color: var(--text); font-size: 16px; line-height: 1.65; overflow-x: hidden; }

/* LANG BAR */
.lang-bar { background: var(--navy); color: rgba(255,255,255,0.5); font-size: 12px; padding: 0 5vw; height: var(--lang-h); display: flex; justify-content: flex-end; gap: 12px; align-items: center; position: fixed; top: 0; left: 0; right: 0; z-index: 200; }
.lang-btn { background: none; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 100px; cursor: pointer; transition: all 0.2s; font-family: 'DM Sans', sans-serif; letter-spacing: 0.05em; }
.lang-btn.active { background: var(--teal); border-color: var(--teal); color: white; }
.lang-btn:hover:not(.active) { color: white; border-color: rgba(255,255,255,0.5); }

/* NAV */
nav { position: fixed; top: var(--lang-h); left: 0; right: 0; z-index: 100; padding: 0 5vw; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; background: rgba(248,251,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
nav.scrolled { box-shadow: 0 2px 24px rgba(26,43,69,0.08); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--navy); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; flex-shrink: 0; }
.logo-mark::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(91,184,255,0.9); animation: pulse-ring 3s ease-in-out infinite; }
.logo-mark::before { content: ''; position: absolute; width: 7px; height: 7px; background: var(--teal-light); border-radius: 50%; z-index: 1; }
@keyframes pulse-ring { 0%,100%{transform:scale(0.8);opacity:0.5} 50%{transform:scale(1.1);opacity:1} }
.logo-name { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.logo-name span { color: var(--blue); }
.nav-links { list-style: none; display: flex; gap: 0; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 400; padding: 8px 16px; border-radius: 6px; transition: color 0.2s, background 0.2s; display: block; }
.nav-links a:hover { color: var(--navy); background: rgba(26,43,69,0.04); }
.nav-links a.active { color: var(--blue); font-weight: 500; }
.nav-cta { background: var(--navy) !important; color: var(--white) !important; padding: 8px 20px !important; margin-left: 8px; }
.nav-cta:hover { background: var(--blue) !important; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--navy); font-size: 20px; }

/* PAGE BODY OFFSET */
.page-body { padding-top: calc(var(--lang-h) + var(--nav-h)); }

/* PAGE HERO (non-home) */
.page-hero { background: var(--navy); padding: 72px 5vw 64px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 100% at 80% 50%, rgba(30,139,232,0.25) 0%, transparent 60%); }
.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.page-hero .breadcrumb { font-size: 12px; color: rgba(255,255,255,0.35); margin-bottom: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.35); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: rgba(255,255,255,0.6); }
.page-hero h1 { font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; color: var(--white); line-height: 1.15; margin-bottom: 16px; }
.page-hero h1 em { font-style: italic; color: var(--blue-light); }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.6); font-weight: 300; max-width: 560px; line-height: 1.7; }

/* SECTIONS */
.section { padding: 80px 5vw; }
.section.bg-cream { background: var(--cream); }
.section.bg-white { background: var(--white); }
.section.bg-navy { background: var(--navy); }
.section-tag { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.section.bg-navy .section-tag { color: var(--teal-light); }
h2 { font-family: 'DM Serif Display', serif; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 400; line-height: 1.2; color: var(--navy); margin-bottom: 16px; }
h2 em { font-style: italic; color: var(--blue); }
.section.bg-navy h2 { color: rgba(255,255,255,0.92); }
.section.bg-navy h2 em { color: var(--blue-light); }
.lead { font-size: 1rem; color: var(--muted); max-width: 540px; line-height: 1.75; font-weight: 300; margin-bottom: 48px; }
.section.bg-navy .lead { color: rgba(255,255,255,0.5); }

/* CARDS */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 8px 32px rgba(26,43,69,0.1); transform: translateY(-2px); }
.card-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 22px; }
.icon-blue { background: rgba(30,139,232,0.1); }
.icon-teal { background: rgba(20,184,154,0.1); }
.icon-navy { background: rgba(26,43,69,0.06); }
.card h3 { font-size: 16px; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.card .card-sub { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.chip { display: inline-block; font-size: 11px; padding: 4px 10px; border-radius: 100px; font-weight: 500; margin-top: 14px; }
.chip-blue { background: rgba(30,139,232,0.1); color: var(--blue); }
.chip-teal { background: rgba(20,184,154,0.1); color: var(--teal); }
.chip-navy { background: rgba(26,43,69,0.06); color: var(--navy); }

/* DARK CARDS */
.dark-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 24px; }
.dark-card-label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 8px; }
.dark-card p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.65; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 8px; font-size: 15px; font-weight: 500; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; font-family: 'DM Sans', sans-serif; }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-light); color: var(--navy); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline-white { background: transparent; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.2); }
.btn-outline-white:hover { color: white; border-color: rgba(255,255,255,0.5); }

/* STAT BAR */
.stat-bar { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; padding: 32px 5vw; background: var(--white); border-bottom: 1px solid var(--border); }
.stat { text-align: center; }
.stat-num { font-family: 'DM Serif Display', serif; font-size: 2rem; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; }
.stat-src { font-size: 10px; color: rgba(90,110,136,0.55); margin-top: 2px; font-style: italic; }

/* FLOW STEPS */
.flow { display: flex; align-items: stretch; }
.flow-step { flex: 1; padding: 32px 24px; background: var(--white); border: 1px solid var(--border); border-right: none; position: relative; }
.flow-step:first-child { border-radius: 16px 0 0 16px; }
.flow-step:last-child { border-radius: 0 16px 16px 0; border-right: 1px solid var(--border); }
.flow-step::after { content: '→'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); background: var(--white); border: 1px solid var(--border); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); z-index: 1; }
.flow-step:last-child::after { display: none; }
.flow-num { font-family: 'DM Serif Display', serif; font-size: 2rem; color: rgba(26,43,69,0.1); margin-bottom: 10px; }
.flow-step h3 { font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.flow-step p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* SECTION SPLIT */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.split.align-center { align-items: center; }

/* ACCENT CARD (left border) */
.accent-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 24px 28px; position: relative; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.accent-card:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(26,43,69,0.07); }
.accent-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px 0 0 3px; }
.accent-card.blue::before { background: var(--blue-light); }
.accent-card.teal::before { background: var(--teal-light); }
.accent-card.orange::before { background: #F0923A; }
.accent-card h3 { font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.accent-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* TIMELINE */
.timeline { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.tl-phase { background: var(--white); padding: 32px 24px; transition: background 0.2s; }
.tl-phase:hover { background: var(--off-white); }
.tl-tag { display: inline-block; font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; margin-bottom: 14px; }
.tl-tag.p1 { background: rgba(30,139,232,0.1); color: var(--blue); }
.tl-tag.p2 { background: rgba(20,184,154,0.1); color: var(--teal); }
.tl-tag.p3 { background: rgba(26,43,69,0.06); color: var(--navy); }
.tl-date { font-size: 11px; color: var(--muted); margin-bottom: 10px; letter-spacing: 0.04em; }
.tl-phase h3 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; font-weight: 400; color: var(--navy); margin-bottom: 14px; }
.tl-phase ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tl-phase ul li { font-size: 13.5px; color: var(--muted); display: flex; gap: 10px; line-height: 1.5; }
.tl-phase ul li::before { content: '—'; color: var(--teal); flex-shrink: 0; }

/* COMPLIANCE GRID */
.compliance-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.comp-card { border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; background: var(--white); }
.comp-icon { font-size: 24px; margin-bottom: 10px; }
.comp-card h3 { font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.comp-card p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* TEAM CARD */
.team-card { background: var(--off-white); border: 1px solid var(--border); border-radius: 16px; padding: 32px 24px; }
.team-avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: white; margin-bottom: 20px; }
.avatar-blue { background: var(--blue); }
.avatar-teal { background: var(--teal); }
.avatar-navy { background: var(--navy); }
.team-card h3 { font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.team-role { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.team-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.expertise-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.exp-chip { font-size: 11px; padding: 3px 9px; border-radius: 100px; background: rgba(30,139,232,0.08); color: var(--blue); font-weight: 500; }
.exp-chip.teal { background: rgba(20,184,154,0.08); color: var(--teal); }
.exp-chip.navy { background: rgba(26,43,69,0.06); color: var(--navy); }

/* NUMBERS DARK GRID */
.num-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; overflow: hidden; }
.num-cell { background: rgba(26,43,69,0.5); padding: 32px 20px; text-align: center; transition: background 0.2s; }
.num-cell:hover { background: rgba(36,59,94,0.7); }
.num-big { font-family: 'DM Serif Display', serif; font-size: 2.4rem; color: white; line-height: 1; margin-bottom: 8px; }
.num-big span { color: var(--teal-light); }
.num-label { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; margin-bottom: 6px; }
.num-src { font-size: 10px; color: rgba(255,255,255,0.2); font-style: italic; line-height: 1.4; }

/* FOOTER */
footer { background: #060F1E; padding: 56px 5vw 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo-mark { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo-name { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.3); line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { text-decoration: none; font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-col ul a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); }

/* CTA BANNER */
.cta-banner { background: var(--navy); padding: 80px 5vw; text-align: center; }
.cta-banner h2 { color: white; margin-bottom: 16px; }
.cta-banner h2 em { color: var(--teal-light); }
.cta-banner p { color: rgba(255,255,255,0.55); font-size: 1rem; max-width: 480px; margin: 0 auto 36px; font-weight: 300; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ANIMATIONS */
@keyframes fade-up { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
.fade-in { opacity: 0; }
.fade-in.visible { animation: fade-up 0.55s ease forwards; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .card-grid-3, .card-grid-4, .num-grid, .compliance-grid, .timeline, .footer-grid { grid-template-columns: 1fr; }
  .card-grid-2, .split { grid-template-columns: 1fr; gap: 2rem; }
  .flow { flex-direction: column; }
  .flow-step { border-right: 1px solid var(--border); border-bottom: none; }
  .flow-step:first-child { border-radius: 16px 16px 0 0; }
  .flow-step:last-child { border-radius: 0 0 16px 16px; border-bottom: 1px solid var(--border); }
  .flow-step::after { content: '↓'; right: auto; left: 50%; top: auto; bottom: -14px; transform: translateX(-50%); }
  .flow-step:last-child::after { display: none; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .stat-bar { gap: 2rem; }
}

/* ===== S-WAVE LOGO OVERRIDE ===== */
.logo-mark {
  background: none !important;
  border: none !important;
  overflow: visible !important;
}
.logo-mark::before, .logo-mark::after { display: none !important; }
.logo-svg { width: 34px; height: 34px; flex-shrink: 0; }
