:root {
    --primary: #f5f5f5;
    --primary-dark: #e2e8f0;
    --primary-text: #020617;
    --text: #f8fafc;
    --muted: #9aa5b1;
    --background: #000000;
    --surface: #0f1419;
    --border: #1f2933;
    --radius-sm: 6px;
    --radius-md: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.brand a {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-size: 0.95rem;
    position: relative;
}

.nav-group {
    display: flex;
    gap: 1.25rem;
}

.nav-links a {
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
    background: var(--primary);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.nav-links a:focus-visible {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-cta .button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 999px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.08);
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
    z-index: 1201;
}

.nav-toggle:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.45);
    outline-offset: 2px;
}

.nav-toggle:hover {
    border-color: rgba(148, 163, 184, 0.6);
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bar::before {
    top: -6px;
}

.nav-toggle-bar::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
    transform: translateY(-6px) rotate(-45deg);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.2rem;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.button:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.45);
    outline-offset: 3px;
}

.button.primary {
    background: var(--primary);
    color: var(--primary-text);
}

.button.primary:hover,
.button.primary:focus-visible {
    background: var(--primary-dark);
}

.button.ghost {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.button.ghost:hover,
.button.ghost:focus-visible {
    background: rgba(59, 130, 246, 0.1);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: clamp(3rem, 6vw, 4rem) clamp(2rem, 6vw, 4rem);
    text-align: center;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-md);
    box-shadow: 0 32px 64px rgba(2, 6, 23, 0.45);
}

.hero-text {
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeSlideUp 0.9s ease both;
    animation-delay: 0.05s;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    margin: 0;
}

.hero-text p {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
    width: 100%;
}

.social-proof {
    margin: 3rem 0;
    text-align: center;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-md);
    padding: 1.75rem clamp(1.5rem, 5vw, 3rem);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.35);
    animation: fadeSlideUp 0.9s ease both;
    animation-delay: 0.3s;
}

.social-proof p {
    margin: 0 0 1.25rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.78);
    opacity: 0.9;
}

.logo-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.browser-mockup {
    width: min(960px, 96vw);
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #0b1016;
    box-shadow: 0 32px 64px rgba(2, 6, 23, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeSlideUp 0.9s ease both;
    animation-delay: 0.18s;
}

.browser-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #05070a;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background: #ef4444;
}

.dot-yellow {
    background: #facc15;
}

.dot-green {
    background: #22c55e;
}

.browser-address {
    flex: 1;
    padding: 0.35rem 0.75rem;
    background: #111827;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--muted);
    border: 1px solid var(--border);
}

.browser-content {
    display: flex;
    flex-direction: column;
    background: linear-gradient(140deg, rgba(15, 20, 25, 0.9), rgba(31, 41, 51, 0.8));
    min-height: 420px;
}

.browser-sidebar {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: #05070a;
    border-bottom: 1px solid var(--border);
}

.sidebar-item {
    flex: 1 1 44px;
    min-width: 44px;
    height: 36px;
    border-radius: 10px;
    background: #111827;
    opacity: 0.45;
}

.sidebar-item.active {
    opacity: 1;
    background: rgba(245, 245, 245, 0.85);
}

.browser-main {
    flex: 1;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-header {
    height: 48px;
    border-radius: 12px;
    background: rgba(245, 245, 245, 0.08);
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.metric-card {
    height: 92px;
    border-radius: 14px;
    background: rgba(245, 245, 245, 0.08);
}

.dashboard-table {
    display: grid;
    gap: 0.75rem;
}

.table-row {
    height: 48px;
    border-radius: 12px;
    background: rgba(245, 245, 245, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.06);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.12);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.3);
}

.feature-grid article {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    animation: fadeSlideUp 0.8s ease both;
}

.feature-grid article:nth-child(2) {
    animation-delay: 0.15s;
}

.feature-grid article:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-grid h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.callout {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 2.5rem;
    text-align: center;
    margin: 4rem 0;
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.35);
    animation: fadeSlideUp 0.9s ease both;
}

.callout p {
    max-width: 480px;
    margin: 0.5rem auto 1.5rem;
    color: var(--muted);
}

.callout-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header {
    padding: 3rem 0 1rem;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--muted);
}

.feature-list,
.feature-highlight,
.pricing-grid,
.support-grid,
.faq-list {
    display: grid;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.feature-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-highlight {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-highlight div,
.policy,
.support-grid article,
.faq-list article {
    background: var(--surface);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.policy h2:not(:first-child) {
    margin-top: 2rem;
}

.pricing {
    margin-bottom: 4rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.12);
    padding: clamp(1.5rem, 5vw, 2.75rem);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.3);
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: stretch;
}

.pricing-grid article {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeSlideUp 0.85s ease both;
}

.pricing-grid article:nth-child(2) {
    animation-delay: 0.15s;
}

.pricing-grid article:nth-child(3) {
    animation-delay: 0.3s;
}

.pricing-grid article ul {
    margin: 0;
    padding-left: 1.1rem;
    text-align: left;
}

.pricing-grid .price {
    font-size: 2rem;
    font-weight: 700;
}

.pricing-grid .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
}

.pricing-grid .featured {
    border-color: var(--primary);
    box-shadow: 0 16px 32px rgba(15, 20, 25, 0.45);
}

.plan-compare {
    margin: 4rem 0;
    text-align: center;
    background: rgba(15, 23, 42, 0.55);
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.12);
    padding: clamp(1.5rem, 5vw, 3rem);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.32);
    animation: fadeSlideUp 0.9s ease both;
}

.plan-compare p {
    max-width: 560px;
    margin: 0.5rem auto 2rem;
    color: var(--muted);
}

.comparison-table {
    display: grid;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    overflow-x: auto;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-cell {
    padding: 1rem 1.25rem;
    border-right: 1px solid var(--border);
    font-weight: 500;
}

.comparison-row .comparison-cell:last-child {
    border-right: none;
}

.comparison-header {
    background: rgba(245, 245, 245, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.comparison-header .comparison-cell {
    font-weight: 600;
}

.feature-cell {
    text-align: left;
    font-weight: 600;
}

.comparison-row .comparison-cell:not(.feature-cell) {
    text-align: center;
}

.comparison-row:nth-child(even):not(.comparison-header) {
    background: rgba(15, 23, 42, 0.3);
}

.comparison-row:nth-child(odd):not(.comparison-header) {
    background: rgba(15, 23, 42, 0.2);
}

.comparison-row:hover {
    background: rgba(15, 20, 25, 0.4);
}

.compare-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.compare-icon::before {
    font-size: 0.95rem;
    line-height: 1;
}

.compare-icon.check {
    background: rgba(245, 245, 245, 0.12);
    border-color: rgba(245, 245, 245, 0.45);
    color: var(--primary);
}

.compare-icon.check::before {
    content: "\2713";
}

.compare-icon.limited {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    color: rgba(59, 130, 246, 0.9);
}

.compare-icon.limited::before {
    content: "\2713";
}

.compare-icon.dash {
    opacity: 0.5;
}

.compare-icon.dash::before {
    content: "\2014";
    font-size: 1.1rem;
}

.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;
}

.mobile-showcase {
    margin: 4rem 0;
    padding: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 55%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.65), rgba(2, 6, 23, 0.85));
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: var(--radius-md);
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.35);
}

.mobile-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: min(280px, 70vw);
    aspect-ratio: 9 / 19.5;
    border-radius: 32px;
    padding: 12px;
    background: linear-gradient(160deg, rgba(148, 163, 184, 0.35), rgba(30, 64, 175, 0.25));
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.6);
    animation: fadeSlideUp 0.9s ease both;
    animation-delay: 0.2s;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, #05070a, #111827);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.phone-notch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 18px;
    border-radius: 999px;
    background: #05070a;
    z-index: 2;
}

.phone-header,
.phone-footer {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-time {
    width: 64px;
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
}

.phone-status {
    width: 48px;
    height: 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.45);
}

.phone-content {
    flex: 1;
    display: grid;
    gap: 12px;
    padding: 0 16px;
}

.phone-card {
    height: 52px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.phone-card.large {
    height: 80px;
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.35);
}

.phone-chart {
    height: 96px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.25), rgba(148, 163, 184, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.phone-pill {
    width: 64px;
    height: 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.4);
    margin: 0 auto;
}

.mobile-copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: fadeSlideUp 0.9s ease both;
    animation-delay: 0.25s;
}

.mobile-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.mobile-copy p {
    color: var(--muted);
    margin: 0;
    max-width: 460px;
}

.mobile-copy ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    display: grid;
    gap: 0.5rem;
}

.mobile-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.support-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.support-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 4rem;
}

.support-form form {
    display: grid;
    gap: 1rem;
}

.support-form input,
.support-form textarea {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font: inherit;
    background: #111827;
    color: var(--text);
}

.support-form input::placeholder,
.support-form textarea::placeholder {
    color: var(--muted);
}

.support-form input:focus-visible,
.support-form textarea:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.35);
    border-color: var(--primary);
}

.faq-list article h2 {
    margin-bottom: 0.5rem;
}

.content {
    padding: 2rem 0 4rem;
}

.site-footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: left;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-brand a {
    font-weight: 600;
    color: var(--text);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.footer-nav a {
    color: var(--muted);
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-nav a:focus-visible {
    color: var(--primary);
    outline: 2px solid rgba(59, 130, 246, 0.35);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: fixed;
        top: calc(72px + 1rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        gap: 2rem;
        padding: 1.75rem;
        background: rgba(2, 6, 23, 0.95);
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: var(--radius-md);
        box-shadow: 0 24px 48px rgba(2, 6, 23, 0.45);
        z-index: 1100;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-group {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .nav-cta {
        flex-direction: column;
        align-items: stretch;
    }

    body.nav-open {
        overflow: hidden;
    }

    .site-header .container {
        justify-content: space-between;
    }

    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-showcase {
        padding: 2rem;
    }

    .mobile-copy {
        align-items: flex-start;
    }
}

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