@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --header-background: #0b0d14;
  --footer-background: #080a12;
  --content-background: #f7f7f5;
  --surface: #ffffff;
  --content-foreground: #161616;
  --muted-foreground: #5e6069;
  --line: #dcdcd7;
  --accent: #9186f6;
  --accent-dark: #6258cc;
  --site-header-height: 62px;
  --brand-text-size: 28px;
  --content-width: 760px;
  --site-width: 1120px;
  --body-font: "Inter", Arial, Helvetica, "Segoe UI", sans-serif;
  --brand-font: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--content-background);
  color: var(--content-foreground);
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--content-background);
  color: var(--content-foreground);
  font-family: var(--body-font);
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #4f46a8;
}

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

.site-header {
  position: relative;
  z-index: 20;
  height: var(--site-header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--header-background);
  color: #f7f7fb;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(1180px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
}

.site-brand,
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-family: var(--brand-font);
  font-size: var(--brand-text-size);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.site-brand:hover,
.footer-brand-link:hover {
  color: inherit;
}

.site-brand {
  letter-spacing: 0.01em;
}

.site-logo,
.footer-logo {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  background: transparent;
}

.site-logo {
  width: 44px;
  height: 44px;
}

.home-main,
.page-main {
  min-height: calc(100vh - var(--site-header-height));
}

.home-hero {
  border-bottom: 1px solid var(--line);
  background: var(--content-background);
}

.hero-shell {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto;
  padding: 92px 0 88px;
}

.hero-shell h1,
.page-heading h1 {
  margin: 0;
  color: var(--content-foreground);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero-shell h1 {
  max-width: 850px;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1.04;
}

.hero-shell h1::before,
.page-heading h1::before {
  display: block;
  width: 46px;
  height: 3px;
  margin-bottom: 27px;
  background: var(--accent);
  content: "";
}

.hero-copy {
  max-width: 760px;
  margin-top: 34px;
}

.hero-copy p,
.home-copy p,
.tool-card p,
.page-intro p,
.editorial-section p,
.content-list {
  font-size: 18px;
  line-height: 1.7;
}

.hero-copy p {
  margin: 0 0 17px;
  color: #33343a;
}

.hero-copy p:last-child {
  margin-bottom: 0;
}

.home-section {
  border-bottom: 1px solid var(--line);
  background: var(--content-background);
}

.home-section:nth-of-type(even) {
  background: var(--surface);
}

.section-shell {
  width: min(var(--site-width), calc(100% - 56px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-shell > h2,
.editorial-section h2 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.section-shell > h2 {
  margin-bottom: 31px;
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.15;
}

.home-copy {
  width: min(var(--content-width), calc(100% - 56px));
}

.home-copy p {
  margin: 0 0 20px;
}

.home-copy p:last-child {
  margin-bottom: 0;
}

.tool-card {
  position: relative;
  max-width: 820px;
  overflow: hidden;
  border: 1px solid #d1d1cc;
  border-radius: 12px;
  padding: 36px 38px 34px 42px;
  background: var(--surface);
}

.tool-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  content: "";
}

.tool-card h3 {
  margin: 0 0 19px;
  font-size: clamp(25px, 2.7vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tool-card p {
  max-width: 690px;
  margin: 0 0 17px;
}

.tool-card .tool-action {
  margin-top: 27px;
  margin-bottom: 0;
}

.tool-action a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  padding: 10px 17px;
  background: var(--accent);
  color: #11121a;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.tool-action a:hover {
  border-color: #7c70e8;
  background: #7c70e8;
  color: #0b0d14;
}

.content-list {
  margin: 4px 0 22px;
  padding: 0;
  list-style: none;
}

.content-list li {
  position: relative;
  margin: 0 0 11px;
  padding-left: 24px;
}

.content-list li::before {
  position: absolute;
  top: 0.76em;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.page-heading {
  border-bottom: 1px solid var(--line);
  background: var(--content-background);
}

.page-heading-inner {
  width: min(var(--content-width), calc(100% - 56px));
  margin: 0 auto;
  padding: 78px 0 58px;
}

.page-heading h1 {
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1.08;
}

.page-intro {
  margin-top: 30px;
}

.page-intro p {
  margin: 0 0 18px;
  color: #35363c;
}

.page-intro p:last-child {
  margin-bottom: 0;
}

.page-intro .last-updated {
  margin: 0 0 27px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.5;
}

.editorial-content {
  width: min(var(--content-width), calc(100% - 56px));
  margin: 0 auto;
  padding: 13px 0 75px;
}

.editorial-section {
  border-top: 1px solid var(--line);
  padding-top: 42px;
  margin-top: 42px;
}

.editorial-section:first-child {
  border-top: 0;
}

.editorial-section h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 2.8vw, 33px);
  line-height: 1.2;
}

.editorial-section p {
  margin: 0 0 19px;
}

.editorial-section p:last-child,
.editorial-section .content-list:last-child {
  margin-bottom: 0;
}

.contact-email {
  border-left: 3px solid var(--accent);
  padding: 15px 18px;
  background: #eeeeeb;
}

.site-footer {
  position: relative;
  z-index: 3;
  width: 100%;
  background: var(--footer-background);
  color: #d7dce5;
  font-family: var(--brand-font);
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 48px 32px 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(120px, 1fr));
  gap: 40px;
  align-items: start;
}

.footer-brand-link {
  color: #ffffff;
}

.footer-logo {
  width: 48px;
  height: 48px;
}

.footer-brand p {
  max-width: 230px;
  margin: 16px 0 0;
  color: #aeb6c4;
  font-size: 14px;
  line-height: 1.55;
}

.footer-column h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a,
.footer-column span {
  color: #bec5d0;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.footer-column a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--accent);
}

.footer-column [aria-current="page"] {
  color: var(--accent);
}

.footer-coming-soon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-column .coming-soon-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(145, 134, 246, 0.45);
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(145, 134, 246, 0.08);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-bottom {
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
}

.footer-bottom p {
  margin: 0;
  color: #929baa;
  font-size: 13px;
  line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) {
  .site-brand,
  .footer-brand-link {
    transition: opacity 150ms ease;
  }

  .site-brand:hover,
  .footer-brand-link:hover {
    opacity: 0.88;
  }
}

@media (max-width: 768px), (orientation: landscape) and (max-width: 1024px) and (max-height: 600px) {
  :root {
    --site-header-height: 56px;
    --brand-text-size: 26px;
  }

  .site-header-inner {
    padding: 0 16px;
  }

  .site-brand {
    gap: 9px;
  }

  .site-logo {
    width: 40px;
    height: 40px;
  }

  .hero-shell {
    width: min(100% - 40px, 980px);
    padding: 66px 0 62px;
  }

  .hero-shell h1 {
    font-size: clamp(41px, 11vw, 58px);
  }

  .hero-shell h1::before,
  .page-heading h1::before {
    margin-bottom: 22px;
  }

  .section-shell,
  .home-copy,
  .page-heading-inner,
  .editorial-content {
    width: calc(100% - 40px);
  }

  .section-shell {
    padding: 58px 0;
  }

  .page-heading-inner {
    padding: 61px 0 48px;
  }

  .editorial-content {
    padding-bottom: 62px;
  }

  .footer-inner {
    padding: 42px 24px 22px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 44px;
  }
}

@media (max-width: 600px) {
  .hero-copy p,
  .home-copy p,
  .tool-card p,
  .page-intro p,
  .editorial-section p,
  .content-list {
    font-size: 17px;
    line-height: 1.68;
  }

  .tool-card {
    border-radius: 9px;
    padding: 29px 24px 28px 29px;
  }

  .tool-action a {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .editorial-section {
    margin-top: 35px;
    padding-top: 35px;
  }

  .footer-inner {
    padding: 40px 20px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    margin-top: 32px;
    text-align: center;
  }
}

@media (orientation: landscape) and (max-width: 1024px) and (max-height: 600px) {
  .hero-shell {
    padding: 48px 0 46px;
  }

  .section-shell {
    padding: 48px 0;
  }

  .page-heading-inner {
    padding: 48px 0 40px;
  }
}

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