/* ============================================================
   orLook — landing page stylesheet
   Faithful re-creation of the pen.dev export (orLook-v2),
   made responsive for tablet and mobile.
   ============================================================ */

:root {
  --ink: #1a1a1a;
  --text-2: #666666;
  --muted: #8a8a8a;
  --line: #e5e5e5;
  --line-dark: #333333;
  --text-dark-bg: #a3a3a3;
  --accent: #0066ff;
  --accent-hover: #0055d4;
  --bg: #ffffff;

  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", system-ui, sans-serif;

  /* 96px side padding at the 1440px design width, fluid below it */
  --pad-x: clamp(24px, 6.67vw, 96px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--line);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
  margin: 0;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  padding: 0;
  border: 0;
  cursor: pointer;
}

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

section {
  /* keep anchored sections clear of the 70px sticky nav */
  scroll-margin-top: 90px;
}

/* Shared building blocks ------------------------------------- */

.container {
  max-width: 1440px;
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.9px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn--light {
  background: #ffffff;
  color: var(--ink);
}

.btn--light:hover {
  background: #e9e9e9;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

.link-plain {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.link-plain--light {
  color: #ffffff;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.arrow-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

.arrow-link:hover svg {
  transform: translateX(3px);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 100; /* above the lang dropdown (30) and mobile menu */
  background: var(--bg); /* opaque so scrolling content never shows through */
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding-inline: var(--pad-x);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark__mark {
  width: 9px;
  height: 9px;
  background: var(--accent);
}

.wordmark__name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.7px;
  white-space: nowrap;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav__link:hover {
  color: var(--ink);
}

.nav__login {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.nav__login:hover {
  color: var(--accent);
}

/* Language switcher */

.lang {
  position: relative;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-2);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang__btn:hover {
  border-color: #c9c9c9;
  color: var(--ink);
}

.lang__btn svg {
  width: 14px;
  height: 14px;
}

.lang__btn .lang__chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}

.lang.open .lang__chevron {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 128px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
  display: none;
}

.lang.open .lang__menu {
  display: block;
}

.lang__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

.lang__option:hover {
  background: #f5f5f5;
  color: var(--ink);
}

.lang__option[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
}

.lang__option svg {
  width: 13px;
  height: 13px;
}

/* Hamburger (mobile only) */

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.menu-open .nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  padding: 104px var(--pad-x) 84px;
}

.hero__headline {
  font-size: clamp(44px, 5.7vw, 82px);
  line-height: 1.025;
  font-weight: 800;
  letter-spacing: -2.5px;
}

.hero__headline em {
  font-style: italic;
}

.hero__sub {
  max-width: 560px;
  font-size: 17px;
  line-height: 27px;
  font-weight: 500;
  color: var(--text-2);
}

.hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.hero__shot {
  width: 100%;
  aspect-ratio: 1248 / 650;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line);
  background: #fafafa;
}

/* ============================================================
   Formats strip
   ============================================================ */

.formats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.formats__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
  padding-inline: var(--pad-x);
  padding-block: 28px;
}

.formats__item {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--muted);
  white-space: nowrap;
}

.formats__sep {
  width: 1px;
  height: 12px;
  background: var(--line);
}

/* ============================================================
   Features
   ============================================================ */

.features {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 96px var(--pad-x);
}

.features__h2 {
  margin-top: 16px;
  font-size: clamp(32px, 3.06vw, 44px);
  line-height: 1.09;
  font-weight: 800;
  letter-spacing: -1.3px;
}

.feature {
  display: flex;
  gap: clamp(32px, 8.3vw, 120px);
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.feature__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.9px;
  color: var(--muted);
}

.feature__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.feature__desc {
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text-2);
  max-width: 760px;
}

/* ============================================================
   How it works
   ============================================================ */

.how {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 0 var(--pad-x) 96px;
}

.how__h2 {
  margin-top: 14px;
  font-size: clamp(30px, 2.78vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.2px;
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.1px;
  color: var(--muted);
}

.step__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.step__desc {
  font-size: 15px;
  line-height: 25px;
  font-weight: 500;
  color: var(--text-2);
}

/* ============================================================
   Security / privacy (dark section)
   ============================================================ */

.security {
  background: var(--ink);
  color: #ffffff;
  padding: 96px var(--pad-x);
}

.security .eyebrow {
  color: var(--muted);
}

.security__top {
  display: flex;
  gap: 96px;
}

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

.security__h2 {
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.4px;
}

.security__desc {
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
  color: var(--text-dark-bg);
  max-width: 620px;
}

.security__points {
  width: 440px;
  flex-shrink: 0;
}

.security__point {
  padding-block: 18px;
  border-top: 1px solid var(--line-dark);
  font-size: 15px;
  font-weight: 500;
  color: var(--line);
}

.security__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line-dark);
}

.security__prompt {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  font-style: italic;
}

.security__buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer {
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 64px var(--pad-x) 40px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
}

.footer__brand .wordmark {
  gap: 8px;
}

.footer__brand .wordmark__mark {
  width: 7px;
  height: 7px;
}

.footer__brand .wordmark__name {
  font-size: 20px;
  letter-spacing: -0.6px;
  font-weight: 800;
}

.footer__tagline {
  font-size: 13px;
  line-height: 21px;
  font-weight: 500;
  color: var(--text-2);
}

.footer__cols {
  display: flex;
  gap: 96px;
  flex-wrap: wrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--muted);
}

.footer__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__items a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.footer__items a:hover {
  color: var(--ink);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .hero {
    padding-top: 72px;
    padding-bottom: 64px;
    gap: 24px;
  }

  .features,
  .security {
    padding-block: 72px;
  }

  .how {
    padding-bottom: 72px;
  }

  .security__top {
    flex-direction: column;
    gap: 48px;
  }

  .security__points {
    width: 100%;
    max-width: 440px;
  }

  .footer__cols {
    gap: 56px;
  }
}

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

  .nav__right {
    display: none;
  }

  body.menu-open .nav__right {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px var(--pad-x) 32px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(26, 26, 26, 0.06);
  }

  body.menu-open .nav__right .lang {
    width: 100%;
  }

  body.menu-open .nav__right .lang__btn {
    justify-content: space-between;
    width: 100%;
  }

  body.menu-open .nav__right .lang__menu {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    min-width: 0;
  }

  .nav__inner {
    position: relative;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 56px;
    padding-bottom: 56px;
    gap: 22px;
  }

  .hero__headline {
    letter-spacing: -1.5px;
  }

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

  .hero__shot {
    aspect-ratio: 4 / 3;
  }

  .feature {
    flex-direction: column;
    gap: 12px;
    padding-block: 22px;
  }

  .feature__title {
    font-size: 22px;
  }

  .features {
    gap: 48px;
  }

  .how__steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .security {
    padding-block: 64px;
  }

  .security__cta {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 48px;
  }

  .footer__top {
    flex-direction: column;
    gap: 40px;
  }

  .footer__cols {
    gap: 40px;
  }
}
