/* ============================================================
   SLIPFLOW — SHARED STYLES
   Single source of truth. Linked from every page.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #070951;
  --teal: #28ffbf;
  --teal-dim: rgba(40,255,191,0.12);
  --teal-border: rgba(40,255,191,0.2);
  --white: #ffffff;
  --off-white: #f5f6fa;
  --grey-text: #4a4f6e;
  --navy-border: #dde1f0;
  --white-70: rgba(255,255,255,0.7);
  --white-50: rgba(255,255,255,0.5);
  --white-08: rgba(255,255,255,0.08);
  --white-04: rgba(255,255,255,0.04);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans', sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; background: var(--white); color: var(--navy); }
h1,h2,h3,h4 { font-family: 'Figtree', sans-serif; font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.7rem,3vw,2.2rem); margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 10px; }
h4 { font-size: 0.95rem; margin-bottom: 8px; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── SECTION COLOURS ── */
.section { padding: 96px 48px; }
.inner { max-width: 1100px; margin: 0 auto; }
.narrow { max-width: 740px; margin: 0 auto; }
.dark { background: var(--navy); }
.dark h2,.dark h3,.dark h4 { color: var(--white); }
.dark p { color: var(--white-70); }
.dark .label { color: var(--teal); }
.light { background: var(--white); }
.light h2,.light h3,.light h4 { color: var(--navy); }
.light p { color: var(--grey-text); }
.light .label { color: var(--navy); opacity: 0.45; }
.offwhite { background: var(--off-white); }
.offwhite h2,.offwhite h3,.offwhite h4 { color: var(--navy); }
.offwhite p { color: var(--grey-text); }
.offwhite .label { color: var(--navy); opacity: 0.45; }

/* ── LABEL ── */
.label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }

/* ── NAV ── */
nav { position: sticky; top: 0; z-index: 100; background: rgba(7,9,81,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--teal-border); padding: 0 48px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo-text { font-family: 'Figtree', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--white); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--white-70); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover,.nav-links a.active { color: var(--white); text-decoration: none; }
.nav-cta { background: var(--teal) !important; color: var(--navy) !important; font-weight: 700 !important; padding: 9px 22px; border-radius: 6px; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.85; }

/* ── MOBILE NAV ── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-mobile { display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: rgba(7,9,81,0.98); backdrop-filter: blur(12px); z-index: 99; flex-direction: column; padding: 32px 24px; gap: 8px; overflow-y: auto; }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--white-70); text-decoration: none; font-size: 1.1rem; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--white-08); transition: color 0.2s; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--white); text-decoration: none; }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .nav-cta { display: inline-block; text-align: center; margin-top: 16px; padding: 14px 32px; border-bottom: none; }

/* ── BUTTONS ── */
.btn { display: inline-block; background: var(--teal); color: var(--navy); font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 0.95rem; padding: 13px 32px; border-radius: 6px; text-decoration: none; transition: opacity 0.2s; }
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: var(--white) !important; }
.btn-outline:hover { border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white) !important; }
.btn-navy:hover { opacity: 0.85; }

/* ── IMAGE PLACEHOLDER ── */
.img-ph { border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 0.82rem; text-align: center; padding: 32px; }
.img-ph svg { width: 36px; height: 36px; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.5; }
.img-ph-dark { border: 1px dashed var(--teal-border); background: var(--white-04); color: var(--white-50); }
.img-ph-dark svg { stroke: var(--teal); }
.img-ph-light { border: 1px dashed var(--navy-border); background: var(--off-white); color: var(--grey-text); }
.img-ph-light svg { stroke: var(--navy); }

/* ── HERO SECTION (shared across sub-pages) ── */
.hero-section { background: var(--navy); padding: 112px 48px 96px; position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(40,255,191,0.08) 0%, transparent 70%); pointer-events: none; }
.hero-section h1 { font-size: clamp(2.2rem,4.5vw,3.2rem); color: var(--white); margin-bottom: 24px; letter-spacing: -0.02em; max-width: 820px; }
.hero-sub { font-size: 1.1rem; color: var(--white-70); max-width: 620px; margin-bottom: 36px; }

/* ── FOOTER ── */
footer { background: var(--navy); border-top: 1px solid var(--teal-border); padding: 56px 48px 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--white-50); font-size: 0.88rem; line-height: 1.6; margin-bottom: 8px; }
.footer-brand a.email { color: var(--white-50); font-size: 0.88rem; }
.footer-brand a.email:hover { color: var(--teal); }
.footer-col h5 { font-family: 'Figtree', sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--white-50); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--white-70); font-size: 0.88rem; text-decoration: none; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid var(--white-08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p,.footer-bottom a { color: var(--white-50); font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--teal); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-dropdown-toggle svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: -16px; padding-top: 12px; min-width: 280px; z-index: 110; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu-inner { background: rgba(7,9,81,0.98); backdrop-filter: blur(12px); border: 1px solid var(--teal-border); border-radius: 10px; padding: 8px; }
.nav-dropdown-menu a { display: block; padding: 12px 16px; border-radius: 6px; border-left: 3px solid transparent; transition: background 0.15s, border-color 0.15s; }
.nav-dropdown-menu a:hover { background: var(--white-08); border-left-color: var(--teal); }
.nav-dropdown-menu a strong { display: block; color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.nav-dropdown-menu a span { display: block; color: var(--white-50); font-size: 0.78rem; font-weight: 400; }

/* ── MOBILE NAV LABEL ── */
.nav-mobile-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white-50); padding: 14px 0 6px; border-bottom: none; }

/* ── HERO CAROUSEL ── */
.hero-carousel { position: relative; }
.hero-slide { display: none; }
.hero-slide.active { display: block; }
.hero-slide .hero-content > * { opacity: 0; transform: translateY(16px); }
.hero-slide.active .hero-content > * { animation: fadeUp 0.5s ease both; }
.hero-slide.active .hero-content .label { animation-delay: 0s; }
.hero-slide.active .hero-content h1 { animation-delay: 0.1s; }
.hero-slide.active .hero-content p { animation-delay: 0.2s; }
.hero-slide.active .hero-content .btns { animation-delay: 0.3s; }
.hero-dots { display: flex; justify-content: center; gap: 10px; padding: 0 48px 48px; background: var(--navy); }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--teal-border); background: transparent; cursor: pointer; transition: background 0.3s, border-color 0.3s; padding: 0; }
.hero-dot.active { background: var(--teal); border-color: var(--teal); }
.hero-dot:hover { border-color: var(--teal); }

/* ── BRIDGE PAGE ── */
.bridge-steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.guardrails-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.guardrails-col h4 { color: var(--teal); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.guardrails-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.guardrails-col li { font-size: 0.92rem; color: var(--white-70); display: flex; align-items: flex-start; gap: 10px; }
.guardrails-col li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-top: 8px; }
.callout-box { margin-top: 32px; padding: 20px 24px; background: var(--white-04); border: 1px solid var(--teal-border); border-radius: 8px; }
.callout-box p { color: var(--white-70); font-size: 0.92rem; margin: 0; }
.deploy-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 48px; }
.deploy-card { background: var(--white); border: 1px solid var(--navy-border); border-radius: 10px; padding: 28px; transition: box-shadow 0.2s, border-color 0.2s; }
.deploy-card:hover { border-color: #b0b8dc; box-shadow: 0 4px 20px rgba(7,9,81,0.08); }
.deploy-card h4 { color: var(--navy); }
.deploy-card p { font-size: 0.9rem; color: var(--grey-text); }
.feature-bullets { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.feature-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.feature-bullets li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-top: 9px; }
.light .feature-bullets li { color: var(--grey-text); }
.light .feature-bullets li::before { background: var(--navy); opacity: 0.3; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .bridge-steps-grid { grid-template-columns: 1fr; }
  .guardrails-grid { grid-template-columns: 1fr; }
  .deploy-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .section { padding: 64px 20px; }
  .hero-section { padding: 80px 20px 64px; }
  footer { padding: 40px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-dots { padding: 0 20px 32px; }
  .deploy-grid { grid-template-columns: 1fr; }
}

/* ── ACCESSIBILITY ── */
.skip-link { position: absolute; top: -100%; left: 16px; background: var(--teal); color: var(--navy); padding: 10px 20px; border-radius: 0 0 6px 6px; font-weight: 700; font-size: 0.9rem; z-index: 200; text-decoration: none; transition: top 0.2s; }
.skip-link:focus { top: 0; }
*:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ── ANIMATION ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
