:root {
  --bg: #080d0b;
  --surface: #0d1512;
  --surface-2: #111a16;
  --surface-3: #15211c;
  --text: #f2f6f3;
  --muted: #9caaa2;
  --accent: #9bff00;
  --green: #29e46f;
  --turquoise: #00c88a;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(155, 255, 0, 0.34);
  --container: 1180px;
  --radius: 22px;
}

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

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: absolute;
  z-index: -1;
  top: 92px;
  right: 5vw;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(155, 255, 0, 0.07);
  border-radius: 50%;
  content: "";
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
p { margin: 0 0 1.15rem; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
h1 { max-width: 900px; font-size: clamp(2.7rem, 7.1vw, 6.35rem); font-weight: 760; }
.home-title { max-width: 820px; font-size: clamp(2.25rem, 4.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 4rem); font-weight: 730; }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 110px 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 15px; background: var(--accent); color: #071008; font-weight: 750; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 13, 11, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; width: 145px; }
.brand img { width: 100%; height: auto; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.site-header nav a, .site-footer nav a { color: var(--muted); font-size: 0.88rem; font-weight: 670; }
.site-header nav a:hover, .site-header nav a:focus-visible, .site-footer nav a:hover, .site-footer nav a:focus-visible { color: var(--accent); }

.hero { overflow: hidden; padding: clamp(86px, 11vw, 150px) 0 70px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 70px; }
.home-hero-grid { grid-template-columns: minmax(0, 1fr) 310px; align-items: start; }
.guide-hero { padding: clamp(54px, 7vw, 86px) 0 22px; border-bottom: 0; }
.guide-title { max-width: none; font-size: clamp(2.05rem, 3.6vw, 3.35rem); }
.guide-intro { width: 100%; max-width: none; margin: 22px 0 0; color: var(--muted); font-size: 1.05rem; }
.guide-intro a { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--turquoise); text-underline-offset: 4px; }
.guide-intro a:hover, .guide-intro a:focus-visible { color: var(--accent); }
.simple-guide { padding: 20px 0 110px; background: var(--bg); }
.guide-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; gap: 16px; }
.guide-block { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.guide-block h2 { margin-bottom: 12px; font-size: 1.15rem; letter-spacing: -0.02em; }
.icon-list { margin: 0; padding: 0; list-style: none; }
.icon-list li { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.icon-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.icon-list li::before { color: #5f8f72; content: "-"; font-size: 0.95rem; font-weight: 750; line-height: 1.35; }
.icon-list strong { color: var(--text); font-size: 0.98rem; line-height: 1.35; }
.icon-list p { width: 100%; max-width: none; margin: 6px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.icon-list a { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--turquoise); text-underline-offset: 3px; }
.icon-list a:hover, .icon-list a:focus-visible { color: var(--accent); }
.section-label { margin-bottom: 24px; color: var(--green); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-lead { max-width: 720px; margin: 34px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.65; }
.hero-lead a { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--turquoise); text-underline-offset: 4px; }
.hero-lead a:hover, .hero-lead a:focus-visible { color: var(--accent); }
.update-note { margin: 16px 0 0; color: #7f8c85; font-size: 0.78rem; }
.hero-panel { padding: 25px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.experience-card { align-self: start; }
.experience-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.experience-card a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.experience-card a:hover, .experience-card a:focus-visible { color: var(--text); }
.panel-kicker { margin-bottom: 18px; color: var(--muted); font-size: 0.73rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-panel ol { display: grid; margin: 0; padding: 0; gap: 13px; list-style: none; }
.hero-panel li { display: flex; align-items: center; gap: 12px; color: #d9e1dc; font-size: 0.88rem; }
.hero-panel li span { color: var(--turquoise); font-family: ui-monospace, monospace; font-size: 0.7rem; }
.platform-block { margin-top: 74px; }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.platform-card { display: grid; min-height: 138px; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; padding: 25px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.platform-card:hover { border-color: var(--border-bright); background: var(--surface-2); transform: translateY(-3px); }
.platform-card:focus-visible, .button:focus-visible, .copy-button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.platform-index { color: var(--turquoise); font-family: ui-monospace, monospace; font-size: 0.67rem; }
.platform-card strong, .platform-card small { display: block; }
.platform-card strong { margin-bottom: 5px; font-size: 1.18rem; letter-spacing: -0.02em; }
.platform-card small { color: var(--muted); font-size: 0.78rem; }
.platform-fact { margin-top: 4px; color: #7f8c85; font-size: 0.72rem; }
.external-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--accent); }
.intro-grid { display: grid; grid-template-columns: 1.3fr 0.8fr; align-items: center; gap: clamp(50px, 9vw, 120px); }
.featured-guide-section { border-block: 1px solid var(--border); background: var(--surface); }
.featured-guide-section .intro-grid { grid-template-columns: minmax(0, 1fr); }
.featured-guide-section .intro-grid > div { width: 100%; }
.featured-guide-section .intro-grid > div > p:not(.section-label) { max-width: none; }
.intro-grid > div > p:not(.section-label) { max-width: 680px; color: #c1cbc5; }
.intro-grid h2 { margin-bottom: 34px; }
.more-options-section { border-bottom: 1px solid var(--border); }
.more-options-section h2 { max-width: 760px; margin-bottom: 30px; }
.more-options-section p:not(.section-label) { max-width: 800px; color: #c1cbc5; }
.notice-card { display: flex; gap: 20px; padding: 30px; border: 1px solid var(--border-bright); border-radius: var(--radius); background: var(--surface); }
.notice-icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--accent); color: #071008; font-weight: 900; }
.notice-card h3 { margin: 6px 0 18px; }
.notice-card p { color: var(--muted); font-size: 0.92rem; }
.notice-card p:last-child { margin-bottom: 0; color: var(--text); }

.tutorial-section { background: var(--surface); }
.section-heading { max-width: 760px; margin-bottom: 60px; }
.section-heading h2 { margin-bottom: 18px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.steps { position: relative; display: grid; gap: 16px; }
.steps::before { position: absolute; top: 70px; bottom: 70px; left: 45px; width: 1px; background: rgba(155, 255, 0, 0.18); content: ""; }
.step-card { position: relative; z-index: 1; display: grid; grid-template-columns: 90px minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.guide-page .tutorial-section { padding-top: 34px; }
.guide-page .step-card { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
.guide-page .step-card:first-child { border-top: 1px solid var(--border); }
.guide-page .step-content { max-width: none; width: 100%; }
.guide-page .step-number::before { border-color: var(--surface); }
.step-number { display: flex; justify-content: center; padding-top: 38px; color: var(--accent); font-family: ui-monospace, monospace; font-size: 0.8rem; font-weight: 700; }
.step-number::before { position: absolute; top: 39px; left: 42px; width: 7px; height: 7px; border: 2px solid var(--bg); border-radius: 50%; background: var(--accent); content: ""; }
.step-content { max-width: 940px; padding: 36px 42px 38px 14px; }
.step-content h3 { margin-bottom: 15px; }
.step-content > p { color: var(--muted); }
.step-card-small .step-content { max-width: 800px; }
.check-list { display: grid; margin: 22px 0; padding: 0; gap: 10px; list-style: none; }
.check-list li { position: relative; padding-left: 26px; color: #cad3ce; }
.check-list li::before { position: absolute; top: 0.54rem; left: 1px; width: 8px; height: 8px; border: 1px solid var(--green); border-radius: 2px; content: ""; }
.check-list.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 7px; color: var(--accent); font-size: 0.88rem; font-weight: 750; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.inline-warning, .callout-line { margin-top: 25px; padding: 18px 20px; border-left: 2px solid var(--accent); background: var(--surface-2); color: #dbe4de; font-size: 0.9rem; }
.inline-warning strong { display: block; margin-bottom: 3px; color: var(--accent); }
.code-box { display: flex; max-width: 510px; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 16px 18px 16px 22px; border: 1px dashed rgba(155, 255, 0, 0.38); border-radius: 14px; background: var(--surface-2); }
.code-box small, .code-box code { display: block; }
.code-box small { margin-bottom: 2px; color: var(--muted); font-size: 0.67rem; text-transform: uppercase; }
.code-box code { color: var(--accent); font-family: ui-monospace, monospace; font-size: 1.2rem; font-weight: 800; letter-spacing: 0.1em; }
.copy-button { padding: 10px 15px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-3); color: var(--text); font: inherit; font-size: 0.78rem; font-weight: 720; cursor: pointer; }
.copy-button:hover { border-color: var(--border-bright); color: var(--accent); }
.copy-status { min-height: 1.5em; margin: 7px 0 0; color: var(--green) !important; font-size: 0.76rem; }
.table-wrap { overflow-x: auto; margin-top: 27px; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 670px; font-size: 0.85rem; }
th, td { padding: 17px 20px; border-bottom: 1px solid var(--border); text-align: left; }
th { background: var(--surface-2); color: var(--muted); font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td:last-child { color: var(--muted); }
.checkbox { display: block; width: 16px; height: 16px; border: 1px solid #627069; border-radius: 3px; }
.table-note { margin: 16px 0 0 !important; font-size: 0.78rem; }

.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.benefit-grid article { min-height: 240px; padding: 25px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.benefit-icon { display: flex; color: var(--turquoise); }
.benefit-icon svg { width: 26px; height: 26px; }
.benefit-index { display: block; margin-top: 16px; color: var(--turquoise); font-family: ui-monospace, monospace; font-size: 0.67rem; }
.benefit-grid h3 { margin: 18px 0 15px; font-size: 1.2rem; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.calculation { display: grid; grid-template-columns: 1fr 0.8fr; gap: 20px 70px; margin-top: 70px; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--border-bright); border-radius: var(--radius); background: var(--surface); }
.calculation h3 { margin-bottom: 16px; font-size: clamp(1.6rem, 3vw, 2.7rem); }
.calculation p:not(.section-label) { max-width: 520px; color: var(--muted); }
.calculation dl { margin: 0; }
.calculation dl div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; color: var(--muted); }
.calculation dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.calculation .total { margin-top: 6px; padding-top: 15px; border-top: 1px solid var(--border); color: var(--text); font-weight: 750; }
.calculation .total dd { color: var(--accent); }
.calculation > small { grid-column: 2; color: #839189; font-size: 0.7rem; }

.faq-section { padding-top: 80px; border-top: 1px solid var(--border); background: var(--surface); }
.faq-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(55px, 10vw, 130px); }
.faq-heading { position: sticky; top: 120px; align-self: start; }
.faq-heading h2 { margin-bottom: 25px; }
.faq-heading > p:last-child { max-width: 390px; color: var(--muted); }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-weight: 680; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--accent); font-size: 1.4rem; transition: transform 160ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 690px; padding: 0 45px 23px 0; color: var(--muted); }

.bottom-cta { padding: 100px 0; text-align: center; }
.bottom-cta h2 { max-width: 900px; margin: 0 auto 21px; }
.bottom-cta > .container > p:not(.section-label) { color: var(--muted); }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 35px; }
.button { display: inline-flex; min-width: 180px; align-items: center; justify-content: space-between; gap: 35px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); font-size: 0.9rem; font-weight: 720; transition: border-color 160ms ease, color 160ms ease, transform 160ms ease; }
.button span { color: var(--accent); }
.button:hover { border-color: var(--border-bright); color: var(--accent); transform: translateY(-2px); }
.guide-button { min-width: 245px; margin-top: 16px; }

.site-footer { padding: 45px 0 30px; border-top: 1px solid var(--border); background: #060a08; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { width: 125px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 50px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border); color: #7f8c85; font-size: 0.7rem; }
.footer-bottom p { margin: 0; }
.footer-bottom p:first-child { max-width: 760px; }
.footer-bottom p:last-child { flex: 0 0 auto; }

@media (max-width: 920px) {
  .section { padding: 85px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .guide-columns { grid-template-columns: minmax(0, 1fr); }
  .hero-panel { max-width: 520px; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card { min-height: 110px; }
  .intro-grid, .faq-layout { grid-template-columns: 1fr; }
  .notice-card { max-width: 650px; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-grid article { min-height: 210px; }
  .faq-heading { position: static; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: 0.72rem; }
  .brand { width: 110px; }
  .hero { padding-top: 70px; }
  .hero-lead { margin-top: 25px; }
  .platform-block { margin-top: 50px; }
  .step-card { grid-template-columns: 52px minmax(0, 1fr); }
  .step-number { padding-top: 30px; font-size: 0.7rem; }
  .step-number::before { top: 31px; left: 24px; }
  .steps::before { left: 27px; }
  .step-content { padding: 28px 20px 31px 5px; }
  .check-list.compact { grid-template-columns: 1fr; }
  .benefit-grid, .calculation { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: auto; }
  .calculation { gap: 22px; }
  .calculation > small { grid-column: 1; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .site-footer nav { flex-wrap: wrap; gap: 12px 22px; }
}

@media (max-width: 420px) {
  h1 { font-size: 2.55rem; }
  .header-inner { min-height: 70px; }
  .site-header nav a { font-size: 0.7rem; }
  .platform-card { min-height: 104px; padding: 20px 17px; }
  .platform-index { display: none; }
  .notice-card { padding: 24px 20px; }
  .step-card { grid-template-columns: 42px minmax(0, 1fr); }
  .step-number::before { left: 19px; }
  .steps::before { left: 22px; }
  .step-content { padding-right: 16px; }
  .code-box { align-items: stretch; flex-direction: column; }
  .copy-button { width: 100%; }
  .cta-buttons, .button { width: 100%; }
  .simple-guide { padding-bottom: 80px; }
  .guide-block { padding: 22px 18px; }
}

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