:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    background: #050505;
    color: #f5f5f5;
    --bg: #050505;
    --surface: #0d0d0d;
    --surface-raised: #151515;
    --border: rgba(255, 255, 255, .12);
    --text: #f5f5f5;
    --muted: #a1a1a1;
    --accent: #e5e5e5;
    --highlight: #d4d4d4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse at 50% -24%, rgba(255, 255, 255, .075), transparent 49%),
        radial-gradient(ellipse at 95% 40%, rgba(255, 255, 255, .025), transparent 30%),
        var(--bg);
    color: var(--text);
}
a { color: #e5e5e5; text-decoration: none; }
a:hover { color: #fff; }
header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .9rem max(1.5rem, calc((100% - 1160px) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    background: rgba(5, 5, 5, .88);
    backdrop-filter: blur(18px);
}
header nav { display: flex; align-items: center; gap: 1.5rem; }
header nav > a { color: #c4c4c4; font-size: .9rem; transition: color .2s ease; }
header nav > a:hover { color: white; }
header form, .inline { display: inline-flex; margin: 0 .35rem .35rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: white; font-size: 1.15rem; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: linear-gradient(140deg, #fff, #a3a3a3); box-shadow: 0 5px 22px rgba(255, 255, 255, .12); color: #050505; font-size: 1rem; }
.brand-period { color: var(--accent); }
main { width: min(1120px, calc(100% - 2.5rem)); min-height: 68vh; margin: 3.2rem auto; }
.main-home { width: min(1160px, calc(100% - 2.5rem)); margin-top: 2rem; }
.main-page > h1 { margin: 0 0 1.65rem; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.055em; }
h1, h2, h3, h4 { line-height: 1.14; }
h2, h3 { margin-top: 0; }
p { line-height: 1.7; }
.hero-home {
    position: relative;
    display: grid;
    min-height: 475px;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    margin: 0 0 7rem;
    padding: clamp(2rem, 6vw, 4.5rem);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 82% 55%, rgba(255, 255, 255, .07), transparent 42%),
        linear-gradient(125deg, rgba(19, 19, 19, .98), rgba(10, 10, 10, .97));
    box-shadow: 0 28px 90px rgba(0, 0, 0, .24), inset 0 1px rgba(255,255,255,.035);
    animation: rise-in .7s both;
}
.hero-home::before {
    position: absolute;
    top: -180px;
    right: -120px;
    width: 510px;
    height: 510px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 610px; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: #d4d4d4; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.live-dot, .chip-status, .terminal-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); box-shadow: 0 0 15px rgba(255, 255, 255, .45); }
.hero-home h1 { margin: 1.15rem 0; font-size: clamp(3rem, 6vw, 5.25rem); letter-spacing: -.075em; line-height: .99; }
.hero-home h1 span { color: #d4d4d4; }
.hero-copy > p { max-width: 490px; margin: 1.3rem 0 1.75rem; color: #aab4ca; font-size: 1.04rem; }
.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #1c1c1c;
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: .78rem 1rem;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover, button:hover { transform: translateY(-2px); background: #2b2b2b; color: white; }
.button-primary, .button-primary:hover { border-color: rgba(255, 255, 255, .6); background: linear-gradient(120deg, #f5f5f5, #c4c4c4); box-shadow: 0 8px 26px rgba(255, 255, 255, .12); color: #080808; }
.button-primary:hover { box-shadow: 0 12px 32px rgba(255, 255, 255, .2); }
.hero-cta { min-height: 52px; padding: 0 1.35rem; }
.hero-cta span, .plan-button span { font-size: 1.2rem; transition: transform .2s ease; }
.hero-cta:hover span, .plan-button:hover span { transform: translateX(4px); }
.hero-note { display: flex; align-items: center; gap: .6rem; margin-top: 1.4rem; color: #9ca8bd; font-size: .83rem; }
.note-check { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--highlight); font-size: .72rem; }
.hero-visual { position: relative; display: grid; min-height: 340px; place-items: center; perspective: 900px; }
.visual-orbit { position: absolute; width: 310px; height: 310px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; }
.orbit-one { transform: rotateX(68deg) rotateZ(-20deg); animation: orbit-turn 22s linear infinite; }
.orbit-two { width: 250px; height: 250px; border-color: rgba(255, 255, 255, .07); transform: rotateX(67deg) rotateZ(50deg); animation: orbit-turn 28s linear infinite reverse; }
.terminal-card {
    position: relative;
    z-index: 1;
    width: min(390px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 16px;
    background: rgba(9, 13, 23, .95);
    box-shadow: 0 24px 70px rgba(0,0,0,.5), 0 0 45px rgba(255, 255, 255, .06);
    transform: rotateY(-7deg) rotateX(3deg);
    animation: terminal-float 5s ease-in-out infinite;
}
.terminal-head { display: flex; align-items: center; gap: .65rem; min-height: 45px; padding: 0 .9rem; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #999; font-size: .7rem; }
.terminal-lights { display: flex; gap: 4px; }
.terminal-lights i { width: 7px; height: 7px; border-radius: 50%; background: #e8797e; }
.terminal-lights i:nth-child(2) { background: #edbd69; }
.terminal-lights i:nth-child(3) { background: #65d8a5; }
.terminal-live { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; color: var(--highlight); font-size: .58rem; font-weight: 800; letter-spacing: .08em; }
.terminal-live i { width: 6px; height: 6px; }
.terminal-lines { min-height: 168px; padding: 1rem 1.15rem; color: #aeb8cc; font: .75rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.terminal-lines p { margin: .55rem 0; }
.terminal-lines b { color: var(--highlight); }
.terminal-prompt { display: flex; align-items: center; gap: .4rem; }
.typing-cursor { width: 7px; height: 14px; background: #e5e5e5; animation: blink 1s steps(2, start) infinite; }
.server-chip { display: flex; align-items: center; gap: .75rem; margin: 0 .8rem .8rem; padding: .75rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 11px; background: #141414; }
.chip-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .1); color: #e5e5e5; }
.server-chip b, .server-chip small { display: block; }
.server-chip b { font-size: .78rem; }
.server-chip small { margin-top: .2rem; color: #818da2; font-size: .65rem; }
.chip-status { margin-left: auto; width: 7px; height: 7px; }
.offers-section { scroll-margin-top: 95px; margin-bottom: 6.5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2 { margin: .75rem 0 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.06em; }
.section-heading > p { max-width: 300px; margin: 0 0 .35rem; color: var(--muted); font-size: .94rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); align-items: stretch; gap: 1rem; }
.card { margin: 1rem 0; padding: 1.4rem; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg, rgba(20, 20, 20, .98), rgba(11, 11, 11, .98)); box-shadow: 0 12px 35px rgba(0, 0, 0, .25); }
.plan-card { position: relative; display: flex; min-height: 400px; flex-direction: column; overflow: hidden; margin: 0; padding: 1.55rem; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; animation: rise-in .65s both; }
.plan-card:nth-child(2) { animation-delay: .1s; }
.plan-card:nth-child(3) { animation-delay: .2s; }
.plan-card:hover { transform: translateY(-7px); border-color: rgba(255, 255, 255, .3); box-shadow: 0 24px 55px rgba(0,0,0,.4); }
.plan-featured { border-color: rgba(255, 255, 255, .38); background: radial-gradient(ellipse at 85% 0, rgba(255, 255, 255, .08), transparent 45%), linear-gradient(145deg, #191919, #0d0d0d 75%); }
.plan-ribbon { position: absolute; top: 0; right: 0; padding: .42rem .75rem; border-bottom-left-radius: 10px; background: rgba(255, 255, 255, .1); color: #ededed; font-size: .59rem; font-weight: 850; letter-spacing: .1em; }
.plan-title { display: flex; align-items: center; gap: .7rem; margin: .25rem 0 .5rem; }
.plan-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255, 255, 255, .14); border-radius: 11px; background: rgba(255, 255, 255, .06); color: #e5e5e5; font-size: 1.1rem; }
.plan-title h3 { margin: 0; font-size: 1.05rem; }
.price { margin: .9rem 0 .25rem; font-size: 2.35rem; font-weight: 800; letter-spacing: -.06em; }
.price small, .muted { color: var(--muted); font-size: .83rem; font-weight: 450; letter-spacing: 0; }
.plan-description { margin: .35rem 0 1.1rem; color: #9ca7bd; font-size: .84rem; }
.plan-divider { height: 1px; background: var(--border); }
.plan-features { display: grid; gap: .85rem; margin: 1.2rem 0 1.5rem; padding: 0; color: #c4ccdc; font-size: .82rem; list-style: none; }
.plan-features li { display: flex; align-items: center; gap: .65rem; }
.plan-features li span { color: var(--highlight); font-weight: 800; }
.plan-card form { margin-top: auto; }
.node-select-label { display: grid; gap: .45rem; margin-bottom: .7rem; color: #9da8be; font-size: .73rem; font-weight: 650; }
.node-select-label select { width: 100%; min-height: 42px; border: 1px solid var(--border); border-radius: 9px; outline: none; background: #0b0b0b; color: #e9e9e9; padding: .6rem .7rem; font: inherit; }
.node-select-label select:focus { border-color: #bdbdbd; box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
.plan-button { width: 100%; min-height: 45px; border-color: var(--border); background: rgba(255,255,255,.035); font-size: .83rem; }
.plan-button:not(.button-primary):hover { border-color: rgba(255, 255, 255, .3); }
.pricing-note { display: flex; align-items: flex-start; gap: .55rem; margin: 1.2rem 0 0; color: #8e9ab0; font-size: .78rem; }
.pricing-note span { color: #e5e5e5; }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 2.2rem 0 4.5rem; border-top: 1px solid var(--border); }
.feature-strip > div { animation: rise-in .7s both; }
.feature-strip > div:nth-child(2) { animation-delay: .12s; }
.feature-strip > div:nth-child(3) { animation-delay: .24s; }
.feature-symbol { color: #e5e5e5; font-size: 1.25rem; }
.feature-strip h3 { margin: .8rem 0 .45rem; font-size: .98rem; }
.feature-strip p { max-width: 300px; margin: 0; color: var(--muted); font-size: .82rem; }
.main-page > .card { animation: rise-in .5s both; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .65rem; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; background: rgba(255,255,255,.07); color: var(--highlight); font-size: .7rem; font-weight: 700; vertical-align: middle; }
.notice, .warning, .error { margin: 1rem 0; padding: 1rem 1.15rem; border: 1px solid transparent; border-radius: 12px; font-size: .9rem; }
.notice { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #e5e5e5; }
.warning { border-color: rgba(244,190,103,.2); background: rgba(128,87,26,.17); color: #f0d7a9; }
.error { border-color: rgba(239,111,137,.25); background: rgba(126,43,65,.2); color: #ffc0ce; overflow-wrap: anywhere; }
code { color: #e5e5e5; }
.settings-form { display: grid; gap: 1rem; }
.settings-form label, .file-editor label { display: grid; gap: .5rem; color: #cbd3e3; font-size: .88rem; font-weight: 650; }
.settings-form input, .settings-form textarea, .console-command input, .file-editor input, .file-content {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9px;
    outline: none;
    background: #0b0b0b;
    color: var(--text);
    padding: .78rem .9rem;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.settings-form input:focus, .settings-form textarea:focus, .console-command input:focus, .file-content:focus { border-color: #bdbdbd; box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
.settings-form textarea, .file-content { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.server-controls, .file-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.server-address { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .85rem; }
.server-address code { border: 1px solid var(--border); border-radius: 7px; background: rgba(255,255,255,.06); padding: .35rem .55rem; }
.server-controls button { font-size: .82rem; }
.button.secondary, button.secondary { border-color: var(--border); background: #202020; }
button.danger { background: #a33e57; }
button.danger:hover { background: #be4965; }
.link-button { border: 0; background: transparent; color: #b8c2d7; padding: .3rem; font-size: .86rem; font-weight: 550; }
.console-output { min-height: 150px; max-height: 280px; overflow: auto; margin: .65rem 0; padding: 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: #070707; color: #d4d4d4; white-space: pre-wrap; overflow-wrap: anywhere; font: .82rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.console-command { display: flex; gap: .55rem; }
.console-command input { flex: 1; min-width: 0; }
.file-toolbar { margin-top: .75rem; }
.file-toolbar .current-directory { color: var(--muted); font: .8rem ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.upload-button { cursor: pointer; }
.file-list { display: grid; gap: .4rem; margin: .75rem 0; }
.file-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .55rem; border: 1px solid transparent; border-bottom-color: var(--border); border-radius: 9px; transition: background .2s ease, border-color .2s ease; }
.file-row:hover { border-color: var(--border); background: rgba(255,255,255,.025); }
.file-entry { flex: 1; min-width: 180px; justify-content: flex-start; text-align: left; }
.file-editor { display: grid; gap: .65rem; margin-top: 1rem; }
.file-editor[hidden] { display: none; }
.file-editor input[readonly] { color: #9da9c0; }
.file-editor .file-content { min-height: 300px; resize: vertical; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem max(1.5rem, calc((100% - 1160px) / 2)); border-top: 1px solid rgba(255,255,255,.1); color: #888; font-size: .76rem; }
.footer-brand { color: #dce1f0; font-size: .95rem; font-weight: 800; letter-spacing: -.04em; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes terminal-float { 0%, 100% { transform: translateY(0) rotateY(-7deg) rotateX(3deg); } 50% { transform: translateY(-9px) rotateY(-5deg) rotateX(2deg); } }
@keyframes orbit-turn { to { rotate: 360deg; } }
@keyframes blink { to { visibility: hidden; } }

@media (max-width: 820px) {
    .hero-home { grid-template-columns: 1fr; gap: .5rem; }
    .hero-copy { max-width: 100%; }
    .hero-visual { min-height: 300px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
    .section-heading > p { max-width: 500px; }
}
@media (max-width: 600px) {
    header { align-items: flex-start; flex-direction: column; padding: .8rem 1rem; }
    header nav { width: 100%; flex-wrap: wrap; gap: .85rem; }
    main, .main-home { width: min(100% - 1.25rem, 1120px); margin-top: 1.6rem; }
    .hero-home { min-height: auto; margin-bottom: 4.5rem; padding: 1.5rem; border-radius: 20px; }
    .hero-home h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
    .hero-visual { min-height: 260px; }
    .terminal-card { transform: none; }
    .plans { grid-template-columns: 1fr; }
    .plan-card { min-height: 370px; }
    .feature-strip { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 3rem; }
    .console-command { flex-direction: column; }
    footer { align-items: flex-start; flex-direction: column; padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
