/* ==========================================================================
   Zipwire — Base
   ========================================================================== */

:root {
  --navy: #0B1E4B;
  --navy-deep: #071433;
  --purple: #6D1B9E;
  --magenta: #D6176B;
  --gradient: linear-gradient(135deg, var(--purple), var(--magenta));
  --white: #FFFFFF;
  --off-white: #F7F8FB;
  --slate: #4B5567;
  --slate-light: #8891A3;
  --border: #E3E7F0;

  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1120px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 12px;
  --header-height: 72px;
}

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

html {
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 600;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-2);
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: var(--space-2);
}

/* Focus states */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section {
  padding-block: var(--space-5);
}

.section--tight {
  padding-block: var(--space-4);
}

.section-heading {
  max-width: 640px;
  margin-bottom: var(--space-4);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: var(--space-1);
}

.divider {
  height: 3px;
  border: 0;
  background: var(--gradient);
  opacity: 0.85;
  margin: 0;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-link svg {
  height: 28px;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.primary-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.primary-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav ul {
  display: flex;
  flex-direction: column;
  padding: var(--space-2) var(--space-3) var(--space-3);
  gap: var(--space-1);
}

.primary-nav a {
  display: block;
  padding: 0.6rem 0;
  font-weight: 500;
  text-decoration: none;
  color: var(--navy);
}

.primary-nav a:hover {
  color: var(--magenta);
}

@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    background: none;
    border-bottom: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav ul {
    flex-direction: row;
    padding: 0;
    gap: var(--space-4);
  }

  .primary-nav a {
    padding: 0;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(214, 23, 107, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(214, 23, 107, 0.65);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover {
    transform: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: radial-gradient(circle at 15% 20%, rgba(109, 27, 158, 0.35), transparent 55%),
              linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero .container {
  position: relative;
  padding-block: var(--space-6) var(--space-5);
  z-index: 1;
}

.hero-mark {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 420px;
  height: 420px;
  opacity: 0.12;
  z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-mark {
    animation: hero-glow 6s ease-in-out infinite;
  }
}

@keyframes hero-glow {
  0%, 100% { opacity: 0.10; }
  50% { opacity: 0.20; }
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2rem, 1.5rem + 2.6vw, 3.25rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.hero p {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  color: rgba(247, 248, 251, 0.85);
  max-width: 560px;
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  background: var(--off-white);
}

.about-content {
  max-width: 760px;
}

.about p {
  font-size: 1.05rem;
}

/* ==========================================================================
   Why now — cards
   ========================================================================== */

.why-now {
  position: relative;
  background: var(--white);
}

.why-now::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/Zipwire-molecules.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.6;
  pointer-events: none;
}

.card-grid {
  display: grid;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.card-number {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-1);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--slate);
  font-size: 0.95rem;
}

/* ==========================================================================
   Founder
   ========================================================================== */

.founder {
  background: var(--off-white);
}

.founder-card {
  max-width: 760px;
  border-left: 3px solid transparent;
  border-image: var(--gradient);
  border-image-slice: 1;
  padding-left: var(--space-3);
}

.founder-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.founder p {
  font-size: 1.05rem;
}

/* ==========================================================================
   Careers
   ========================================================================== */

.careers-intro {
  max-width: 640px;
  margin-bottom: var(--space-4);
  font-size: 1.05rem;
}

.role-grid {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

@media (min-width: 700px) {
  .role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.role-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.role-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.role-card p {
  color: var(--slate);
}

.careers-note {
  background: var(--navy);
  color: rgba(247, 248, 251, 0.9);
  border-radius: var(--radius);
  padding: var(--space-3);
  font-size: 0.95rem;
}

.careers-note a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.careers-note a:hover {
  text-decoration-color: var(--white);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--off-white);
}

.contact-content {
  max-width: 560px;
}

.contact-list {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-list a {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--magenta);
}

.contact-tagline {
  margin-top: var(--space-3);
  color: var(--slate);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: rgba(247, 248, 251, 0.7);
}

.site-footer .container {
  padding-block: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer .logo-link svg {
  height: 24px;
}

.site-footer small {
  font-size: 0.85rem;
}

@media (min-width: 700px) {
  .site-footer .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
