/* ============================================================================
   fix — high-tech developer tool theme (dark)
   Palette: deep slate #090d16, panels #111827, neon cyan #00f2fe, blue #3b82f6
   ========================================================================== */

:root {
    --bg: #090d16;
    --bg-deep: #060910;
    --panel: rgba(17, 27, 39, 0.72);
    --panel-solid: #111827;
    --ink: #e5e9f2;
    --muted: #8b96ab;
    --dim: #5b6577;
    --accent: #00f2fe;
    --accent-2: #3b82f6;
    --accent-glow: rgba(0, 242, 254, 0.35);
    --accent-2-glow: rgba(59, 130, 246, 0.3);
    --line: rgba(148, 163, 184, 0.14);
    --line-strong: rgba(148, 163, 184, 0.26);
    --error: #ff5d5d;
    --ok: #34d399;
    --radius: 16px;
    --radius-sm: 10px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Inter", system-ui, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
    --shadow-panel: 0 10px 40px rgba(2, 6, 16, 0.55);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: rgba(0, 242, 254, 0.28); color: #fff; }

/* ---------------------------------------------------------------------------
   Ambient background: grid + glowing orbs
   ------------------------------------------------------------------------- */

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

.bg-glow {
    position: fixed;
    z-index: -2;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.5;
    pointer-events: none;
    animation: orb-drift 14s ease-in-out infinite alternate;
}

.bg-glow-a {
    width: 560px;
    height: 560px;
    top: -180px;
    left: -120px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.45), transparent 65%);
}

.bg-glow-b {
    width: 520px;
    height: 520px;
    top: 30%;
    right: -180px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.28), transparent 65%);
    animation-delay: -7s;
}

@keyframes orb-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

/* ---------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 13, 22, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 18px var(--accent-glow);
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-dot { color: var(--accent); }

.nav-pills { display: flex; gap: 8px; flex-wrap: wrap; }

.pill {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 12px;
    background: rgba(17, 24, 39, 0.6);
    white-space: nowrap;
}

.pill-accent {
    color: var(--accent);
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.12), inset 0 0 12px rgba(0, 242, 254, 0.05);
}

/* ---------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.page { max-width: 1080px; margin: 0 auto; padding: 0 24px 48px; }

.hero {
    text-align: center;
    padding: 72px 0 40px;
}

.hero-logo-wrap {
    position: relative;
    display: block;
    text-align: center;
}

.hero-logo-wrap::before {
    content: "";
    position: absolute;
    inset: -34px;
    z-index: -1;
    background: conic-gradient(from 180deg, rgba(0, 242, 254, 0.28), rgba(59, 130, 246, 0.28), transparent 60%, rgba(0, 242, 254, 0.28));
    border-radius: 50%;
    filter: blur(34px);
    animation: aura-spin 12s linear infinite;
}

@keyframes aura-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero-logo {
    width: 108px;
    height: 108px;
    border-radius: 26px;
    object-fit: cover;
    border: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow:
        0 0 0 1px rgba(9, 13, 22, 0.8),
        0 0 38px var(--accent-glow),
        0 0 90px var(--accent-2-glow);
    animation: logo-float 5s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

.hero-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 22px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 999px;
    padding: 6px 14px;
    background: rgba(0, 242, 254, 0.05);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}

.hero-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    margin-top: 20px;
}

.hero-title-row h1 { margin: 0; }

.chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: chip-pulse 2s ease-in-out infinite;
}

@keyframes chip-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

.hero h1 {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 18px 0 10px;
    background: linear-gradient(180deg, #ffffff 20%, #9fb3d1 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero h1 .dot {
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: var(--accent);
    text-shadow: 0 0 22px var(--accent-glow);
}

.tagline {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--ink);
}

.sub {
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 44px;
    flex-wrap: wrap;
}

.stat-mini {
    min-width: 148px;
    padding: 14px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stat-mini b {
    display: block;
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 18px var(--accent-glow);
}

.stat-mini span {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.03em;
}

/* ---------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    color: #031018;
    background: linear-gradient(135deg, #00f2fe 0%, #3b82f6 100%);
    box-shadow: 0 6px 24px rgba(0, 242, 254, 0.35), 0 2px 10px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 34px rgba(0, 242, 254, 0.45), 0 4px 16px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    animation: btn-loading 1.4s ease-in-out infinite;
}

@keyframes btn-loading {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.35); }
}

.btn-ghost {
    color: var(--ink);
    background: rgba(17, 24, 39, 0.6);
    border-color: var(--line-strong);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 24px rgba(0, 242, 254, 0.15);
    transform: translateY(-2px);
}

.btn-block { width: 100%; margin-top: 18px; }

button.ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(0, 242, 254, 0.4);
    margin: 0;
}

button.ghost:hover { background: rgba(0, 242, 254, 0.08); box-shadow: 0 0 18px rgba(0, 242, 254, 0.15); }

button.danger {
    color: var(--error);
    border-color: rgba(255, 93, 93, 0.45);
    background: transparent;
    margin-left: 10px;
}

button.danger:hover { background: rgba(255, 93, 93, 0.08); box-shadow: 0 0 18px rgba(255, 93, 93, 0.15); }

/* ---------------------------------------------------------------------------
   Panels
   ------------------------------------------------------------------------- */

.panel {
    max-width: 860px;
    margin: 28px auto;
    padding: 30px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-panel);
}

.panel-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.panel-sub {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.panel h2:not(.panel-head h2) { margin: 0 0 16px; }

.pricing-panel { border-color: rgba(0, 242, 254, 0.18); }

/* ---------------------------------------------------------------------------
   Section titles (how-it-works)
   ------------------------------------------------------------------------- */

.how-section { max-width: 860px; margin: 44px auto 0; }

.section-title {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 16px;
}

.tech {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}

.tech summary {
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--accent);
    padding: 18px 22px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
}

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

.tech summary::before {
    content: "▸";
    display: inline-block;
    transition: transform 0.25s ease;
    color: var(--accent);
}

.tech[open] summary::before { transform: rotate(90deg); }

.tech[open] summary { background: rgba(0, 242, 254, 0.04); }

.tech-body { border-top: 1px solid var(--line); }

.tech ul {
    margin: 0;
    padding: 8px 0;
    list-style: none;
}

.tech li {
    margin: 0;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.tech li:last-child { border-bottom: none; }

.tech li strong {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.tech-sample {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(6, 10, 19, 0.8);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    overflow-x: auto;
    white-space: nowrap;
}

/* Syntax token colors */
.tok-kw  { color: #c792ea; }
.tok-fn  { color: #82aaff; }
.tok-str { color: #c3e88d; }
.tok-lit { color: #f78c6c; }
.tok-op  { color: #89ddff; }
.tok-punct { color: #546e7a; }

/* ---------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */

.github-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0 4px;
    padding: 12px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(17, 24, 39, 0.35);
}

#github-user {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    font-family: var(--font-mono);
}

#github-repo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#github-repo label { margin: 0; font-size: 13px; }

#github-note { margin: 8px 0 0; width: 100%; }

.field { margin-top: 14px; }

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 6px;
    color: var(--ink);
}

label small { font-weight: 400; color: var(--dim); }

input[type="text"], input[type="url"], textarea, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 15px;
    background: rgba(9, 13, 22, 0.85);
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder, textarea::placeholder { color: var(--dim); }

input[type="text"]:hover, input[type="url"]:hover, textarea:hover, select:hover {
    border-color: rgba(0, 242, 254, 0.35);
}

input[type="text"]:focus, input[type="url"]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(9, 13, 22, 1);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.14), 0 0 22px rgba(0, 242, 254, 0.12);
}

textarea { resize: vertical; min-height: 96px; }

select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300f2fe' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: rgba(9, 13, 22, 0.85);
}

select option { background: var(--panel-solid); color: var(--ink); }

/* ---------------------------------------------------------------------------
   Feedback text
   ------------------------------------------------------------------------- */

.error {
    color: var(--error);
    font-weight: 600;
    font-size: 14px;
    margin: 12px 0 0;
    font-family: var(--font-mono);
}

.note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.summary { color: var(--muted); margin: 16px 0 0; font-size: 15px; }

/* ---------------------------------------------------------------------------
   Dashboard
   ------------------------------------------------------------------------- */

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.metric {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 14px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008)), rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.metric::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.55;
}

.metric:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.08);
}

.metric span {
    display: block;
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
    word-break: break-word;
}

.metric label {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.suggestions {
    margin: 14px 0 0;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(17, 24, 39, 0.4);
    list-style: none;
}

.suggestions li {
    margin: 6px 0;
    font-size: 14px;
    color: var(--muted);
    padding-left: 18px;
    position: relative;
}

.suggestions li::before {
    content: "›";
    position: absolute;
    left: 2px;
    color: var(--accent);
    font-weight: 700;
}

.detail { margin-top: 22px; }

.detail h3 {
    font-size: 15px;
    margin: 0 0 10px;
    color: var(--ink);
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail h3::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(17, 24, 39, 0.4);
    overflow: hidden;
}

.detail-list li {
    margin: 0;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
}

.detail-list li:last-child { border-bottom: none; }

/* ---------------------------------------------------------------------------
   Deposit tier buttons
   ------------------------------------------------------------------------- */

.tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.tier-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 14px 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), rgba(17, 24, 39, 0.6);
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.tier-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 242, 254, 0.55);
    color: var(--accent);
    box-shadow: 0 8px 28px rgba(0, 242, 254, 0.16);
}

.tier-btn-recommended {
    border-color: var(--accent);
    color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.16), rgba(59, 130, 246, 0.16)), rgba(17, 24, 39, 0.7);
    box-shadow: 0 0 26px rgba(0, 242, 254, 0.28), inset 0 0 18px rgba(0, 242, 254, 0.06);
}

.tier-btn-recommended:hover {
    box-shadow: 0 0 38px rgba(0, 242, 254, 0.4), inset 0 0 22px rgba(0, 242, 254, 0.1);
}

/* ---------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

footer {
    text-align: center;
    color: var(--dim);
    font-size: 13px;
    padding: 30px 24px 44px;
    font-family: var(--font-mono);
    border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 720px) {
    .hero { padding-top: 48px; }
    .hero h1 { font-size: 54px; }
    .tagline { font-size: 19px; }
    .panel { padding: 22px; }
    .nav-inner { padding: 12px 16px; }
    .nav-pills { display: none; }
    .metric span { font-size: 22px; }
    .tier-btn { flex: 1 1 140px; }
}

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