* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --ground: #000000;
  --surface: #0c0b0a;
  --surface-raised: #14110d;
  --surface-soft: #1a1510;
  --ink: #f4eee3;
  --ink-secondary: #aaa49a;
  --ink-faint: #777168;
  --amber: #e3a455;
  --amber-light: #ffd98a;
  --amber-dark: #8e4f17;
  --blue: #6477ff;
  --line: rgba(244, 238, 227, 0.13);
  --line-strong: rgba(227, 164, 85, 0.32);
  --shadow: rgba(227, 128, 32, 0.2);
  --page: 1160px;
  --reading: 760px;
  --radius: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--amber-light);
  text-underline-offset: 3px;
}

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

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--amber-light);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 40px), var(--page));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.28em;
  text-decoration: none;
}

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

.mini-flame,
.hero-flame,
.phone-flame {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 16px rgba(227, 128, 32, 0.58));
}

.mini-flame {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #000 url("/assets/tratak-icon.png") center / cover no-repeat;
  filter: none;
}

.hero-flame {
  width: 116px;
  height: 166px;
  filter: drop-shadow(0 0 46px rgba(227, 128, 32, 0.72));
}

.phone-flame {
  width: 72px;
  height: 108px;
  filter: drop-shadow(0 0 32px rgba(227, 128, 32, 0.7));
}

.hero-flame::before,
.phone-flame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 68% 32% 62% 38% / 82% 38% 62% 18%;
  background: radial-gradient(circle at 52% 64%, #fffbe8 0 10%, #ffe58e 28%, #f59b2f 56%, #c75713 76%, transparent 77%);
  transform: rotate(8deg);
}

.hero-flame::after,
.phone-flame::after {
  content: "";
  position: absolute;
  left: 28%;
  right: 21%;
  bottom: -1%;
  height: 25%;
  border-radius: 50% 50% 42% 42%;
  background: radial-gradient(ellipse at 50% 100%, #1e2a8e 0 23%, #5d73ff 45%, rgba(79, 95, 255, 0.12) 74%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--ink);
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 72px;
  padding-block: 88px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 280;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 610px;
  margin-top: 28px;
  color: var(--ink-secondary);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(227, 164, 85, 0.2), rgba(227, 164, 85, 0.07));
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  border-color: var(--amber);
  color: var(--ink);
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink-secondary);
}

.device-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.device-stage::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 87, 19, 0.25), rgba(0, 0, 0, 0) 69%);
}

.phone {
  position: relative;
  width: 270px;
  height: 535px;
  overflow: hidden;
  border: 1px solid rgba(244, 238, 227, 0.2);
  border-radius: 48px;
  background: #020100;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.75), 0 0 90px var(--shadow);
}

.phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: #111;
  transform: translateX(-50%);
}

.phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 54px 24px 28px;
}

.phone-guidance {
  margin-bottom: 68px;
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.phone-flame-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.phone-flame-wrap::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 92, 21, 0.25), transparent 69%);
}

.phone-flame-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 180px;
  height: 250px;
}

.phone-flame-wrap::after {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 18px;
  width: 150px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(235, 135, 43, 0.22), transparent 70%);
  filter: blur(8px);
}

.phone-caption {
  margin-top: 18px;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  padding: 24px;
  text-align: center;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.trust-item span {
  color: var(--ink-faint);
  font-size: 13px;
}

.section {
  padding-block: 96px;
}

.section.compact {
  padding-block: 72px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 44px;
}

.section-heading h2 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 320;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.section-heading p {
  margin-top: 16px;
  color: var(--ink-secondary);
  font-size: 18px;
}

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

.card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
}

.card-number {
  color: var(--amber);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.card h3 {
  margin-top: 46px;
  font-size: 20px;
  font-weight: 650;
}

.card p {
  margin-top: 10px;
  color: var(--ink-secondary);
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.feature {
  min-height: 200px;
  padding: 32px;
  background: var(--ground);
}

.feature h3 {
  font-size: 18px;
  font-weight: 650;
}

.feature p {
  margin-top: 10px;
  color: var(--ink-secondary);
  font-size: 14px;
}

.safety-callout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  padding: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(142, 79, 23, 0.2), rgba(12, 11, 10, 0.96));
}

.safety-callout h2 {
  font-size: 32px;
  font-weight: 380;
  line-height: 1.15;
}

.safety-callout p,
.safety-callout li {
  color: var(--ink-secondary);
}

.safety-callout ul {
  padding-left: 20px;
}

.page-hero {
  padding-block: 76px 54px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% -30%, rgba(199, 87, 19, 0.23), transparent 57%);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.page-hero p {
  max-width: 660px;
  margin: 16px auto 0;
  color: var(--ink-secondary);
}

.updated {
  color: var(--ink-faint) !important;
  font-size: 13px;
}

.prose {
  width: min(calc(100% - 40px), var(--reading));
  margin-inline: auto;
  padding-block: 64px 96px;
}

.prose h2 {
  margin: 48px 0 14px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.25;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.prose p,
.prose li {
  color: var(--ink-secondary);
}

.prose p + p {
  margin-top: 16px;
}

.prose ul,
.prose ol {
  margin: 14px 0 20px;
  padding-left: 24px;
}

.prose li + li {
  margin-top: 8px;
}

.notice {
  margin-bottom: 32px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(142, 79, 23, 0.13);
}

.notice strong {
  color: var(--ink);
}

.faq-list {
  width: min(calc(100% - 40px), 860px);
  margin-inline: auto;
  padding-block: 56px 96px;
}

.faq-group + .faq-group {
  margin-top: 54px;
}

.faq-group h2 {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 650;
}

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

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

.faq-item summary {
  position: relative;
  padding: 20px 44px 20px 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 18px;
  color: var(--amber);
  font-size: 22px;
  font-weight: 350;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  max-width: 740px;
  padding: 0 44px 22px 0;
  color: var(--ink-secondary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.article-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.article-card:hover {
  border-color: var(--line-strong);
  color: inherit;
}

.article-meta {
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-card h2 {
  margin-top: auto;
  font-size: 26px;
  font-weight: 520;
  line-height: 1.2;
}

.article-card p {
  margin-top: 12px;
  color: var(--ink-secondary);
  font-size: 14px;
}

.article-byline {
  margin-top: 12px;
  color: var(--ink-faint);
  font-size: 13px;
}

.source-list {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card a {
  font-size: 20px;
  font-weight: 650;
}

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

.footer-inner {
  padding-block: 54px 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 44px;
}

.footer-brand p {
  max-width: 290px;
  margin-top: 16px;
  color: var(--ink-faint);
  font-size: 13px;
}

.footer h2 {
  margin-bottom: 14px;
  color: var(--ink-secondary);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer ul {
  list-style: none;
}

.footer li + li {
  margin-top: 8px;
}

.footer a {
  color: var(--ink-secondary);
  font-size: 13px;
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 12px;
}

.error-page {
  min-height: calc(100vh - 69px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

.error-page h1 {
  font-size: 80px;
  font-weight: 250;
}

.error-page p {
  margin: 12px auto 28px;
  color: var(--ink-secondary);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 72px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-copy {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .device-stage {
    min-height: 540px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 190px;
  }

  .card h3 {
    margin-top: 30px;
  }

  .safety-callout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 28px), var(--page));
  }

  .nav-inner {
    min-height: 62px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 12px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero {
    padding-block: 58px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .device-stage {
    min-height: 470px;
    transform: scale(0.88);
    margin-block: -28px;
  }

  .trust-grid,
  .feature-grid,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding-block: 70px;
  }

  .safety-callout {
    padding: 28px;
  }

  .page-hero {
    padding-block: 54px 40px;
  }

  .prose {
    width: min(calc(100% - 32px), var(--reading));
    padding-block: 44px 72px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
