/* ============================================================
   2-Socks landing page styles
   Palette: deep navy + white, with neon-purple accents.
   ============================================================ */

:root {
  --bg: #000b40;            /* main background — dark blue */
  --bg-elevated: #061659;   /* slightly lifted navy for alternating bands */
  --bg-deep: #00072a;       /* deepest navy (footer / scrims) */
  --surface: rgba(255, 255, 255, 0.045); /* card / panel fill on navy */
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.14);

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);

  --accent: #8800ff;        /* neon purple — buttons, borders, glow */
  --accent-bright: #9b33ff; /* hover / emphasis */
  --accent-soft: #b98bff;   /* small text accents on dark (readable) */

  --maxw: 1100px;
  --radius: 16px;
  --radius-pill: 999px;
  --section-pad: clamp(64px, 9vw, 128px);

  --font-head: "Gabarito", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
  --glow: 0 8px 34px rgba(136, 0, 255, 0.45);
}

/* ----------------------------- base ----------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* offset for the sticky nav */
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 18px;
}

/* ----------------------------- buttons ----------------------------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

/* primary: neon purple */
.btn--primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: var(--glow);
}

/* ghost / outline: for use over imagery or as a secondary action */
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(136, 0, 255, 0.16);
  border-color: var(--accent-bright);
  color: #ffffff;
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.95rem;
}

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------------------------- nav ----------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* soft navy gradient that fades to transparent at the bottom — no hard edge */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 165%;
  background: linear-gradient(
    to bottom,
    rgba(0, 11, 64, 0.96) 0%,
    rgba(0, 11, 64, 0.7) 45%,
    rgba(0, 11, 64, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0;
  color: var(--text);
}

.nav__logo img {
  height: 34px;
  width: auto;
  /* logo art is black; render it white for the dark UI */
  filter: brightness(0) invert(1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav__links a:not(.btn):hover {
  color: var(--accent-soft);
}

/* fade the navy gradient in once scrolled past the hero top */
.site-header.scrolled::before {
  opacity: 1;
}

/* mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.25s ease;
}

/* ----------------------------- hero ----------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--bg);
  background-image: url("images/hero-bg.svg");
  background-size: cover;
  background-position: center;
  color: var(--text);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      60% 55% at 78% 18%,
      rgba(136, 0, 255, 0.35) 0%,
      rgba(136, 0, 255, 0) 60%
    ),
    linear-gradient(
      180deg,
      rgba(0, 7, 42, 0.55) 0%,
      rgba(0, 11, 64, 0.35) 42%,
      rgba(0, 7, 42, 0.85) 100%
    );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero__inner {
  max-width: 760px;
}

.hero h1 {
  /* wraps to 2–3 lines inside .hero__inner; sized to stay legible at 360px */
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero__sub {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  margin-top: 20px;
  color: var(--text-muted);
  font-weight: 300;
}

.hero__intro {
  max-width: 620px;
  margin-top: 18px;
  margin-bottom: 40px;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  color: var(--text-muted);
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ----------------------------- sections ----------------------------- */

.section {
  position: relative;
  padding-block: var(--section-pad);
  background: var(--bg);
}

/* alternating lifted band */
.section--alt {
  background: var(--bg-elevated);
}

/* ---- optional background-image treatment (experiment; remove the
   `section--image` class + this block + the image to revert) ---- */
.section--image {
  background-image: linear-gradient(
      rgba(0, 11, 64, 0.7),
      rgba(0, 7, 42, 0.8)
    ),
    url("images/flowsection.webp");
  background-size: cover;
  background-position: center;
}

/* frosted cards so the steps stay legible over the image */
.section--image .step {
  background: rgba(6, 14, 60, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.section__head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

.section__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-top: 22px;
  color: var(--text-muted);
}

/* two-column split (text + image) */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

/* how it works steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.step {
  position: relative;
  padding: 36px 28px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step__num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-bright);
  margin-bottom: 16px;
  display: block;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
}

/* closing line under a steps grid */
.steps__note {
  max-width: 720px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.7vw, 1.1rem);
}

/* capability + assurance lists (hairline-separated, accent markers) */
.capabilities,
.assurances {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.capabilities li,
.assurances li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.capabilities li::before,
.assurances li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
}

/* ----------------------------- footer ----------------------------- */

.site-footer {
  background: var(--bg-deep);
  color: var(--text);
  padding-block: 56px;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.footer__brand img {
  height: 30px;
  filter: brightness(0) invert(1);
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--accent-soft);
}

.footer__legal {
  width: 100%;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal a {
  color: var(--accent-soft);
  text-decoration: none;
}

.footer__legal a:hover {
  text-decoration: underline;
}

/* ----------------------------- scroll reveal ----------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* small stagger for grids */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ----------------------------- responsive ----------------------------- */

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split__media {
    order: -1;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 24px;
    background: rgba(0, 11, 64, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
    /* fully hidden when closed — opacity/visibility guarantee no peek
       regardless of the dropdown's height; transform keeps the slide */
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.25s ease, visibility 0s linear 0.3s;
    border-bottom: 1px solid var(--border);
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.3s ease, opacity 0.25s ease, visibility 0s;
  }

  .nav__links a {
    color: var(--text);
    padding: 12px 8px;
    border-radius: 10px;
  }

  .nav__links a:not(.btn):hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-soft);
  }

  .nav__links a.btn {
    text-align: center;
    margin-top: 6px;
  }

  /* animate toggle into an X */
  .nav__toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ----------------------------- reduced motion ----------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__scroll {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Contact section (#contact on index.html)
   ============================================================ */

/* heading + lead sit above the panel, centered with it */
.contact-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 52px);
  text-align: center;
}

.contact-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

/* keep the form a comfortable, readable width (centered) */
.contact-panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
}

/* forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* name/brand and email/brand-link pair up on wider screens */
.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.field .req {
  color: var(--accent-soft);
}

.field .opt {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.82rem;
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(0, 7, 42, 0.45);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

/* keep the dark field look when the browser autofills (Chrome/Safari force a
   light background via :-webkit-autofill that a normal `background` can't beat) */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field textarea:-webkit-autofill,
.field textarea:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--text);
  /* #060f3b = the composited color of a normal field (rgba(0,7,42,.45) over
     the card), so autofilled fields look identical to manually-typed ones */
  -webkit-box-shadow: 0 0 0 1000px #060f3b inset;
  caret-color: var(--text);
  transition: background-color 9999s ease 0s;
}

.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 3px rgba(136, 0, 255, 0.35),
    0 0 0 1000px #060f3b inset;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(136, 0, 255, 0.35);
}

.contact-form .btn {
  margin-top: 6px;
  align-self: flex-start;
}

.contact-form .btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* honeypot — hidden from real users */
.hp {
  display: none !important;
}

.form-status {
  margin: 0;
  color: #ff8a8a;
  font-size: 0.92rem;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}
