/*
 * Glow Tiles: components
 * Needs tokens.css first. Every class starts with "gt-" so it can sit next to any other CSS.
 */

/* Base */
.gt { margin: 0; background: var(--gt-night); color: var(--gt-white); font-family: var(--gt-sans); font-size: var(--gt-text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.gt *, .gt *::before, .gt *::after { box-sizing: border-box; }
.gt img, .gt svg { max-width: 100%; display: block; }
:where(.gt) a { color: inherit; }
.gt-container { width: min(100% - 40px, var(--gt-container)); margin-inline: auto; }
.gt-narrow { width: min(100% - 40px, var(--gt-narrow)); margin-inline: auto; }
.gt-center { text-align: center; }
.gt-center .gt-lead { margin-inline: auto; }

/* Sections: night is the default, coal for a lifted band, paper for the one light band */
.gt-section { padding-block: var(--gt-section); }
.gt-section--coal { background: var(--gt-coal-2); }
.gt-section--paper { background: var(--gt-paper); color: var(--gt-ink); }
.gt-section--paper .gt-lead { color: var(--gt-ink-soft); }
.gt-section--fade { background: linear-gradient(180deg, var(--gt-night) 0%, var(--gt-coal-2) 100%); }

/* Type: heavy rounded display, never thin; friendly Figtree for everything else */
.gt-hero-title, .gt-h2, .gt-h3 { margin: 0; font-family: var(--gt-display); color: inherit; }
.gt-hero-title { font-size: var(--gt-text-hero); font-weight: 800; letter-spacing: var(--gt-tracking-hero); line-height: 1.02; text-shadow: var(--gt-glow-text); }
.gt-h2 { font-size: var(--gt-text-h2); font-weight: 800; letter-spacing: -.015em; line-height: 1.06; }
.gt-h3 { font-size: var(--gt-text-h3); font-weight: 700; line-height: 1.2; }
.gt-section--paper .gt-hero-title { text-shadow: none; }
.gt-lead { max-width: 660px; margin: 18px 0 0; color: var(--gt-soft); font-size: var(--gt-text-lead); font-weight: 500; line-height: 1.38; }
.gt-hero .gt-lead { color: var(--gt-white); }
.gt-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--gt-amber); font-family: var(--gt-display); font-size: var(--gt-text-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gt-eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--gt-tile-warm); transform: rotate(12deg); box-shadow: var(--gt-glow-tile); }
.gt-hot { color: var(--gt-coral); }
.gt-tag-lcd { color: var(--gt-violet); }
.gt-tag-oled { color: var(--gt-coral); }

/* Nav: thin black bar, links right, coral pill at the end */
.gt-nav { position: relative; z-index: 5; background: rgba(14, 13, 17, .92); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.gt-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; }
.gt-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--gt-display); font-size: 20px; font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.gt-logo__mark { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--gt-white); overflow: hidden; }
.gt-logo__mark::after { content: ""; position: absolute; inset: 5px 5px 5px -6px; border-radius: 50%; background: var(--gt-tile-warm); }
.gt-nav__links { display: flex; align-items: center; gap: 26px; font-size: var(--gt-text-small); font-weight: 600; }
.gt-nav__links a { text-decoration: none; color: var(--gt-white); }
.gt-nav__links a:hover { color: var(--gt-amber); }

/* Buttons: pills. Coral for the one main action, coal for the rest */
.gt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border: 0; border-radius: var(--gt-radius-pill); font-family: var(--gt-display); font-size: 17px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s var(--gt-ease), background .2s, box-shadow .2s; }
.gt-btn svg { width: 18px; height: 18px; }
.gt-btn:hover { transform: translateY(-1px); }
.gt-btn:active { transform: scale(.97); }
.gt-btn--primary { background: var(--gt-coral); color: #fff; box-shadow: 0 0 0 rgba(255, 84, 52, 0); }
.gt-btn--primary:hover { background: var(--gt-coral-dark); box-shadow: 0 0 28px rgba(255, 84, 52, .5); }
.gt-btn--coal { background: var(--gt-coal-3); color: var(--gt-white); }
.gt-btn--coal:hover { background: var(--gt-line); }
.gt-btn--ink { background: var(--gt-ink); color: var(--gt-white); }
.gt-btn--sm { padding: 9px 16px; font-size: 14px; }
.gt-btn--block { width: 100%; }
.gt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.gt-center .gt-actions { justify-content: center; }

/* Circle-arrow link: text, then a small violet disc with an arrow */
.gt-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--gt-text-small); text-decoration: none; }
.gt-link::after { content: "\2192"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gt-violet); color: #fff; font-size: 13px; line-height: 1; transition: transform .2s var(--gt-ease), box-shadow .2s; }
.gt-link:hover::after { transform: translateX(3px); box-shadow: var(--gt-glow-violet); }

/* Hero: the product sits on a storm of tilted glowing tiles */
.gt-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: 56px 88px; background: radial-gradient(60% 55% at 50% 40%, #2a1612 0%, var(--gt-night) 75%); }
.gt-storm { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.gt-tile { position: absolute; width: var(--s, 70px); height: calc(var(--s, 70px) * .72); border-radius: var(--gt-radius-sm); background: var(--gt-tile-warm); box-shadow: var(--gt-glow-tile); transform: rotate(var(--r, 14deg)); opacity: var(--o, .9); }
.gt-tile--cool { background: var(--gt-tile-cool); box-shadow: var(--gt-glow-violet); }
.gt-tile--sun { background: var(--gt-tile-sun); }
.gt-tile--blur { filter: blur(6px); }
.gt-tile--far { filter: blur(2px); opacity: .45; }
.gt-hero__content { position: relative; text-align: center; }
.gt-hero__content .gt-lead { margin-inline: auto; }
.gt-hero__content .gt-actions { justify-content: center; }
.gt-side-note { position: absolute; top: 50%; right: 14px; z-index: 2; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; color: var(--gt-soft); font-size: var(--gt-text-micro); font-weight: 600; letter-spacing: .04em; }
.gt-side-note::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--gt-violet); }

/* Device: a drawn product. A dark rounded slab with a glowing ring and a small screen */
.gt-device { position: relative; width: min(100%, 620px); aspect-ratio: 2.2 / 1; margin: 0 auto 40px; border-radius: 44px; background: linear-gradient(180deg, #2b2a30 0%, #141317 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 40px 80px rgba(0, 0, 0, .6), var(--gt-glow); }
.gt-device__ring { position: absolute; top: 50%; left: 30%; width: 36%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, #1a1013 38%, transparent 39%), conic-gradient(from 200deg, var(--gt-amber), var(--gt-flame), var(--gt-rose), var(--gt-flame), var(--gt-amber)); box-shadow: 0 0 50px rgba(255, 106, 44, .55); }
.gt-device__ring::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 2px dashed rgba(255, 166, 59, .35); }
.gt-device__screen { position: absolute; top: 24%; right: 7%; width: 30%; height: 52%; display: grid; align-content: center; justify-items: center; gap: 4px; border-radius: 10px; background: #08080a; border: 1px solid #2f2d34; font-family: var(--gt-display); }
.gt-device__screen strong { font-size: clamp(18px, 4vw, 34px); font-weight: 800; color: var(--gt-amber); text-shadow: 0 0 18px rgba(255, 166, 59, .6); line-height: 1; }
.gt-device__screen span { color: var(--gt-faint); font-size: clamp(9px, 1.4vw, 12px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.gt-device__knob { position: absolute; bottom: 12%; width: 5%; aspect-ratio: 1; border-radius: 50%; background: #3a3940; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .4); }

/* Feature tiles: square charcoal panels with one big centered icon */
.gt-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.gt-tiles--3 { grid-template-columns: repeat(3, 1fr); }
.gt-feature { display: grid; justify-items: center; align-content: center; gap: 18px; min-height: 340px; padding: 40px 28px; border-radius: var(--gt-radius-xs); background: var(--gt-coal); text-align: center; }
.gt-feature__icon { width: 120px; height: 120px; }
.gt-feature p { margin: 0; max-width: 340px; font-size: 19px; font-weight: 500; }

/* Cards: coal panels for lists, stories and plans */
.gt-card { padding: 28px; border-radius: var(--gt-radius); background: var(--gt-coal); border: var(--gt-border); }
.gt-card p { color: var(--gt-soft); }
.gt-section--paper .gt-card { background: #fff; border-color: var(--gt-paper-line); }
.gt-section--paper .gt-card p { color: var(--gt-ink-soft); }

/* Badges and chips */
.gt-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--gt-radius-pill); background: var(--gt-coal-3); color: var(--gt-white); font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.gt-badge--hot { background: var(--gt-coral); color: #fff; }
.gt-badge--violet { background: var(--gt-violet); color: #fff; }
.gt-badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gt-lime); box-shadow: 0 0 8px var(--gt-lime); }

/* Toggle: two or three options in a coal pill */
.gt-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--gt-radius-pill); background: var(--gt-coal-2); }
.gt-toggle button { padding: 8px 18px; border: 0; border-radius: var(--gt-radius-pill); background: transparent; color: var(--gt-soft); font: 700 14px var(--gt-display); cursor: pointer; white-space: nowrap; }
.gt-toggle button[aria-pressed="true"] { background: var(--gt-white); color: var(--gt-ink); }

/* Compare: three model columns on paper, big price, a plain spec list */
.gt-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.gt-model { text-align: center; }
.gt-model__name { font-family: var(--gt-display); font-size: 20px; font-weight: 800; }
.gt-model__price { margin: 6px 0 2px; font-family: var(--gt-display); font-size: clamp(34px, 4vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.gt-model ul { margin: 22px 0 0; padding-left: 18px; text-align: left; font-size: var(--gt-text-small); line-height: 1.75; }
.gt-model .gt-btn { margin-top: 20px; }

/* Pricing plans (dark) */
.gt-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.gt-plan { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; border-radius: var(--gt-radius); background: var(--gt-coal); border: var(--gt-border); }
.gt-plan--hot { position: relative; border-color: var(--gt-coral); box-shadow: var(--gt-glow); }
.gt-plan__price { font-family: var(--gt-display); font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.gt-plan__price small { color: var(--gt-soft); font-family: var(--gt-sans); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.gt-plan ul { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; font-size: var(--gt-text-small); }
.gt-plan li { display: flex; gap: 10px; }
.gt-plan li::before { content: "\2713"; color: var(--gt-lime); font-weight: 800; }
.gt-plan .gt-btn { margin-top: auto; }

/* FAQ */
.gt-faq { border-top: var(--gt-border); }
.gt-faq details { padding: 20px 0; border-bottom: var(--gt-border); }
.gt-faq summary { display: flex; justify-content: space-between; gap: 16px; font-family: var(--gt-display); font-size: 19px; font-weight: 700; list-style: none; cursor: pointer; }
.gt-faq summary::-webkit-details-marker { display: none; }
.gt-faq summary::after { content: "+"; color: var(--gt-coral); font-size: 24px; line-height: 1; }
.gt-faq details[open] summary::after { content: "\2212"; }
.gt-faq p { margin: 12px 0 0; color: var(--gt-soft); }

/* Forms */
.gt-form { display: grid; gap: 18px; }
.gt-field { display: grid; gap: 8px; }
.gt-label { font-size: var(--gt-text-small); font-weight: 600; }
.gt-input, .gt-select { width: 100%; padding: 14px 16px; border: 1px solid var(--gt-line); border-radius: var(--gt-radius-sm); background: var(--gt-coal-2); color: var(--gt-white); font: 500 16px var(--gt-sans); }
.gt-input::placeholder { color: var(--gt-faint); }
.gt-input:focus, .gt-select:focus { outline: none; border-color: var(--gt-violet); box-shadow: 0 0 0 3px rgba(157, 99, 255, .3); }
.gt-hint { color: var(--gt-faint); font-size: var(--gt-text-micro); }
.gt-check { display: flex; align-items: flex-start; gap: 10px; color: var(--gt-soft); font-size: var(--gt-text-small); }
.gt-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gt-coral); }
.gt-choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gt-choice label { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--gt-line); border-radius: var(--gt-radius-sm); background: var(--gt-coal-2); cursor: pointer; }
.gt-choice label:has(input:checked) { border-color: var(--gt-coral); box-shadow: 0 0 22px rgba(255, 84, 52, .25); }
.gt-choice input { position: absolute; opacity: 0; }
.gt-choice strong { font-family: var(--gt-display); font-size: 17px; }
.gt-choice span { color: var(--gt-soft); font-size: var(--gt-text-micro); }

/* Article */
.gt-article { font-size: 19px; line-height: 1.72; }
.gt-article h2 { margin: 48px 0 12px; font-family: var(--gt-display); font-size: 30px; font-weight: 800; line-height: 1.15; }
.gt-article p { margin: 0 0 22px; color: #dcd8e2; }
.gt-article a { color: var(--gt-amber); text-underline-offset: 3px; }
.gt-article ul { margin: 0 0 22px; padding-left: 22px; color: #dcd8e2; }
.gt-article li { margin-bottom: 8px; }
.gt-quote { margin: 36px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--gt-coral); font-family: var(--gt-display); font-size: 26px; font-weight: 700; line-height: 1.3; }
.gt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--gt-soft); font-size: var(--gt-text-small); }
.gt-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gt-tile-cool); color: #fff; font-family: var(--gt-display); font-weight: 800; }
.gt-figure { position: relative; overflow: hidden; margin: 36px 0; aspect-ratio: 16 / 8; border-radius: var(--gt-radius); background: radial-gradient(60% 70% at 50% 50%, #2a1612 0%, var(--gt-coal) 80%); }
.gt-figure figcaption { position: absolute; left: 16px; bottom: 12px; color: var(--gt-soft); font-size: var(--gt-text-micro); }

/* Stat strip */
.gt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gt-stat strong { display: block; font-family: var(--gt-display); font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1; color: var(--gt-amber); text-shadow: 0 0 24px rgba(255, 166, 59, .35); }
.gt-stat span { display: block; margin-top: 8px; color: var(--gt-soft); font-size: var(--gt-text-small); }

/* Footer */
.gt-footer { padding-block: 56px 40px; background: #08080a; color: var(--gt-soft); font-size: var(--gt-text-small); }
.gt-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.gt-footer h4 { margin: 0 0 12px; color: var(--gt-white); font-family: var(--gt-display); font-size: 15px; font-weight: 700; }
.gt-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gt-footer a { text-decoration: none; }
.gt-footer a:hover { color: var(--gt-white); }
.gt-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: var(--gt-border); color: var(--gt-faint); font-size: var(--gt-text-micro); }

/* Responsive */
@media (max-width: 860px) {
  .gt-nav__links a:not(.gt-btn) { display: none; }
  .gt-tiles, .gt-tiles--3, .gt-compare, .gt-plans { grid-template-columns: 1fr; }
  .gt-stats { grid-template-columns: repeat(2, 1fr); }
  .gt-footer__grid { grid-template-columns: 1fr 1fr; }
  .gt-feature { min-height: 260px; }
  .gt-side-note { display: none; }
  .gt-device { border-radius: 26px; }
  .gt-storm { opacity: .6; }
  .gt-storm .gt-tile { transform: rotate(var(--r, 14deg)) scale(.6); }
}
@media (max-width: 480px) {
  .gt-choice { grid-template-columns: 1fr; }
  .gt-btn { padding: 12px 20px; font-size: 16px; }
}
