@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Outfit:wght@400;500;600;700;800;900&display=swap");

:root {
    --ink: #f5f7ff;
    --muted: #9ba9c7;
    --muted-dark: #65738f;
    --canvas: #060814;
    --panel: rgba(14, 19, 39, 0.76);
    --panel-solid: #10172e;
    --line: rgba(144, 170, 255, 0.16);
    --cyan: #5eeaff;
    --blue: #4f7cff;
    --violet: #9b6cff;
    --pink: #ed6dff;
    --lime: #53f2b3;
    --amber: #ffc45d;
    --danger: #ff718b;
    --font-display: "Outfit", "Segoe UI", sans-serif;
    --font-mono: "DM Mono", "Cascadia Code", monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--canvas);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--font-display);
    background:
        radial-gradient(circle at 12% 4%, rgba(61, 124, 255, 0.2), transparent 28rem),
        radial-gradient(circle at 88% 24%, rgba(226, 86, 255, 0.14), transparent 31rem),
        linear-gradient(155deg, #070b1a 0%, #070b18 48%, #09061b 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    inset: 0;
}

body::before {
    z-index: -2;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(120, 145, 255, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 145, 255, 0.075) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
    z-index: -1;
    opacity: 0.45;
    background:
        radial-gradient(circle at 50% 110%, rgba(70, 234, 255, 0.14), transparent 30rem),
        radial-gradient(circle at 82% 72%, rgba(135, 87, 255, 0.11), transparent 24rem);
}

::selection {
    color: #06101c;
    background: var(--cyan);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #070a15;
}

::-webkit-scrollbar-thumb {
    border: 3px solid #070a15;
    border-radius: 999px;
    background: linear-gradient(var(--cyan), var(--violet));
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 0 7%;
    border-bottom: 1px solid rgba(154, 179, 255, 0.12);
    background: rgba(6, 8, 20, 0.66);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.navbar::after {
    content: "";
    position: absolute;
    right: 7%;
    bottom: -1px;
    left: 7%;
    height: 1px;
    opacity: 0.7;
    background: linear-gradient(90deg, transparent, rgba(94, 234, 255, 0.7), rgba(155, 108, 255, 0.65), transparent);
}

.logo {
    display: inline-flex;
    align-items: center;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2.5px;
    color: var(--ink);
    text-shadow: 0 2px 18px rgba(85, 121, 255, 0.2);
}

.logo span {
    margin-left: 2px;
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(94, 234, 255, 0.48);
}

.logo-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-right: 9px;
    object-fit: contain;
    filter: drop-shadow(0 0 9px rgba(255, 220, 116, 0.55));
    animation: spark 2.8s ease-in-out infinite;
}

@keyframes spark {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-4px) rotate(4deg); }
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 36px);
}

.navbar nav a {
    position: relative;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.navbar nav a:not(.feedback-button)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms ease;
}

.navbar nav a:not(.feedback-button):hover {
    color: var(--ink);
    transform: translateY(-1px);
}

.navbar nav a:not(.feedback-button):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.feedback-button {
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.65px !important;
    background: linear-gradient(120deg, #426eff, #8165ff 54%, #d86cff);
    background-size: 160% 100%;
    box-shadow: 0 10px 22px rgba(92, 86, 255, 0.28), inset 0 1px rgba(255, 255, 255, 0.22);
    transition: transform 200ms ease, box-shadow 200ms ease, background-position 300ms ease !important;
}

.feedback-button:hover {
    color: #fff !important;
    background-position: 100% 0;
    box-shadow: 0 13px 30px rgba(179, 88, 255, 0.36), inset 0 1px rgba(255, 255, 255, 0.28);
    transform: translateY(-2px) !important;
}

.credit-link {
    color: var(--cyan) !important;
    font-weight: 700 !important;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(780px, calc(100vh - 82px));
    padding: 132px 24px 108px;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.hero::before {
    width: min(74vw, 1050px);
    aspect-ratio: 1;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(106, 227, 255, 0.13);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(88, 222, 255, 0.18) 0%, rgba(84, 104, 255, 0.11) 30%, rgba(127, 86, 255, 0.05) 48%, transparent 69%),
        repeating-radial-gradient(circle, transparent 0 46px, rgba(110, 190, 255, 0.08) 47px 48px);
    box-shadow: 0 0 150px rgba(48, 183, 255, 0.11), inset 0 0 100px rgba(123, 86, 255, 0.08);
    transform: translate(-50%, -48%);
    animation: halo-breathe 9s ease-in-out infinite;
}

.hero::after {
    right: -17rem;
    bottom: -21rem;
    width: 42rem;
    height: 42rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(237, 109, 255, 0.19), rgba(143, 93, 255, 0.06) 43%, transparent 70%);
    filter: blur(2px);
}

@keyframes halo-breathe {
    0%, 100% { transform: translate(-50%, -48%) scale(0.98); opacity: 0.84; }
    50% { transform: translate(-50%, -48%) scale(1.04); opacity: 1; }
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 1080px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    margin-bottom: 27px;
    border: 1px solid rgba(101, 229, 255, 0.38);
    border-radius: 999px;
    color: #a9f7ff;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    background: rgba(57, 165, 211, 0.09);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 8px 28px rgba(45, 197, 255, 0.08);
}

.hero .badge {
    animation: appear 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero h1 {
    max-width: 1030px;
    margin: 0 auto;
    color: transparent;
    font-size: clamp(52px, 8vw, 112px);
    font-weight: 900;
    line-height: 0.89;
    letter-spacing: clamp(-3.5px, -0.38vw, -6px);
    background: linear-gradient(145deg, #ffffff 8%, #d7e3ff 46%, #a7b9e6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 13px 26px rgba(2, 8, 26, 0.42));
    animation: rise 800ms 70ms cubic-bezier(0.18, 0.9, 0.32, 1) both;
}

.hero h1 span {
    display: inline-block;
    color: transparent;
    background: linear-gradient(110deg, var(--cyan) 6%, #8e9aff 50%, var(--pink) 100%);
    background-size: 180% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: gradient-drift 7s ease infinite;
}

@keyframes gradient-drift {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
}

.hero p {
    max-width: 650px;
    margin: 31px auto 34px;
    color: #b3c0dd;
    font-size: clamp(15px, 1.45vw, 18px);
    font-weight: 500;
    line-height: 1.75;
    animation: rise 800ms 170ms cubic-bezier(0.18, 0.9, 0.32, 1) both;
}

.hero-button,
.calculate-button {
    position: relative;
    overflow: hidden;
    border: 0;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.05em;
    background: linear-gradient(112deg, #35c8ff, #5773ff 45%, #b55dff 100%);
    background-size: 180% 100%;
    box-shadow: 0 12px 30px rgba(63, 103, 255, 0.32), inset 0 1px rgba(255, 255, 255, 0.28);
    transition: transform 200ms ease, box-shadow 200ms ease, background-position 350ms ease;
}

.hero-button::before,
.calculate-button::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -75%;
    width: 44%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: skewX(-22deg);
    transition: left 480ms ease;
}

.hero-button:hover,
.calculate-button:hover {
    background-position: 100% 0;
    box-shadow: 0 18px 42px rgba(109, 91, 255, 0.44), inset 0 1px rgba(255, 255, 255, 0.34);
    transform: translateY(-3px);
}

.hero-button:hover::before,
.calculate-button:hover::before {
    left: 135%;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 26px;
    border-radius: 13px;
    font-size: 13px;
    text-decoration: none;
    animation: rise 800ms 260ms cubic-bezier(0.18, 0.9, 0.32, 1) both;
}

@keyframes appear {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   CALCULATOR
========================= */

main {
    position: relative;
    z-index: 1;
}

.calculator-section,
.features-section {
    width: min(1340px, 100%);
    margin: 0 auto;
    padding-right: 25px;
    padding-left: 25px;
}

.calculator-section {
    padding-top: 116px;
    padding-bottom: 92px;
}

.section-title {
    max-width: 720px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-title .badge {
    margin-bottom: 18px;
}

.section-title h2 {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.section-title p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.calculator {
    display: grid;
    grid-template-columns: minmax(330px, 0.86fr) minmax(390px, 1.14fr);
    gap: 24px;
    align-items: stretch;
}

.settings-panel,
.results-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(19, 26, 54, 0.85), rgba(10, 14, 32, 0.77)) padding-box,
        linear-gradient(135deg, rgba(113, 238, 255, 0.44), rgba(124, 133, 255, 0.16) 38%, rgba(246, 111, 255, 0.35)) border-box;
    box-shadow: 0 26px 60px rgba(0, 3, 20, 0.34), inset 0 1px rgba(255, 255, 255, 0.08);
}

.settings-panel::after,
.results-panel::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.settings-panel::after {
    top: -170px;
    right: -120px;
    background: radial-gradient(circle, rgba(69, 186, 255, 0.14), transparent 70%);
}

.results-panel::after {
    right: -130px;
    bottom: -145px;
    background: radial-gradient(circle, rgba(212, 93, 255, 0.13), transparent 70%);
}

.settings-panel {
    padding: 30px;
}

.results-panel {
    padding: 32px;
}

.settings-panel h3 {
    position: relative;
    z-index: 1;
    padding-bottom: 19px;
    margin-bottom: 23px;
    border-bottom: 1px solid var(--line);
    color: #eaf1ff;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.13em;
}

.settings-panel h3::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 9px 1px 0;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 12px rgba(83, 242, 179, 0.85);
}

.input-group {
    position: relative;
    z-index: 1;
    margin-bottom: 17px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #a9b7d6;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.input-group select {
    width: 100%;
    height: 49px;
    padding: 0 13px;
    border: 1px solid rgba(134, 158, 224, 0.22);
    border-radius: 11px;
    outline: none;
    color: #edf4ff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(5, 10, 28, 0.72);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.input-group select:hover {
    border-color: rgba(101, 232, 255, 0.56);
    background-color: rgba(10, 18, 40, 0.94);
}

.input-group select:focus {
    border-color: var(--cyan);
    background-color: rgba(12, 21, 47, 0.98);
    box-shadow: 0 0 0 4px rgba(94, 234, 255, 0.11), inset 0 1px rgba(255, 255, 255, 0.06);
}

.input-group select option {
    color: #edf4ff;
    background: #10172e;
}

.wattage-row {
    display: flex;
    gap: 12px;
}

.wattage-item {
    flex: 1;
}

.wattage-item label {
    display: block;
    margin-bottom: 6px;
    color: #a9b7d6;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.wattage-item select {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(134, 158, 224, 0.22);
    border-radius: 9px;
    outline: none;
    color: #edf4ff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(5, 10, 28, 0.72);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.wattage-item select:hover {
    border-color: rgba(101, 232, 255, 0.56);
    background-color: rgba(10, 18, 40, 0.94);
}

.wattage-item select:focus {
    border-color: var(--cyan);
    background-color: rgba(12, 21, 47, 0.98);
    box-shadow: 0 0 0 4px rgba(94, 234, 255, 0.11), inset 0 1px rgba(255, 255, 255, 0.06);
}

.wattage-item select option {
    color: #edf4ff;
    background: #10172e;
}

.temperature-row {
    display: flex;
    gap: 12px;
}

.temperature-item {
    flex: 1;
}

.temperature-item label {
    display: block;
    margin-bottom: 6px;
    color: #a9b7d6;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.temperature-item select {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(134, 158, 224, 0.22);
    border-radius: 9px;
    outline: none;
    color: #edf4ff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(5, 10, 28, 0.72);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.temperature-item select:hover {
    border-color: rgba(101, 232, 255, 0.56);
    background-color: rgba(10, 18, 40, 0.94);
}

.temperature-item select:focus {
    border-color: var(--cyan);
    background-color: rgba(12, 21, 47, 0.98);
    box-shadow: 0 0 0 4px rgba(94, 234, 255, 0.11), inset 0 1px rgba(255, 255, 255, 0.06);
}

.temperature-item select option {
    color: #edf4ff;
    background: #10172e;
}

.temperature-info-row {
    display: flex;
    gap: 16px;
    padding: 12px;
    border: 1px solid rgba(134, 158, 224, 0.22);
    border-radius: 9px;
    background: rgba(5, 10, 28, 0.72);
}

.temperature-info-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.temp-label {
    color: #a9b7d6;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.temp-value {
    color: #edf4ff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
}

.temp-status {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
}

.thermal-disclaimer {
    display: block;
    margin-top: 8px;
    color: #6a7b9a;
    font-family: var(--font-mono);
    font-size: 8px;
    line-height: 1.4;
}

.thermal-analysis-section {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(134, 158, 224, 0.22);
    border-radius: 12px;
    background: rgba(14, 19, 39, 0.76);
}

.thermal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(144, 170, 255, 0.16);
}

.thermal-header span {
    color: #95a5ca;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.11em;
}

.thermal-status {
    padding: 6px 12px;
    border: 1px solid rgba(83, 242, 179, 0.32);
    border-radius: 999px;
    color: #99ffd4;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    background: rgba(37, 193, 129, 0.09);
}

.thermal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.thermal-card {
    padding: 16px;
    border: 1px solid rgba(134, 158, 224, 0.22);
    border-radius: 10px;
    background: rgba(5, 10, 28, 0.72);
    text-align: center;
}

.thermal-card span {
    display: block;
    margin-bottom: 8px;
    color: #a9b7d6;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.thermal-card strong {
    display: block;
    margin-bottom: 8px;
    color: #edf4ff;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
}

.thermal-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.08em;
    background: rgba(94, 234, 255, 0.11);
    color: #5eeaff;
}

.thermal-risks {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.thermal-risk-item {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(134, 158, 224, 0.22);
    border-radius: 8px;
    background: rgba(5, 10, 28, 0.72);
}

.thermal-risk-item span {
    color: #a9b7d6;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.thermal-risk-item strong {
    color: #edf4ff;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
}

.thermal-notice {
    display: block;
    color: #6a7b9a;
    font-family: var(--font-mono);
    font-size: 8px;
    line-height: 1.4;
}

.calculate-button {
    width: 100%;
    min-height: 55px;
    margin-top: 7px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
}

.calculate-button:active,
.hero-button:active {
    transform: translateY(0) scale(0.98);
}

/* =========================
   RESULTS
========================= */

.result-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.result-header span {
    display: block;
    color: #95a5ca;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.11em;
}

.result-header h3 {
    margin-top: 7px;
    color: #f3f6ff;
    font-size: clamp(20px, 2.2vw, 25px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.status {
    flex: none;
    padding: 8px 11px;
    border: 1px solid rgba(83, 242, 179, 0.32);
    border-radius: 999px;
    color: #99ffd4;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    background: rgba(37, 193, 129, 0.09);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 18px rgba(74, 236, 171, 0.08);
}

.main-fps {
    position: relative;
    z-index: 1;
    padding: 38px 18px 32px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(99, 231, 255, 0.2);
    border-radius: 17px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(69, 199, 255, 0.17), transparent 57%),
        linear-gradient(145deg, rgba(16, 34, 67, 0.78), rgba(9, 14, 35, 0.48));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 12px 30px rgba(1, 5, 24, 0.18);
}

.main-fps::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
    background-image: linear-gradient(90deg, rgba(132, 220, 255, 0.12) 1px, transparent 1px);
    background-size: 42px 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 20% 80%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 20% 80%, transparent);
}

.main-fps.excellent {
    border-color: rgba(83, 242, 179, 0.37);
    background: radial-gradient(circle at 50% 0%, rgba(83, 242, 179, 0.16), transparent 58%), linear-gradient(145deg, rgba(13, 60, 57, 0.66), rgba(9, 22, 35, 0.58));
}

.main-fps.good {
    border-color: rgba(94, 234, 255, 0.3);
}

.main-fps.medium {
    border-color: rgba(255, 196, 93, 0.4);
    background: radial-gradient(circle at 50% 0%, rgba(255, 196, 93, 0.15), transparent 58%), linear-gradient(145deg, rgba(64, 48, 21, 0.66), rgba(27, 21, 32, 0.58));
}

.main-fps.low {
    border-color: rgba(255, 113, 139, 0.42);
    background: radial-gradient(circle at 50% 0%, rgba(255, 113, 139, 0.16), transparent 58%), linear-gradient(145deg, rgba(66, 25, 44, 0.66), rgba(28, 17, 34, 0.58));
}

.fps-number,
#fpsValue {
    position: relative;
    z-index: 1;
    color: transparent;
    font-size: clamp(116px, 13vw, 174px);
    font-weight: 900;
    letter-spacing: -0.09em;
    line-height: 0.86;
    background: linear-gradient(150deg, #f4ffff 0%, var(--cyan) 36%, #7596ff 72%, #bd79ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 22px rgba(82, 227, 255, 0.26));
}

.fps-number.excellent,
#fpsValue.excellent {
    background-image: linear-gradient(150deg, #e4fff4, var(--lime) 52%, #54d9e9 100%);
    filter: drop-shadow(0 0 22px rgba(83, 242, 179, 0.26));
}

.fps-number.good,
#fpsValue.good {
    background-image: linear-gradient(150deg, #f4ffff 0%, var(--cyan) 36%, #7596ff 72%, #bd79ff 100%);
}

.fps-number.medium,
#fpsValue.medium {
    background-image: linear-gradient(150deg, #fff6d5, var(--amber) 54%, #ff9b78 100%);
    filter: drop-shadow(0 0 22px rgba(255, 196, 93, 0.24));
}

.fps-number.low,
#fpsValue.low {
    background-image: linear-gradient(150deg, #ffe4e9, var(--danger) 53%, #ff8eac 100%);
    filter: drop-shadow(0 0 22px rgba(255, 113, 139, 0.25));
}

.fps-label {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: #c5d5f5;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.fps-range {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    color: #f0f5ff;
    font-size: clamp(19px, 2vw, 25px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
    margin-bottom: 21px;
}

.stat-card {
    min-width: 0;
    padding: 18px 10px 16px;
    border: 1px solid rgba(140, 164, 225, 0.16);
    border-radius: 13px;
    text-align: center;
    background: rgba(8, 14, 33, 0.48);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 190ms ease, border-color 190ms ease, background 190ms ease;
}

.stat-card:hover {
    border-color: rgba(105, 226, 255, 0.42);
    background: rgba(14, 25, 55, 0.78);
    transform: translateY(-3px);
}

.stat-card span {
    display: block;
    overflow: hidden;
    color: #8f9fc2;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.075em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-card strong {
    display: block;
    margin: 10px 0 4px;
    color: transparent;
    font-size: clamp(38px, 4.3vw, 60px);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 0.93;
    background: linear-gradient(145deg, #f3fcff, var(--cyan) 63%, #7e91ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card.excellent strong {
    background-image: linear-gradient(145deg, #e7fff3, var(--lime) 62%, #58dddc);
}

.stat-card.good strong {
    background-image: linear-gradient(145deg, #f3fcff, var(--cyan) 63%, #7e91ff);
}

.stat-card.medium strong {
    background-image: linear-gradient(145deg, #fff5d3, var(--amber) 60%, #ff9b78);
}

.stat-card.low strong {
    background-image: linear-gradient(145deg, #ffe5ea, var(--danger) 62%, #f485b2);
}

.stat-card small {
    color: #7181a6;
    font-family: var(--font-mono);
    font-size: 9px;
}

.hardware-info {
    position: relative;
    z-index: 1;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.hardware-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(140, 164, 225, 0.07);
}

.hardware-item:last-child {
    border-bottom: 0;
}

.hardware-item span {
    color: #8c9dc0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.hardware-item strong {
    overflow: hidden;
    color: #d8eaff;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================
   FEATURES + FOOTER
========================= */

.features-section {
    padding-top: 54px;
    padding-bottom: 126px;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}

.feature-card {
    position: relative;
    min-height: 250px;
    padding: 27px;
    overflow: hidden;
    border: 1px solid rgba(139, 163, 227, 0.16);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(18, 26, 55, 0.64), rgba(9, 13, 30, 0.6));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 13px 31px rgba(0, 2, 16, 0.15);
    transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -64px;
    right: -64px;
    width: 155px;
    height: 155px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 234, 255, 0.18), transparent 67%);
    transition: transform 260ms ease;
}

.feature-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 27px;
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    box-shadow: 0 0 13px rgba(94, 234, 255, 0.5);
    transition: width 220ms ease;
}

.feature-card:hover {
    border-color: rgba(105, 228, 255, 0.38);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 21px 45px rgba(15, 57, 152, 0.19);
    transform: translateY(-7px);
}

.feature-card:hover::before {
    transform: scale(1.2);
}

.feature-card:hover::after {
    width: 72px;
}

.feature-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 23px;
    border: 1px solid rgba(103, 231, 255, 0.25);
    border-radius: 15px;
    place-items: center;
    font-size: 25px;
    background: linear-gradient(145deg, rgba(71, 168, 255, 0.19), rgba(133, 88, 255, 0.14));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 9px 22px rgba(50, 117, 255, 0.1);
}

.feature-card h3 {
    margin-bottom: 11px;
    color: #eef4ff;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.feature-card p {
    color: #99a9c9;
    font-size: 14px;
    line-height: 1.65;
}

footer {
    position: relative;
    padding: 61px 7% 50px;
    overflow: hidden;
    border-top: 1px solid rgba(140, 164, 225, 0.14);
    color: #7384a9;
    text-align: center;
    background: rgba(4, 6, 16, 0.42);
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(620px, 80vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
    transform: translateX(-50%);
}

footer .logo {
    justify-content: center;
    margin-bottom: 12px;
}

footer p {
    margin-bottom: 17px;
    color: #9aa8c3;
    font-size: 13px;
}

footer > span {
    color: #657493;
    font-family: var(--font-mono);
    font-size: 10px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
    .calculator {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card {
        min-height: 220px;
    }
}

@media (max-width: 720px) {
    .navbar {
        min-height: 70px;
        padding: 0 20px;
    }

    .navbar::after {
        right: 20px;
        left: 20px;
    }

    .navbar nav a:not(.feedback-button):not(.credit-link) {
        display: none;
    }

    .logo {
        font-size: 21px;
    }

    .feedback-button {
        padding: 10px 12px;
        font-size: 10px !important;
    }

    .hero {
        min-height: 640px;
        padding: 94px 20px 78px;
    }

    .hero h1 {
        letter-spacing: -0.07em;
    }

    .hero p {
        max-width: 520px;
        margin-top: 24px;
        font-size: 15px;
    }

    .calculator-section,
    .features-section {
        padding-right: 16px;
        padding-left: 16px;
    }

    .calculator-section {
        padding-top: 76px;
        padding-bottom: 64px;
    }

    .features-section {
        padding-top: 30px;
        padding-bottom: 76px;
    }

    .section-title {
        margin-bottom: 35px;
    }

    .section-title p {
        font-size: 14px;
    }

    .settings-panel,
    .results-panel {
        padding: 23px;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 590px;
    }

    .hero-button {
        width: 100%;
        max-width: 320px;
        min-height: 53px;
        padding: 0 16px;
        font-size: 12px;
    }

    .badge {
        padding: 8px 11px;
        font-size: 9px;
        letter-spacing: 0.09em;
    }

    .result-header {
        align-items: flex-start;
    }

    .result-header h3 {
        font-size: 19px;
    }

    .status {
        margin-top: 2px;
        padding: 7px 8px;
        font-size: 8px;
    }

    .main-fps {
        padding: 32px 12px 27px;
    }

    .stats-grid {
        gap: 8px;
    }

    .stat-card {
        padding: 15px 6px 13px;
    }

    .stat-card strong {
        font-size: 39px;
    }

    .stat-card span {
        font-size: 7px;
        letter-spacing: 0.03em;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

