/* ============================================
   Packet Partners — Design Tokens
   ============================================ */
:root {
  --navy: #0B2342;
  --deep-navy: #07182E;
  --blue: #2E7BEA;
  --light-blue: #7DB7FF;
  --gray: #2A2F36;
  --white: #FFFFFF;
  --bg: #F6F9FC;

  --ink: #101826;
  --muted: #5B6672;
  --border: #E4EAF2;

  --font-display: "Archivo", sans-serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --wrap: 1160px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(11, 35, 66, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(11, 35, 66, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 35, 66, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #2569cf; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #2569cf; box-shadow: var(--shadow-md); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
}
.btn-ghost:hover { color: var(--blue); }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark { border-radius: 8px; background: var(--navy); object-fit: cover; }

.brand-word {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
}
.brand-packet { color: var(--navy); }
.brand-partners { color: var(--blue); font-size: 0.65rem; letter-spacing: 0.1em; margin-top: 3px; font-weight: 700; }

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a { color: var(--gray); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--blue); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 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); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--deep-navy) 0%, var(--navy) 100%);
  overflow: hidden;
  padding: 96px 0 72px;
}

.hero-flow {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}
.hero-flow svg { width: 100%; height: 100%; }
.wave { fill: none; stroke: rgba(255,255,255,0.16); stroke-width: 2; }
.wave-accent { stroke: rgba(46, 123, 234, 0.35); }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-blue);
  margin-bottom: 18px;
  display: inline-block;
}
.eyebrow-dark { color: var(--blue); }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 13ch;
}

.hero-sub {
  color: #C6D3E5;
  font-size: 1.125rem;
  max-width: 52ch;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-actions .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.3); }
.hero-actions .btn-outline:hover { border-color: var(--light-blue); color: var(--light-blue); }

.trace {
  margin-top: 44px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--light-blue);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.trace-dim { color: #8FA3BF; }
.trace b { color: var(--white); font-weight: 500; }

/* ============================================
   Trust strip
   ============================================ */
.trust-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  justify-content: space-between;
}
.trust-inner p {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 600;
}
.trust-inner ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.trust-inner li {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
}

/* ============================================
   Sections
   ============================================ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--navy); color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 1rem; }

.grid { display: grid; gap: 24px; }

/* Services */
.services-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(46, 123, 234, 0.08);
  color: var(--blue);
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 1.125rem; margin-bottom: 10px; font-weight: 700; letter-spacing: -0.01em; }
.service-card p { color: var(--muted); font-size: 0.9375rem; }

/* Industries */
.industries-grid { grid-template-columns: repeat(3, 1fr); }
.industry-card {
  background: var(--white);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.industry-card h3 { font-size: 1.0625rem; margin-bottom: 10px; font-weight: 700; letter-spacing: -0.01em; }
.industry-card p { color: var(--muted); font-size: 0.9375rem; }

/* Why */
.why-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.why-copy h2 { color: var(--white); margin: 14px 0 18px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.why-copy p { color: #C6D3E5; font-size: 1rem; }

.why-founders { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.founder {
  border-left: 2px solid var(--blue);
  padding-left: 16px;
}
.founder h4 { color: var(--white); font-size: 1rem; margin-bottom: 4px; font-weight: 700; }
.founder p { color: #9FB2CC; font-size: 0.875rem; }

.why-list { display: flex; flex-direction: column; gap: 20px; }
.why-list li {
  font-size: 0.9375rem;
  color: #C6D3E5;
  padding: 20px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
}
.why-list strong { color: var(--white); display: block; margin-bottom: 4px; font-weight: 700; }

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 14px 0 16px; }
.contact-copy p { color: var(--muted); font-size: 1rem; }

.contact-details { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.contact-detail {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}
.contact-detail span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2px;
}
.contact-detail:hover { color: var(--blue); }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-split > div { display: flex; flex-direction: column; gap: 6px; }

label { font-size: 0.875rem; font-weight: 700; color: var(--navy); }
input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { resize: vertical; }

.form-note { font-size: 0.875rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--blue); font-weight: 700; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--deep-navy);
  color: #8FA3BF;
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-footer .brand-packet { color: var(--white); }
.footer-tagline { font-family: var(--font-mono); font-size: 0.8125rem; }
.footer-nav { display: flex; gap: 22px; font-size: 0.875rem; }
.footer-nav a { color: #8FA3BF; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { width: 100%; text-align: center; font-size: 0.8125rem; margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .services-grid, .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner, .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .services-grid, .industries-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
}
