/* ISOXRent — landing page
   Grand touring design system: racing green, porcelain, white cards, brass accent.
   Tokens mirror @isox/design-system (src/styles/index.css). */

:root {
  --porcelain: hsl(40 24% 96.5%);
  --ink: hsl(168 30% 10%);
  --card: hsl(0 0% 100%);
  --border: hsl(44 14% 88%);
  --muted: hsl(42 18% 93.5%);
  --muted-fg: hsl(165 9% 40%);
  --secondary: hsl(158 18% 92.5%);

  --green: hsl(162 45% 16%);
  --green-hover: hsl(162 45% 21%);
  --green-deep: hsl(164 42% 11%);
  --green-deep-2: hsl(164 42% 13%);
  --green-deep-border: hsl(162 25% 18%);
  --sidebar-fg: hsl(150 15% 88%);
  --sidebar-muted: hsl(155 10% 58%);
  --mint: hsl(152 30% 72%);
  --brass: hsl(39 60% 46%);
  --chart-green: hsl(158 64% 33%);

  --radius: 0.625rem;
  --shadow-card: 0 1px 2px hsl(162 45% 16% / 0.05), 0 8px 24px -12px hsl(162 45% 16% / 0.12);
  --shadow-window:
    0 1px 0 hsl(162 45% 16% / 0.06),
    0 32px 80px -24px hsl(164 42% 11% / 0.35),
    0 12px 32px -16px hsl(164 42% 11% / 0.2);

  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum";
}

::selection { background: var(--green); color: var(--porcelain); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }

h1, h2 { font-family: var(--font-display); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

/* ── Brand ─────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 34px; width: auto; }

/* ── Eyebrow with brass needle ─────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.eyebrow__needle {
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--brass);
}

/* ── Nav ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: hsl(40 24% 96.5% / 0.85);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-fg);
}
.nav__links a { transition: color 0.15s ease; }
.nav__links a:hover { color: var(--green); }

/* ── Language switch ───────────────────────────────── */
.lang-switch { display: inline-flex; align-items: center; }
.lang-switch__select {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 28px 7px 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6f6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 16px;
}
.lang-switch__select:hover { background-color: var(--card); border-color: var(--muted-fg); }
.lang-switch__select:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(0.5px); }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.btn__arrow { width: 16px; height: 16px; transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateX(2px); }

.btn--primary { background: var(--green); color: var(--porcelain); }
.btn--primary:hover { background: var(--green-hover); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--card); border-color: var(--muted-fg); }

.btn--invert { background: var(--porcelain); color: var(--green-deep); }
.btn--invert:hover { background: #fff; }

.btn--sm { padding: 8px 14px; font-size: 13.5px; }
.btn--lg { padding: 14px 22px; font-size: 15px; }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, hsl(162 25% 78%) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 720px 400px at 50% 24%, #000 35%, transparent 78%);
  opacity: 0.5;
  pointer-events: none;
}
.hero__inner { position: relative; text-align: center; }
.hero .eyebrow { justify-content: center; }

.hero__title {
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--green-deep);
}
.hero__title-soft { color: hsl(162 14% 52%); }

.hero__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted-fg);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero__cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* ── macOS window ──────────────────────────────────── */
.macwin {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--green-deep);
  border: 1px solid var(--green-deep-border);
  box-shadow: var(--shadow-window);
  text-align: left;
  scroll-margin-top: 96px;
}
.macwin--section { margin-top: 8px; }

.macwin__bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
}
.macwin__lights { display: flex; gap: 8px; }
.macwin__light { width: 12px; height: 12px; border-radius: 999px; }
.macwin__light--r { background: #ff5f57; }
.macwin__light--y { background: #febc2e; }
.macwin__light--g { background: #28c840; }

.macwin__url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--sidebar-muted);
  background: hsl(0 0% 100% / 0.06);
  border: 1px solid hsl(0 0% 100% / 0.08);
  border-radius: 999px;
  padding: 4px 14px;
}
.macwin__url [data-path] { color: var(--sidebar-fg); }

.macwin__tabs {
  display: flex;
  gap: 4px;
  padding: 0 12px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.macwin__tabs::-webkit-scrollbar { display: none; }
.macwin__tabs [role="tab"] {
  position: relative;
  flex-shrink: 0;
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--sidebar-muted);
  padding: 8px 14px 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.macwin__tabs [role="tab"]::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 999px;
  background: var(--brass);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.macwin__tabs [role="tab"]:hover {
  color: var(--sidebar-fg);
  background: hsl(160 28% 17% / 0.6);
}
.macwin__tabs [role="tab"]:hover::before { opacity: 0.4; }
.macwin__tabs [role="tab"][aria-selected="true"] {
  color: #fff;
  background: hsl(160 28% 17%);
}
.macwin__tabs [role="tab"][aria-selected="true"]::before { opacity: 1; }
.macwin__tabs [role="tab"]:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: -2px;
}

.macwin__body {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--porcelain);
}
.macwin__body [role="tabpanel"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.macwin__body [role="tabpanel"].is-active { opacity: 1; }
.macwin__body [role="tabpanel"][hidden] { display: block; visibility: hidden; }
.macwin__body img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ── Sections ──────────────────────────────────────── */
.section { padding: 96px 0; }
.section--panel {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__title {
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 24ch;
  color: var(--green-deep);
}
.section__lede {
  font-size: 16px;
  color: var(--muted-fg);
  margin: 0 0 48px;
  max-width: 58ch;
}

/* ── Features grid ─────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.feature:hover {
  border-color: hsl(162 25% 70%);
  box-shadow: 0 1px 2px hsl(162 45% 16% / 0.06), 0 16px 40px -20px hsl(162 45% 16% / 0.25);
  transform: translateY(-2px);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--secondary);
  color: var(--green);
  margin-bottom: 18px;
}
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--green-deep);
}
.feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-fg);
}

/* ── Steps ─────────────────────────────────────────── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  background: var(--porcelain);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green);
  color: var(--porcelain);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--green-deep);
}
.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-fg);
}

/* ── FAQ ───────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 20px;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: hsl(162 25% 70%); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--green-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--green);
  font-weight: 500;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 6px; }
.faq details p {
  margin: 0;
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-fg);
  max-width: 62ch;
}

/* ── Closing CTA ───────────────────────────────────── */
.closing {
  background:
    radial-gradient(700px 360px at 50% -20%, hsl(162 35% 18% / 0.9), transparent 65%),
    var(--green-deep);
  color: #fff;
  padding: 112px 0;
}
.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.closing__logo { height: 48px; width: auto; }
.closing__title {
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
  max-width: 22ch;
}
.closing__title-soft {
  display: block;
  color: var(--mint);
  font-weight: 600;
}

/* ── Footer ────────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted-fg);
  background: var(--porcelain);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__logo { height: 28px; width: auto; }
.footer__meta { margin: 0; max-width: 52ch; }
.footer__contact {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__link {
  color: var(--ink);
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer__link:hover { color: var(--brass); }
.footer__social { display: inline-flex; align-items: center; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__inner { grid-template-columns: auto auto auto; justify-content: space-between; gap: 10px; }
  .nav__links { display: none; }
  .lang-switch__select { padding: 6px 24px 6px 10px; font-size: 12.5px; }

  .hero { padding: 56px 0 64px; }
  .hero__cta { margin-bottom: 48px; }
  .section { padding: 64px 0; }
  .closing { padding: 80px 0; }

  .features, .steps { grid-template-columns: 1fr; }

  .macwin { border-radius: 12px; }
  .macwin__url { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
