/* HYDRA · shared visual system. Structural markup and application contracts stay in HTML. */
:root {
  color-scheme: dark;
  --primary: #69d9ac;
  --primary-light: #9ce9cb;
  --primary-glow: rgba(105,217,172,.12);
  --bg-dark: #0a0a0c;
  --card-bg: #17171b;
  --card-border: rgba(255,255,255,.075);
  --text-main: #f5f5f7;
  --text-muted: #98989f;
  --site-ease: cubic-bezier(.16,1,.3,1);
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { background: var(--bg-dark); font-weight: 400; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body, body * { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
button, input, select, textarea { font: inherit; }
a { text-underline-offset: 4px; }
::selection { background: #69d9ac40; color: white; }
.bg-layer { background: radial-gradient(ellipse at 50% 0%, #202923 0%, #101113 36%, #0a0a0c 70%); background-attachment: scroll; }
.ambient-radial { display: none; }
nav { height: 72px; padding-inline: max(24px, calc((100vw - 1200px)/2)); background: rgba(16,16,19,.78); border-color: var(--card-border); backdrop-filter: blur(24px) saturate(130%); -webkit-backdrop-filter: blur(24px) saturate(130%); }
.logo-icon { background: #69d9ac; box-shadow: none; border-radius: 11px; color: #092519; }
.logo-text { font-size: 20px; font-weight: 650; letter-spacing: -.055em; }
.logo-green-dot, .title-green-dot { display: none; }
.nav-links a { font-size: 13px; color: #bcbcc2; font-weight: 450; }
.nav-links a:hover { color: white; }
.container, .dash-container { max-width: 1200px; padding-inline: 28px; }
.hero { padding: 128px 0 112px; text-align: center; }
.hero-title { max-width: 940px; margin-inline: auto; font-size: clamp(48px,7.6vw,96px); font-weight: 650; line-height: 1.04; letter-spacing: -.065em; text-shadow: none; }
.gradient-text { background: linear-gradient(120deg,#f5f5f7 10%,#a3d3bb 100%); -webkit-background-clip: text; background-clip: text; color: transparent; animation: none; }
.hero-desc { max-width: 580px; margin: 28px auto 0; color: var(--text-muted); font-size: 19px; line-height: 1.65; letter-spacing: -.025em; }
.hero-btns { margin-top: 36px; gap: 12px; }
:where(a, button, input, select, textarea, summary, [role=button]) { transition: color .4s var(--site-ease), background-color .4s var(--site-ease), border-color .4s var(--site-ease), box-shadow .4s var(--site-ease), transform .4s var(--site-ease), opacity .4s var(--site-ease); }
.btn-glow, .btn-secondary, .btn-plan, .btn-logout { min-height: 44px; border-radius: 999px; padding: 12px 24px; font-weight: 550; font-size: 14px; letter-spacing: -.015em; box-shadow: none; text-decoration: none; }
.btn-glow, .btn-plan-primary { background: var(--primary); color: #092519; border: 1px solid transparent; }
.btn-glow:hover, .btn-plan-primary:hover { background: #96e8c6; box-shadow: 0 6px 24px #69d9ac18; transform: translateY(-2px); }
.btn-secondary, .btn-plan-normal { background: #ffffff09; border: 1px solid #ffffff18; color: var(--text-main); }
.btn-secondary:hover, .btn-plan-normal:hover { background: #ffffff12; border-color: #ffffff30; transform: translateY(-2px); }
:where(button, a, input, select, textarea, summary, [role=button]):focus-visible { outline: 3px solid #9ce9cb; outline-offset: 4px; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.section-header { margin-bottom: 36px; }
.section-tag { color: var(--primary); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.section-title { margin-top: 12px; font-size: clamp(30px,4vw,48px); font-weight: 600; letter-spacing: -.045em; line-height: 1.12; }
.bento-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 112px; }
.glass-panel, .glass-box, .stat-card, .pricing-card, .faq-item { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 28px; box-shadow: 0 8px 32px #00000014; backdrop-filter: none; -webkit-backdrop-filter: none; transition: border-color .4s var(--site-ease), background-color .4s var(--site-ease), transform .4s var(--site-ease); }
.bento-card { min-height: 288px; padding: 36px; }
.bento-card-large { grid-column: span 2; background: radial-gradient(ellipse at 100% 0%,#26382e88,transparent 70%),var(--card-bg); }
.glass-panel:hover, .stat-card:hover, .pricing-card:hover { border-color: #ffffff20; transform: translateY(-3px); box-shadow: 0 12px 36px #00000020; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; border: 0; color: var(--primary); background: #69d9ac12; margin-bottom: 28px; }
.card-title { font-size: 23px; font-weight: 600; letter-spacing: -.035em; line-height: 1.25; }
.card-desc { margin-top: 12px; font-size: 15px; line-height: 1.75; color: var(--text-muted); }
.feature-tag, .ac-badge, .tier-duration { border: 1px solid #ffffff0b; background: #ffffff06; color: #b9b9c1; border-radius: 8px; font-size: 11px; font-weight: 450; }
.ac-bar { background: transparent; border: 0; gap: 24px; }
.pricing-section, .faq-section { margin-bottom: 112px; }
.pricing-grid { gap: 18px; align-items: stretch; }
.pricing-card { padding: 0; overflow: hidden; }
.pricing-card-content { padding: 36px 28px; gap: 28px; }
.pricing-card-bg-wrap { opacity: .1; }
.pricing-card .card-mc-bg { filter: grayscale(1); }
.pricing-card-featured { border-color: #69d9ac66; background: linear-gradient(160deg,#22362c,#17171b 65%); }
.featured-badge { background: var(--primary); color: #092519; box-shadow: none; font-size: 10px; letter-spacing: .06em; }
.tier-name { font-size: 18px; font-weight: 550; letter-spacing: -.025em; }
.price-val { font-size: 54px; font-weight: 600; letter-spacing: -.06em; }
.price-currency { color: var(--text-muted); font-size: 24px; }
.tier-divider { background: var(--card-border); }
.feature-item { font-size: 14px; color: #c5c5cc; }
.feature-check { color: var(--primary); }
.discord-wrap { padding: 40px; background: #17171b; border: 1px solid var(--card-border); border-radius: 28px; box-shadow: none; }
.discord-info h3 { font-weight: 600; letter-spacing: -.035em; }
.discord-info p { color: var(--text-muted); }
.faq-grid { gap: 12px; }
.faq-item { padding: 24px 28px; border-radius: 20px; }
.faq-item:hover { border-color: #ffffff20; }
.faq-question { font-size: 16px; font-weight: 550; letter-spacing: -.02em; }
.faq-answer { color: var(--text-muted); font-size: 14px; line-height: 1.8; }
footer { border-color: var(--card-border); color: var(--text-muted); padding: 36px 24px; font-size: 12px; }
.dash-container { padding-top: 52px; padding-bottom: 80px; }
.stats-grid { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 18px; margin-bottom: 36px; }
.stat-card { padding: 28px; }
.stat-label { text-transform: none; font-size: 13px; letter-spacing: 0; }
.stat-value { font-size: 34px; font-weight: 600; letter-spacing: -.045em; }
.stat-sub { font-size: 13px; }
.avatar { background: #69d9ac20; color: var(--primary); border-color: #69d9ac30; box-shadow: none; }
.tabs-nav { gap: 6px; padding: 6px; border: 1px solid var(--card-border); background: #ffffff04; border-radius: 16px; overflow-x: auto; }
.tab-btn { padding: 12px 22px; border-radius: 11px; font-size: 14px; color: var(--text-muted); white-space: nowrap; border: 0; }
.tab-btn.active { background: #ffffff10; color: white; box-shadow: 0 2px 6px #0002; }
.tab-btn:hover { color: white; background: #ffffff08; }
.glass-box { padding: 32px; }
.box-title { font-size: 24px; font-weight: 600; letter-spacing: -.04em; }
.box-desc { line-height: 1.7; color: var(--text-muted); }
.form-input, .form-select { min-height: 48px; padding: 12px 16px; background: #0f0f12; color: var(--text-main); border: 1px solid #ffffff18; border-radius: 12px; font-size: 15px; }
.form-input:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #69d9ac12; }
.toggle-card { background: #ffffff03; border: 1px solid var(--card-border); border-radius: 16px; padding: 20px; }
.toggle-card:hover { border-color: #ffffff25; }
.toggle-card input { accent-color: var(--primary); }
.toggle-info h4 { font-weight: 550; }
.build-console, .badge-mono, .console-line { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; }
.build-console { background: #0e0e11; border: 1px solid var(--card-border); border-radius: 16px; }
.custom-table { border-spacing: 0; border-collapse: separate; }
.custom-table th { color: var(--text-muted); font-weight: 500; text-transform: none; letter-spacing: 0; padding: 16px; }
.custom-table td { padding: 20px 16px; border-color: var(--card-border); font-size: 14px; }
.custom-table tr:hover td { background: #ffffff04; }
.modal-overlay { display: flex; opacity: 0; visibility: hidden; pointer-events: none; background: #0009; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 24px; overflow-y: auto; transition: opacity .25s ease,visibility .25s ease; }
.modal-overlay.open { display: flex; opacity: 1; visibility: visible; pointer-events: auto; }
.modal-box { background: #1c1c20; border: 1px solid #ffffff18; border-radius: 28px; box-shadow: 0 32px 100px #0008; padding: 36px; max-height: calc(100dvh - 48px); overflow-y: auto; margin: auto; }
.modal-close { border-radius: 50%; background: #ffffff09; color: #aaaab2; }
.site-ripple { display: none; }
.site-motion .site-reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--site-ease),transform .6s var(--site-ease); }
.site-motion .site-reveal.is-visible { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bento-card-large { grid-column: span 2; }
  .pricing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  nav { height: 64px; padding-inline: 18px; gap: 12px; }
  .logo-text { font-size: 17px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-glow { padding: 10px 14px; font-size: 12px; }
  .container, .dash-container { padding-inline: 18px; }
  .hero { padding: 80px 0; }
  .hero-desc { font-size: 17px; }
  .hero-btns { flex-wrap: wrap; }
  .bento-grid, .pricing-grid, .faq-grid, .toggle-grid { grid-template-columns: minmax(0,1fr); }
  .bento-card-large { grid-column: auto; }
  .bento-card { min-height: 250px; padding: 28px; }
  .section-title { font-size: 32px; }
  .bento-grid, .pricing-section, .faq-section { margin-bottom: 72px; }
  .glass-box, .modal-box { padding: 24px; }
  .discord-wrap { padding: 28px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .user-badge { display: none; }
  .stats-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .site-motion .site-reveal { opacity: 1; transform: none; }
}

.provider-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.provider-choice .btn-plan { margin: 0; padding-inline: 12px; }
.device-service .provider-choice { min-width: 180px; }
#providerNotice { margin: auto; padding: 28px; border: 1px solid #ffffff22; border-radius: 22px; background: #1c1c20; color: #f5f5f7; }
#providerNotice::backdrop { background: #0008; }
#providerNotice p, #modalSelectedPlan { margin: 12px 0; }
@media (max-width: 700px) { .device-service .provider-choice { grid-column: 1 / -1; } }

@keyframes hydra-enter {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .dash-container > .stats-grid, .tab-panel.active,
  .modal-overlay.open .modal-box, #providerNotice[open] {
    animation: hydra-enter .42s var(--site-ease) backwards;
  }
  .hero-copy > :nth-child(2) { animation-delay: 45ms; }
  .hero-copy > :nth-child(3) { animation-delay: 90ms; }
  .hero-copy > :nth-child(4) { animation-delay: 135ms; }
  .landscape img { animation: landscape-enter .95s var(--site-ease) backwards; }
  @keyframes landscape-enter {
    from { scale: 1.045; opacity: .55; }
    to { scale: 1; opacity: 1; }
  }
  .modal-overlay .modal-box { transition: scale .22s var(--site-ease); }
  .modal-overlay:not(.open) .modal-box { scale: .97; }
  .nav-links a, .tab-btn, .btn-plan, .btn-glow, .btn-secondary, .btn-logout,
  .modal-close, .faq-question {
    transition: scale .18s var(--site-ease), transform .3s var(--site-ease),
      background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  }
  :is(.tab-btn,.btn-plan,.btn-glow,.btn-secondary,.btn-logout,.modal-close):active { scale: .965; }
  .faq-item.active .faq-answer { animation: hydra-enter .28s var(--site-ease); }
  .custom-table tbody tr { transition: background-color .2s ease; }
}

.landing-page .faq-question {
  width: 100%; background: transparent; color: inherit; border: 0;
  text-align: left; padding: 0;
}
.landing-page .faq-answer {
  display: grid; grid-template-rows: 0fr; max-height: none; opacity: 0;
  transition: grid-template-rows .36s ease, opacity .28s ease, margin-top .36s ease;
}
.landing-page .faq-answer > div { min-height: 0; overflow: hidden; }
.landing-page .faq-item.active .faq-answer {
  grid-template-rows: 1fr; opacity: 1; max-height: none; animation: none;
}
@media (prefers-reduced-motion: no-preference) {
  .modal-overlay .modal-box {
    opacity: 0; translate: 0 14px; scale: .97;
    transition: translate .25s var(--site-ease), scale .25s var(--site-ease), opacity .22s ease;
  }
  .modal-overlay.open .modal-box { opacity: 1; translate: 0 0; scale: 1; animation: none; }
  #providerNotice {
    opacity: 0; translate: 0 12px;
    transition: opacity .2s, translate .25s, display .25s allow-discrete, overlay .25s allow-discrete;
  }
  #providerNotice[open] { opacity: 1; translate: 0 0; animation: none; }
  @starting-style { #providerNotice[open] { opacity: 0; translate: 0 12px; } }
}

.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; inset: auto 0 -7px; height: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--site-ease);
}
.nav-links a[aria-current="location"]::after { transform: scaleX(1); }
.landing-page .faq-question[aria-expanded="true"] { color: var(--primary); }
@media (prefers-reduced-motion: no-preference) {
  .landing-page .faq-answer { transition: grid-template-rows .52s ease-in-out, opacity .45s ease, margin-top .52s ease-in-out; }
  .landing-page .faq-answer > div { translate: 0 -8px; transition: translate .52s ease; }
  .landing-page .faq-item.active .faq-answer > div { translate: 0 0; }
  .modal-overlay { transition: opacity .36s ease, visibility .36s; }
  .modal-overlay .modal-box { transition: translate .36s var(--site-ease), scale .36s var(--site-ease), opacity .32s ease; }
  .modal-overlay:not(.open) .modal-box { translate: 0 26px; scale: .94; }
}

#authModal .auth-card { width:min(100%,420px); padding:28px; border-radius:22px; border-color:var(--card-border); background:var(--card-bg); color:var(--text-main); }
.auth-header .logo-wrap { width:fit-content; }
.auth-header h2 { margin:24px 0 20px; font-size:clamp(27px,5vw,32px); letter-spacing:-.045em; line-height:1.14; }
#authForm { display:grid; gap:15px; }
#authForm label { display:grid; gap:7px; color:var(--text-main); font-size:13px; font-weight:550; }
#authForm [hidden], #authMessage:empty { display:none; }
#authForm input { box-sizing:border-box; width:100%; min-width:0; height:46px; padding:0 14px; color:var(--text-main); background:#ffffff06; border:1px solid var(--card-border); border-radius:12px; font:inherit; font-size:16px; }
#authForm input::placeholder { color:var(--text-muted); }
#authModal :focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
#authForm button { justify-content:center; cursor:pointer; }
#authMode { margin-top:-6px; }
#authMessage { font-size:13px; }
@media(max-width:480px){ #authModal {padding:12px;} #authModal .auth-card {padding:22px;} }
/* Public pages */
.landing-page .hero { border:1px solid #ffffff20; box-shadow:0 18px 60px #0003; }
.landing-page .landscape::after { background:linear-gradient(90deg,#07130fe8 0%,#09141088 46%,transparent 86%),linear-gradient(0deg,#08130e96,transparent 70%); }
.landing-page .edition-label { border-left:2px solid var(--primary); padding-left:12px; font-weight:600; }
.landing-page .section-title { line-height:1.08; }
.landing-page .bento-card { min-height:245px; padding:clamp(23px,3vw,34px); }
.landing-page .bento-card .card-desc { color:#bcc4c0; font-size:15px; line-height:1.55; }
.landing-page .bento-card .card-icon { border:1px solid #69d9ac38; border-radius:13px; background:#69d9ac10; color:var(--primary-light); }
.landing-page .feature-tag { border:1px solid #ffffff12; background:#ffffff05; color:#bac8c1; }
.landing-page .landing-pricing { border:1px solid #304338; background:linear-gradient(145deg,#17271e,#0e1712 65%); }
.landing-page .landing-pricing .pricing-card-featured { border-color:#6db991; background:linear-gradient(155deg,#244533,#15241c 75%); }
.landing-page .price-val,.dash-container .stat-value { font-variant-numeric:tabular-nums; }
.landing-page .faq-grid { gap:0; }
.landing-page .faq-item { border:0; border-bottom:1px solid var(--card-border); background:transparent; border-radius:0; padding:21px 0; box-shadow:none; }
.landing-page .faq-question { line-height:1.45; }
.landing-page footer .container { display:grid; gap:10px; line-height:1.65; }
.landing-page footer a { color:#b6d7c6; }
.dash-container .stat-card { background:linear-gradient(145deg,#1d2722,#171a18 70%); border-color:#303c35; }
.dash-container .tab-btn.active { background:#253d30; color:#b7efd0; }
.dash-container .glass-box { border-color:#303a34; }
#providerTitle { font-size:26px; letter-spacing:-.04em; }
#modalSelectedPlan { font-size:18px; color:var(--text-main); margin-block:12px; }
#checkoutModal .btn-plan { background:var(--primary); color:#0a2619; }
@media(min-width:880px){ .landing-page .faq-section { display:grid; grid-template-columns:minmax(220px,.65fr) minmax(0,1.35fr); gap:clamp(28px,5vw,70px); align-items:start; } .landing-page .faq-section .section-title { margin-top:15px; } }
@media(max-width:700px){ .landing-page .hero { min-height:405px; } .landing-page .bento-card { min-height:205px; } .landing-page .device-service .provider-choice { grid-column:1/-1; display:flex; } .landing-page .device-service .btn-plan { flex:1; } .dash-container .stats-grid { grid-template-columns:minmax(0,1fr); } }

.showcase-video { margin:56px auto; max-width:1000px; }
.hero-video iframe { display:block; width:100%; aspect-ratio:16/9; border:1px solid #ffffff26; border-radius:20px; background:#08100d; box-shadow:0 16px 55px #0004; }
.hero-video a { display:block; margin-top:12px; text-align:right; color:#c8e8d7; font-size:13px; }
.logo-wrap .logo-icon { background:transparent; box-shadow:none; width:46px; height:36px; }
.logo-icon img { width:100%; height:100%; object-fit:contain; }
@media(max-width:700px){ .showcase-video { margin:36px auto; } .hero-video iframe { border-radius:12px; } }

.profile-identity { display:flex; align-items:baseline; flex-wrap:wrap; gap:10px; margin-bottom:16px; overflow-wrap:anywhere; }
.profile-identity strong { font-size:20px; }
.profile-identity span { color:var(--text-muted); font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; }
