/* ─── FONTS ────────────────────────────────────────── */

@font-face {
  font-family: 'Brockmann';
  src: url('../assets/fonts/Brockmann-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brockmann';
  src: url('../assets/fonts/Brockmann-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brockmann';
  src: url('../assets/fonts/Brockmann-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ─── RESET ────────────────────────────────────────── */

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

/* ─── DESIGN TOKENS ────────────────────────────────── */

:root {
  --bright-blue: #025ED8;
  --teal: #01B2F4;
  --dark-blue: #020242;
  --dark-blue-grey: #414151;
  --mid-blue-grey: #9494A4;
  --light-blue-grey: #E9EBED;
  --white: #FFFFFF;
  --blue-white: #F8F9FA;

  --bg: var(--white);
  --surface: var(--light-blue-grey);
  --surface-2: #ebebea;
  --border: #e2e2de;
  --border-light: #eeeeea;
  --text: var(--dark-blue);
  --text-secondary: var(--dark-blue-grey);
  --text-muted: var(--mid-blue-grey);
  --accent: var(--bright-blue);
  --accent-dim: rgba(2,94,216,0.07);
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 24px;
}

/* ─── BASE ─────────────────────────────────────────── */

html { scroll-behavior: smooth; }

body {
  font-family: 'Brockmann', 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ──────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5rem;
  height: 64px;
  background: var(--white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-svg {
  height: 22px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

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

.nav-github {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg) !important;
  color: var(--dark-blue-grey) !important;
  font-size: 0.85rem;
  font-weight: 400 !important;
  border: 1px solid var(--border) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 0.4rem 1rem !important;
  border-radius: 6px !important;
  transition: border-color 0.15s, color 0.15s !important;
}

.nav-github:hover {
  border-color: #bbb !important;
  color: var(--dark-blue) !important;
}

.nav-github-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: inherit;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── BUTTONS ──────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
  border: none;
  background: none;
}

.btn-primary {
  padding: 0.65rem 1.5rem;
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
}

.btn-primary:hover { opacity: 0.88; }

.btn-ghost-white {
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
}

.btn-ghost-white:hover { color: #fff; border-color: rgba(255,255,255,0.7); }

.btn-link {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

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

/* ─── LAYOUT ───────────────────────────────────────── */

section { padding: 6rem 0; }

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3.5rem;
}

/* ─── TYPOGRAPHY ───────────────────────────────────── */

.section-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--mid-blue-grey);
  margin-bottom: 1rem;
  display: block;
}

.h2 {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.display-heading {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  flex-shrink: 0;
}

.display-heading-dim {
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}

h3, .h3 {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.75;
  padding-bottom: 1.2rem;
}

/* ─── FOOTER ───────────────────────────────────────── */

footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3.5rem;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 220px;
}

.footer-col-heading {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1600px;
  margin: 3.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
}

/* ─── RESPONSIVE ───────────────────────────────────── */

@media (max-width: 900px) {
  section { padding: 4rem 0; }
  nav { padding: 0 1.5rem; }
  .nav-burger { display: flex; }
  .nav-overlay { display: block; }
  .nav-links {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    z-index: 99;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    font-size: 0.95rem;
    padding: 1.1rem 0;
    display: block;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-github {
    margin-top: 1.5rem;
    justify-content: center;
  }
  .container { padding: 0 1.5rem; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  footer { padding: 3rem 1.5rem; }
}

/* ─── CTA ──────────────────────────────────────────── */

.cta-section {
  overflow: hidden;
  position: relative;
  padding: 10rem 0;
}

.cta-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-video-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 0;
}

.cta-demo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}


.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 400;
  text-decoration: none;
  color: #fff;
  background: rgba(92, 92, 156, 0.30);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.30);
  padding: 1.75rem 2.75rem;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
}

.btn-demo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: #fff;
  transition: width 0.4s ease;
  border-radius: inherit;
}

.btn-demo:hover::before { width: 100%; }
.btn-demo:hover { color: var(--dark-blue); }

.btn-demo-label {
  position: relative;
  z-index: 1;
}

.btn-demo-icon {
  position: relative;
  z-index: 1;
}

.btn-demo-sm {
  font-size: 0.9rem;
  padding: 0.85rem 1.6rem;
  gap: 0.6rem;
}

.cta-section .section-label { color: rgba(255,255,255,0.4); }

@media (max-width: 900px) {
  .cta-demo {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .cta-section { padding: 6rem 0; }
}
