:root {
  --background: #222321;
  --surface: #2c2d2a;
  --text: #f0f0e9;
  --muted: #b3b5aa;
  --accent: #d7f27d;
  --border: #484a44;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--background); }
.page { min-height: 100svh; display: flex; flex-direction: column; }
.wrap { width: min(1080px, calc(100% - 56px)); margin-inline: auto; }
.header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 800; letter-spacing: -.065em; }
.brand img { border-radius: 7px; }
.header-link, .footer a { display: inline-flex; gap: 13px; align-items: center; font-size: 14px; font-weight: 700; }
.header-link:hover, .footer a:hover, .repo-note a:hover, .button-text:hover { color: var(--accent); }
main { flex: 1; }
.hero { min-height: min(540px, calc(100svh - 210px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .8fr); align-items: center; gap: clamp(35px, 7vw, 100px); padding-block: 60px; }
h1 { max-width: 680px; margin: 0 0 22px; font-size: clamp(46px, 5vw, 66px); line-height: 1.08; letter-spacing: -.065em; font-weight: 800; }
.period { color: var(--accent); }
.intro { max-width: 500px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; }
.use-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; margin-top: 28px; font-size: clamp(17px, 1.8vw, 21px); letter-spacing: -.025em; }
.scramble-frame { display: inline-block; max-width: 100%; color: var(--accent); }
#rotating-use, #example-name { display: inline-block; font-family: Consolas, "Courier New", monospace; font-weight: 500; letter-spacing: -.045em; }
.scramble-glyph { opacity: .35; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 21px; margin-top: 39px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 50px; font-size: 14px; font-weight: 700; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { padding: 0 20px; border-radius: 4px; background: var(--accent); color: var(--background); }
.button-primary:hover { background: var(--text); }
.button-text { padding: 0 2px; }
.domain-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); animation: card-enter .8s .15s both, drift 7s 1s ease-in-out infinite; transition: border-color .25s; }
.domain-card:hover { border-color: var(--accent); }
.cycle-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--accent); transform-origin: left; animation: cycle var(--cycle-duration, 2600ms) linear infinite; opacity: .65; }
.domain-label { color: var(--muted); font-size: 14px; }
.domain-name { font-size: clamp(27px, 3vw, 38px); letter-spacing: -.045em; }
#example-name { display: block; min-height: 1.2em; }
.domain-suffix { display: block; color: var(--accent); font-size: .72em; font-family: Consolas, "Courier New", monospace; }
.domain-mark { position: absolute; right: 25px; bottom: 22px; color: var(--accent); font-size: 25px; transition: transform .25s; }
.domain-card:hover .domain-mark { transform: translate(3px, -3px); }
.repo-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid var(--border); }
.repo-note p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.repo-note a { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 14px; font-weight: 700; }
.footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer a { color: var(--text); font-size: 13px; }
.hero-content > * { animation: reveal .65s both; }
.hero-content .intro { animation-delay: .08s; }
.hero-content .use-line { animation-delay: .16s; }
.hero-content .actions { animation-delay: .24s; }
.header, .repo-note, .footer { animation: reveal .65s .1s both; }
.header-link i:last-child, .button i:last-child, .repo-note a i:last-child, .footer a i:last-child { display: inline-block; transition: transform .2s; }
a:hover > i:last-child { transform: translate(2px, -2px); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 4px; background: var(--accent); color: var(--background); font-weight: 700; }
.skip-link:focus { top: 12px; }
.about { max-width: 720px; padding-block: 8px 48px; }
.about h2 { margin: 0 0 14px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.04em; }
.about p { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.about strong { color: var(--accent); font-weight: 700; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-enter { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes cycle { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 75px 65px; gap: 55px; }
  .domain-card { width: min(100%, 560px); min-height: 210px; }
}
@media (max-width: 520px) {
  .wrap { width: min(100% - 36px, 1120px); }
  .header { min-height: 70px; }
  .hero { padding-block: 65px 55px; gap: 45px; }
  h1 { font-size: clamp(43px, 12vw, 58px); }
  .actions { align-items: flex-start; gap: 14px; }
  .button-primary { width: 100%; }
  .button-text { min-height: 38px; }
  .domain-card { min-height: 190px; padding: 22px; }
  .domain-name { font-size: clamp(23px, 6.8vw, 34px); }
  .repo-note { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer { padding-block: 20px; align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cycle-progress { display: none; }
}
