:root {
    --bg-deep: #000000;
    --bg-surface: #080808;
    --bg-card: #121212;
    --bg-elevated: #181818;
    --accent-gold: #c5a059;
    --accent-gold-strong: #e0bd71;
    --accent-gold-dim: rgba(197, 160, 89, 0.12);
    --accent-forest: #627665;
    --accent-wine: #703d45;
    --accent-ink: #202532;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #555555;
    --border-subtle: rgba(255, 255, 255, 0.055);
    --border-strong: rgba(255, 255, 255, 0.16);
    --shadow-deep: 0 35px 80px rgba(0, 0, 0, 0.62);
    --font-main: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-code: 'JetBrains Mono', monospace;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-main: all 0.8s var(--ease-out-expo);
    --transition-fast: all 0.26s ease;
    --header-height: 90px;
    --container-max-width: 1440px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(197, 160, 89, 0.12), transparent 28rem),
        radial-gradient(circle at 90% 18%, rgba(98, 118, 101, 0.11), transparent 25rem),
        var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.8;
    font-weight: 300;
    overflow-x: hidden;
    cursor: none;
}

body.command-open {
    overflow: hidden;
}

button,
a,
input,
textarea,
select {
    font: inherit;
}

button,
a,
input,
textarea,
select,
.hover-target {
    cursor: none;
}

button {
    border: 0;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--accent-gold-dim);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.2rem;
}

.section-padding {
    padding: 96px 0;
}

.type-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.type-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.76rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    color: var(--text-primary);
    font-size: clamp(3rem, 13vw, 7.5rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.9;
    margin-top: 1.2rem;
}

.section-copy {
    max-width: 650px;
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.75;
}

.section-head {
    display: grid;
    gap: 2.2rem;
    margin-bottom: 3.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 16px 28px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-primary);
    background: transparent;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: var(--transition-main);
    position: relative;
    overflow: hidden;
}

.btn-filled {
    color: #050505;
    background: var(--accent-gold);
}

.btn-filled:hover,
.btn-filled:focus-visible {
    color: #000;
    background: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.btn-outline {
    border-color: var(--border-strong);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.025);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    border-color: rgba(197, 160, 89, 0.45);
    background: var(--accent-gold-dim);
    color: var(--accent-gold-strong);
}

.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.025);
    transition: var(--transition-fast);
}

.icon-btn:hover,
.icon-btn:focus-visible {
    border-color: rgba(197, 160, 89, 0.45);
    color: var(--accent-gold-strong);
    background: var(--accent-gold-dim);
}

.reveal {
    opacity: 0;
    transform: translateY(54px);
    transition: var(--transition-main);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ringPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.2);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(197, 160, 89, 0);
    }
}

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #fff;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition:
        width 0.3s ease,
        height 0.3s ease,
        background 0.3s ease,
        opacity 0.2s ease;
}

#custom-cursor.hovering {
    width: 76px;
    height: 76px;
    background: var(--accent-gold);
    mix-blend-mode: normal;
}

#custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.15s ease-out, opacity 0.2s ease;
}

#custom-cursor.is-visible,
#custom-cursor-follower.is-visible {
    opacity: 1;
    visibility: visible;
}

.toast-stack {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: grid;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
    z-index: 9500;
    pointer-events: none;
}

.toast {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 8px;
    background: rgba(8, 8, 8, 0.94);
    color: var(--text-primary);
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(20px);
    animation: toastIn 0.35s ease both;
}

.toast i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #000;
    background: var(--accent-gold);
}

.toast strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.toast span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s var(--ease-out-expo);
}

.navbar.scrolled {
    height: 80px;
    background: rgba(0, 0, 0, 0.88);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
}

.nav-shell {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    color: var(--text-primary);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0;
    text-decoration: none;
}

.nav-logo span {
    color: var(--accent-gold);
    font-weight: 300;
}

.nav-links {
    position: fixed;
    top: 80px;
    left: 1.2rem;
    right: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.94);
    list-style: none;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: var(--transition-main);
}

.nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-links a {
    position: relative;
    display: flex;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
}

.nav-actions .btn {
    display: none;
}

.nav-toggle {
    display: inline-flex;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.025);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 21px;
    height: 1px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 100svh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #030303;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=2200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.14;
    transform: scale(1.04);
    will-change: transform;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.96)),
        linear-gradient(to top, var(--bg-deep), transparent 35%);
}

.hero-grid {
    position: relative;
    z-index: 5;
    display: grid;
    gap: 3rem;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.hero h1 {
    margin: 1.4rem 0 2rem;
    color: var(--text-primary);
    font-size: clamp(3.7rem, 16vw, 10.5rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.82;
}

.hero h1 span {
    display: block;
    font-size: 0.76em;
}

.hero-desc {
    max-width: 720px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: grid;
    gap: 1rem;
}

.phone-stage {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-stage::before {
    content: '';
    position: absolute;
    inset: 9% 0 auto;
    width: min(520px, 78vw);
    height: min(520px, 78vw);
    margin: auto;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.18), transparent 65%);
    filter: blur(10px);
}

.device-frame {
    position: relative;
    width: min(390px, calc(100vw - 2.4rem));
    min-height: 780px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 44px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
        #080808;
    box-shadow:
        0 44px 100px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.device-notch {
    position: absolute;
    top: 22px;
    left: 50%;
    width: 112px;
    height: 28px;
    border-radius: 0 0 18px 18px;
    background: #050505;
    transform: translateX(-50%);
    z-index: 8;
}

.device-screen {
    position: relative;
    height: 754px;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 0%, rgba(197, 160, 89, 0.14), transparent 13rem),
        radial-gradient(circle at 100% 25%, rgba(98, 118, 101, 0.16), transparent 13rem),
        #060606;
}

.app-view {
    position: absolute;
    inset: 0;
    padding: 4.2rem 1rem 6.2rem;
    overflow: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateX(18px);
    transition: var(--transition-main);
}

.app-view.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.app-topbar.compact {
    margin-bottom: 1.5rem;
}

.app-kicker {
    display: block;
    color: var(--accent-gold-strong);
    font-family: var(--font-code);
    font-size: 0.63rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.app-topbar h2 {
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: 0;
}

.avatar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 50%;
    color: #000;
    background: var(--accent-gold);
    font-weight: 900;
}

.weather-card {
    position: relative;
    padding: 1rem;
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(197, 160, 89, 0.18), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.035);
    overflow: hidden;
}

.weather-card::after {
    content: '';
    position: absolute;
    right: -44px;
    top: -54px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(197, 160, 89, 0.14);
}

.weather-main {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.weather-main i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #000;
    background: var(--accent-gold);
}

.weather-main strong {
    display: block;
    font-size: 2.7rem;
    line-height: 1;
}

.weather-main span,
.weather-meta span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.weather-meta {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.weather-meta span {
    display: inline-flex;
    justify-content: center;
    padding: 0.55rem 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
    margin: 1rem 0 1.4rem;
}

.quick-tile {
    display: grid;
    place-items: center;
    gap: 0.55rem;
    min-height: 84px;
    padding: 0.7rem 0.35rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.035);
    transition: var(--transition-fast);
}

.quick-tile i {
    color: var(--accent-gold-strong);
}

.quick-tile span {
    font-size: 0.68rem;
    font-weight: 700;
}

.quick-tile:hover,
.quick-tile:focus-visible {
    color: var(--text-primary);
    border-color: rgba(197, 160, 89, 0.35);
    background: var(--accent-gold-dim);
}

.section-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.section-mini-head h3 {
    font-size: 1rem;
    letter-spacing: 0;
}

.section-mini-head span {
    color: var(--accent-gold-strong);
    font-family: var(--font-code);
    font-size: 0.68rem;
}

.progress-track {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent-gold);
    transition: var(--transition-main);
}

.task-list {
    display: grid;
    gap: 0.75rem;
}

.task-list.full {
    padding-bottom: 1rem;
}

.task-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.032);
}

.task-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 50%;
    color: transparent;
    background: transparent;
    transition: var(--transition-fast);
}

.task-item.done .task-check {
    color: #000;
    background: var(--accent-gold);
}

.task-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.25;
}

.task-text span {
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.62rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.task-item.done .task-text {
    opacity: 0.58;
}

.task-delete {
    color: var(--text-muted);
    background: transparent;
    transition: var(--transition-fast);
}

.task-delete:hover {
    color: var(--accent-gold-strong);
}

.task-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.task-form input,
.task-form select,
.note-card textarea,
.command-search input {
    width: 100%;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.035);
}

.task-form input,
.task-form select {
    min-height: 48px;
    padding: 0 0.9rem;
}

.task-form .btn {
    min-height: 48px;
}

.timer-card {
    padding: 1.1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.032);
}

.timer-ring {
    width: 220px;
    height: 220px;
    margin: 0.5rem auto 1.4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(var(--accent-gold) var(--timer-progress, 0%), rgba(255, 255, 255, 0.08) 0),
        #090909;
    position: relative;
}

.timer-ring::before {
    content: '';
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: #070707;
}

.timer-ring span,
.timer-ring small {
    position: relative;
    z-index: 2;
    text-align: center;
}

.timer-ring span {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.timer-ring small {
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4.2rem;
    position: absolute;
}

.timer-ring.running {
    animation: ringPulse 2s infinite;
}

.timer-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
}

.timer-actions .btn {
    min-height: 48px;
}

.habit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.habit-card {
    min-height: 118px;
    padding: 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.032);
    transition: var(--transition-fast);
}

.habit-card.is-done {
    border-color: rgba(197, 160, 89, 0.45);
    background: var(--accent-gold-dim);
}

.habit-card i {
    color: var(--accent-gold-strong);
    margin-bottom: 0.8rem;
}

.habit-card strong {
    display: block;
    line-height: 1.2;
}

.habit-card span {
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.62rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.insight-card,
.chart-card,
.note-card {
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.032);
}

.insight-card {
    padding: 1rem;
}

.insight-card span {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.62rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.insight-card strong {
    font-size: 2rem;
    line-height: 1;
}

.chart-card {
    padding: 1rem;
    margin-bottom: 1rem;
}

.bar-chart {
    display: flex;
    align-items: end;
    gap: 0.55rem;
    height: 150px;
}

.bar {
    flex: 1;
    display: flex;
    align-items: end;
    justify-content: center;
    min-width: 0;
    height: 100%;
    border-radius: 999px 999px 4px 4px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.bar span {
    width: 100%;
    min-height: 10%;
    border-radius: inherit;
    background: linear-gradient(to top, var(--accent-gold), var(--accent-forest));
    transition: var(--transition-main);
}

.note-card {
    padding: 1rem;
}

.note-card label {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.note-card textarea {
    resize: none;
    padding: 0.9rem;
    line-height: 1.5;
}

.bottom-nav {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(18px);
}

.bottom-tab {
    display: grid;
    place-items: center;
    gap: 0.25rem;
    min-height: 58px;
    border-radius: 15px;
    color: var(--text-muted);
    background: transparent;
    transition: var(--transition-fast);
}

.bottom-tab i {
    font-size: 0.96rem;
}

.bottom-tab span {
    font-size: 0.62rem;
    font-weight: 700;
}

.bottom-tab.active {
    color: #000;
    background: var(--accent-gold);
}

.metrics-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.metric {
    min-height: 210px;
    padding: 2.2rem 1.3rem;
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.metric:first-child {
    border-top: 1px solid var(--border-subtle);
}

.metric strong {
    display: block;
    color: var(--text-primary);
    font-size: clamp(2.6rem, 11vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    margin: 1.2rem 0;
}

.metric p {
    color: var(--text-secondary);
    max-width: 260px;
}

.features-section {
    background: var(--bg-deep);
}

.feature-grid,
.handoff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.feature-card,
.handoff-card {
    padding: 1.45rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-surface);
    transition: var(--transition-main);
}

.feature-card:hover,
.handoff-card:hover {
    border-color: rgba(197, 160, 89, 0.35);
    background: #0c0c0c;
    transform: translateY(-6px);
}

.feature-card i {
    color: var(--accent-gold-strong);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3,
.handoff-card h3 {
    font-size: 1.35rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.feature-card p,
.handoff-card p {
    color: var(--text-secondary);
}

.system-section {
    background:
        linear-gradient(180deg, var(--bg-deep), var(--bg-surface));
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.system-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.system-copy p {
    color: var(--text-secondary);
    font-size: 1.12rem;
    line-height: 1.75;
    margin-top: 2rem;
}

.system-board {
    padding: 1.3rem;
    border: 1px solid rgba(197, 160, 89, 0.22);
    border-radius: 8px;
    background: rgba(8, 8, 8, 0.72);
    box-shadow: var(--shadow-deep);
}

.swatch-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.swatch-row span {
    display: block;
    aspect-ratio: 1;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.component-row {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mini-phone-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.mini-stat {
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.032);
}

.mini-stat span {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.mini-stat strong {
    font-size: 1.6rem;
    line-height: 1;
}

.handoff-section {
    background: var(--bg-deep);
}

.command-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.command-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.command-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
}

.command-panel {
    position: absolute;
    top: 6rem;
    left: 50%;
    width: min(720px, calc(100vw - 32px));
    border: 1px solid rgba(197, 160, 89, 0.22);
    border-radius: 8px;
    background: rgba(8, 8, 8, 0.96);
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(20px);
    transform: translate(-50%, -14px) scale(0.98);
    transition: var(--transition-main);
}

.command-modal.open .command-panel {
    transform: translate(-50%, 0) scale(1);
}

.command-search {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.command-search input {
    border: 0;
    background: transparent;
}

.command-results {
    max-height: 440px;
    overflow: auto;
    padding: 0.8rem;
}

.command-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-primary);
    background: transparent;
    text-align: left;
    transition: var(--transition-fast);
}

.command-item:hover,
.command-item:focus-visible {
    border-color: rgba(197, 160, 89, 0.28);
    background: var(--accent-gold-dim);
}

.command-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #000;
    background: var(--accent-gold);
}

.command-item strong {
    display: block;
    line-height: 1.2;
}

.command-item span {
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.66rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.command-item em {
    color: var(--accent-gold-strong);
    font-style: normal;
    font-size: 0.8rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }

    .hero-actions,
    .component-row {
        display: flex;
        flex-wrap: wrap;
    }

    .task-form {
        grid-template-columns: 1fr auto auto;
    }

    .metrics-grid,
    .feature-grid,
    .handoff-grid,
    .mini-phone-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .container {
        padding: 0 4rem;
    }

    .section-padding {
        padding: 150px 0;
    }

    .section-head {
        grid-template-columns: 0.95fr 1.05fr;
        align-items: end;
        gap: 6rem;
        margin-bottom: 5.5rem;
    }

    .nav-shell {
        grid-template-columns: auto 1fr auto;
        gap: 2.5rem;
    }

    .nav-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
        padding: 0;
        border: 0;
        background: transparent;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        backdrop-filter: none;
    }

    .nav-links a {
        display: inline-flex;
        padding: 0;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 0;
        height: 1px;
        background: var(--accent-gold);
        transition: var(--transition-fast);
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 100%;
    }

    .nav-actions .btn {
        display: inline-flex;
    }

    .hero {
        min-height: 92vh;
    }

    .hero-shade {
        background:
            linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.9) 100%),
            linear-gradient(to top, var(--bg-deep), transparent 35%);
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
        gap: 6rem;
        padding-top: 6rem;
        padding-bottom: 8rem;
    }

    .hero-desc {
        font-size: 1.35rem;
        margin-bottom: 3.5rem;
    }

    .metrics-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .metric {
        border-left: 0;
        border-bottom: 0;
        border-right: 1px solid var(--border-subtle);
    }

    .metric:first-child {
        border-left: 1px solid var(--border-subtle);
    }

    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feature-card {
        min-height: 300px;
        padding: 2rem;
    }

    .system-grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: 6rem;
    }

    .system-board {
        padding: 2rem;
    }

    .mini-phone-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .handoff-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .handoff-card {
        min-height: 260px;
        padding: 2rem;
    }
}

@media (min-width: 1280px) {
    .device-frame {
        width: 410px;
    }
}

@media (max-width: 430px) {
    .device-frame {
        min-height: 720px;
    }

    .device-screen {
        height: 694px;
    }

    .app-view {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .quick-grid {
        gap: 0.5rem;
    }

    .quick-tile {
        min-height: 76px;
    }

    .timer-ring {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 1024px), (hover: none), (pointer: coarse) {
    #custom-cursor,
    #custom-cursor-follower {
        display: none !important;
    }

    body,
    button,
    a,
    input,
    textarea,
    select,
    .hover-target {
        cursor: auto;
    }
}