/*
 * Internet Ventures — version 2
 * Static HTML/CSS implementation of the Subframe "Company Webpage" design.
 * Dark theme, Figtree typeface, responsive (mobile breakpoint: max 767px).
 */

:root {
  --black: #000000;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 24px calc(env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100svh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header ---------- */
.header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  height: 30px;
  width: auto;
  display: block;
}

.header__contact {
  font-size: 15px;
  font-weight: 500;
  line-height: 23px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s ease;
}

.header__contact:hover {
  color: var(--white);
}

/* ---------- Eyebrow / section labels ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 64px;
  padding: 128px 0 96px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 1;
}

.hero__title {
  margin: 0;
  font-size: 72px;
  font-weight: 600;
  line-height: 74px;
  letter-spacing: -0.03em;
  max-width: 900px;
}

.hero__subtitle {
  margin: 0;
  font-size: 19px;
  font-weight: 400;
  line-height: 30px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- What We Build ---------- */
.build {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.build__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 640px;
}

.section-title {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: -0.02em;
}

.build__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--black);
  padding: 40px 32px;
}

.card__num {
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  color: rgba(255, 255, 255, 0.3);
}

.card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.card__desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Contact ---------- */
.contact {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 64px;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.contact__head {
  display: flex;
  width: 320px;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact__title {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.02em;
}

.contact__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  width: 100%;
}

.contact__row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.contact__row:last-child {
  border-bottom: 1px solid var(--line);
}

.contact__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.contact__value {
  font-size: 17px;
  font-weight: 400;
  line-height: 26px;
}

a.contact__value {
  transition: color 0.15s ease;
}

a.contact__value:hover,
a.contact__value:focus-visible {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer__logo {
  height: 22px;
  width: auto;
  display: block;
}

.footer__copy {
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Mobile bottom CTA (mobile only) ---------- */
.mobile-cta-bar {
  display: none;
}

/* ---------- Mobile (<=767px) ---------- */
@media (max-width: 767px) {
  /* Each section owns its horizontal padding so the sticky header,
     footer and CTA bar can bleed edge-to-edge. */
  .container {
    padding: 0;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }

  .brand__logo {
    height: 22px;
  }

  .header__contact {
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
  }

  .eyebrow {
    font-size: 11px;
    line-height: 16px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 48px 20px 56px;
  }

  .hero__title {
    font-size: 40px;
    line-height: 42px;
  }

  .hero__subtitle {
    font-size: 16px;
    line-height: 25px;
  }

  .build {
    gap: 24px;
    padding: 48px 20px;
  }

  .build__head {
    gap: 12px;
  }

  .section-title {
    font-size: 26px;
    line-height: 31px;
  }

  .build__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: none;
    border: none;
    border-top: 1px solid var(--line);
  }

  .card {
    padding: 28px 0;
    gap: 10px;
    border-bottom: 1px solid var(--line);
  }

  .card:last-child {
    border-bottom: none;
  }

  .card__num {
    font-size: 13px;
    line-height: 20px;
  }

  .card__title {
    font-size: 19px;
    line-height: 26px;
  }

  .card__desc {
    line-height: 23px;
  }

  .contact {
    flex-direction: column;
    gap: 24px;
    padding: 48px 20px;
  }

  .contact__head {
    width: 100%;
    gap: 12px;
  }

  .contact__title {
    font-size: 26px;
    line-height: 31px;
  }

  .contact__row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 20px 0;
  }

  .contact__label {
    font-size: 11px;
    line-height: 16px;
  }

  .contact__value {
    font-size: 16px;
    line-height: 24px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    padding: 32px 20px;
  }

  .footer__logo {
    height: 20px;
  }

  .footer__copy {
    font-size: 12px;
    line-height: 18px;
  }

  .mobile-cta-bar {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 20;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }

  .mobile-cta-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 9999px;
    background: var(--white);
    color: var(--black);
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
  }
}
