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

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container, .container-wide {
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
}

footer {
    flex-shrink: 0;
}

header {
    background-color: #000000;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 180px;
}

header img {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

header img {
    height: 160px;
    margin-right: 15px;
}

header h1 {
    color: #ff8800;
    font-size: 22px;
    margin: 0;
}

.container {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

h2 {
    color: #111111;
}

input[type=email], input[type=password] {
    width: 100%;
    padding: 10px;
    margin: 8px 0 16px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=submit] {
    background-color: #ff8800;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #e67a00;
}

a {
    color: #ff8800;
}

.status-connected {
    color: green;
    font-weight: bold;
}

.status-not-connected {
    color: #888;
    font-weight: bold;
}

.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    color: #444;
    max-width: 500px;
    margin: 0 auto 30px auto;
}

.btn {
    display: inline-block;
    background-color: #ff8800;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.btn:hover {
    background-color: #e67a00;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #ffffff;
    margin-left: 10px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.feature-card {
    background-color: #000000;
    color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    max-width: 220px;
    text-align: center;
}

.feature-card h3 {
    color: #ff8800;
    margin-top: 0;
}



.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.nav-links a:hover {
    color: #ff8800;
}

footer {
    background-color: #000000;
    color: #cccccc;
    text-align: center;
    padding: 24px;
    margin-top: 60px;
    font-size: 14px;
}

footer a {
    color: #ff8800;
    text-decoration: none;
    margin: 0 8px;
}

.hero {
    background-color: #000000;
    color: #ffffff;
    border-radius: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 80px 20px;
}

.hero p {
    color: #cccccc;
}

.hero h2 {
    color: #ffffff;
}

.pricing {
    text-align: center;
    padding: 60px 20px;
}

.price-card {
    display: inline-block;
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 40px;
    max-width: 280px;
    border: 2px solid #ff8800;
}

.price-card .amount {
    font-size: 40px;
    color: #ff8800;
    font-weight: bold;
    margin: 10px 0;
}

.price-card .trial {
    color: #111111;
    font-weight: bold;
    margin-bottom: 20px;
}

.nav-links a.active {
    border-bottom: 3px solid #ff8800;
    padding-bottom: 6px;
}

.auth-card {
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 40px;
    max-width: 380px;
    margin: 60px auto;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 4px;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 24px;
}

.auth-card label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.btn-full {
    background-color: #ff8800;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.btn-full:hover {
    background-color: #e67a00;
}

.auth-footer-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

.dash-card {
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    margin: 60px auto;
}

.dash-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.dash-label {
    font-weight: bold;
    color: #111111;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b00;
    margin: 8px 0 0 0;
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background-color: #2a2a2a;
    border-radius: 5px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-bar-fill {
    width: 40%;
    height: 100%;
    background-color: #ff6b00;
    border-radius: 5px;
    animation: progress-slide 1.5s ease-in-out infinite;
}

@keyframes progress-slide {
    0% { margin-left: -40%; }
    100% { margin-left: 100%; }
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.dash-grid .dash-card {
    margin: 0;
    max-width: none;
    min-width: 0;
}

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

.btn-secondary-dark {
    display: inline-block;
    background-color: transparent;
    color: #111111;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #111111;
}

.btn-secondary-dark:hover {
    background-color: #111111;
    color: #ffffff;
}

.feature-icon {
    font-size: 2rem;
    color: #ff8800;
    margin-bottom: 12px;
    display: block;
}

.hero-stat {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff8800;
    margin: 12px 0;
}

.hero-stat-block {
    margin: 24px 0;
}

.hero-stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #ff8800;
    line-height: 1;
}

.hero-stat-label {
    display: block;
    font-size: 1rem;
    color: #ffffff;
    margin-top: 6px;
}

.promo-banner {
    background-color: #ff8800;
    color: #000000;
    text-align: center;
    padding: 10px 40px;
    font-weight: bold;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.promo-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #000000;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.nav-links {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.pricing-card {
    text-align: center;
    max-width: 400px;
}

.pricing-card h2 {
    font-size: 3rem;
    color: #ff8800;
    margin-bottom: 4px;
}

.pricing-period {
    font-size: 1rem;
    color: #666;
}

.pricing-included {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
    text-align: left;
}

.pricing-included li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-included li::before {
    content: "\2713";
    color: #ff8800;
    font-weight: bold;
    margin-right: 10px;
}

/* --- Design polish pass --- */

.dash-card, .feature-card, .auth-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 136, 0, 0.25);
}

.btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-shadow: 0 4px 14px rgba(255, 136, 0, 0.35);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 136, 0, 0.45);
}

.btn-secondary, .btn-secondary-dark {
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover, .btn-secondary-dark:hover {
    transform: translateY(-2px);
}

header {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero {
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 136, 0, 0.16) 0%, transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(255, 136, 0, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 30% 20%, #262626 0%, #000000 60%);
}

.hero h2 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links a {
    transition: color 0.15s ease, opacity 0.15s ease;
}

.pricing-card {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.status-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: none;
    margin: 0 0 20px 0;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    flex-shrink: 0;
}

.status-icon-connected {
    background-color: #22c55e;
}

.status-icon-disconnected {
    background-color: #9ca3af;
}

.status-title {
    font-weight: 700;
    font-size: 16px;
}

.status-sub {
    font-size: 13px;
    color: #888;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.status-cancel-link {
    font-size: 13px;
    color: #888;
    text-decoration: none;
}

.status-cancel-link:hover {
    text-decoration: underline;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.badge-marketplace {
    background-color: #f0f0f0;
    color: #333333;
}

.badge-active {
    background-color: #dcfce7;
    color: #16a34a;
}

.badge-trial {
    background-color: #fff3e0;
    color: #ff8800;
}

.badge-ended {
    background-color: #fee2e2;
    color: #dc2626;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

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

.metric-card {
    max-width: none;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.metric-card .dash-label {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dashboard-dark {
    background-color: #12121f;
    color: #e5e5f0;
}

body.dashboard-dark .container {
    color: #e5e5f0;
}

body.dashboard-dark .dash-card {
    background-color: #1c1c2e;
    color: #e5e5f0;
}

body.dashboard-dark .status-title {
    color: #ffffff;
}

body.dashboard-dark .status-sub {
    color: #9a9ab5;
}

body.dashboard-dark .dash-label {
    color: #9a9ab5;
}

body.dashboard-dark .stat-number {
    color: #ff8800;
}

body.dashboard-dark .badge-marketplace {
    background-color: #2a2a42;
    color: #c5c5dd;
}

body.dashboard-dark .btn-secondary-dark {
    color: #e5e5f0;
    border-color: #e5e5f0;
}

body.dashboard-dark .btn-secondary-dark:hover {
    background-color: #e5e5f0;
    color: #12121f;
}

body.dashboard-dark .progress-bar-track {
    background-color: #2a2a42;
}

.container-wide {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.metrics-grid {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 900px) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.metric-explain {
    font-size: 12px;
    color: #888;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

body.dashboard-dark .metric-explain {
    color: #6e6e8a;
}

html {
    min-height: 100%;
}

body.dashboard-dark {
    min-height: 100vh;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 136, 0, 0.12);
    color: #ff8800;
    border: 1px solid rgba(255, 136, 0, 0.35);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    animation: badgeGlow 2.5s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 136, 0, 0); }
    50% { box-shadow: 0 0 18px rgba(255, 136, 0, 0.45); }
}

.hero-gradient-text {
    background: linear-gradient(90deg, #ffb800 0%, #ff8800 50%, #ff3d00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtext {
    max-width: 600px;
    margin: 20px auto 0;
    color: #cfcfcf;
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero-cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-trust-line {
    margin-top: 18px;
    font-size: 13px;
    color: #8a8a8a;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 0;
}

.hero-trust-line span {
    white-space: nowrap;
}

.hero-trust-line span:not(:first-child)::before {
    content: '\00b7';
    margin: 0 10px;
    color: #555;
}

.hero {
    position: relative;
}

.hero-float-icon {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8800;
    font-size: 18px;
    animation: heroFloat 4s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero-float-1 { top: 8%; left: 6%; animation-delay: 0s; }
.hero-float-2 { top: 58%; left: 3%; animation-delay: 1.3s; }
.hero-float-3 { top: 10%; right: 6%; animation-delay: 0.6s; }
.hero-float-4 { top: 58%; right: 3%; animation-delay: 2s; }

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}

@media (max-width: 900px) {
    .hero-float-icon { display: none; }
}

.hero.hero-light {
    background: #ffffff;
}

.hero.hero-light h2 {
    color: #1a1a1a;
}

.hero.hero-light p,
.hero.hero-light .hero-subtext {
    color: #444444;
}

.hero.hero-light .hero-stat-label {
    color: #333333;
}

.hero.hero-light .hero-trust-line {
    color: #666666;
}

.hero.hero-light .hero-trust-line span:not(:first-child)::before {
    color: #999999;
}

.pricing-hero-price {
    font-size: 3.5rem;
    color: #ff8800;
    margin: 0 0 8px 0;
}

.pricing-hero-period {
    font-size: 1.2rem;
    color: #666666;
    font-weight: 400;
}

.pricing-card {
    margin: 0 auto 60px auto;
}

.pricing-card-subhead {
    text-align: center;
    margin-top: 0;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.pricing-price-box {
    display: inline-block;
    border: 3px solid #ff8800;
    border-radius: 16px;
    padding: 20px 48px;
    margin: 0 auto 20px auto;
    background: rgba(255, 136, 0, 0.06);
    box-shadow: 0 8px 30px rgba(255, 136, 0, 0.2);
}

.pricing-showcase {
    display: flex;
    justify-content: center;
    padding: 80px 20px 60px 20px;
}

.pricing-card-v2 {
    position: relative;
    background: #ffffff;
    border: 2px solid #1a1a1a;
    border-radius: 20px;
    padding: 48px 32px 32px 32px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.pricing-ribbon {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ffb800 0%, #ff8800 50%, #ff3d00 100%);
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(255, 136, 0, 0.4);
    white-space: nowrap;
}

.pricing-plan-name {
    margin: 12px 0 4px 0;
    font-size: 1.4rem;
    color: #1a1a1a;
}

.pricing-plan-sub {
    color: #666666;
    font-size: 0.9rem;
    margin: 0 0 20px 0;
}

.pricing-price-display {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 8px 0 4px 0;
}

.pricing-cta-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0 28px 0;
    background: linear-gradient(90deg, #1a1a1a 0%, #ff8800 100%);
    text-align: center;
}

.pricing-cta-btn:hover {
    background: linear-gradient(90deg, #000000 0%, #e67a00 100%);
}
.icon-svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    fill: currentColor;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.faq-item:first-child {
    border-top: 1px solid #e0e0e0;
}

.faq-question {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a1a;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: #ff8800;
    transition: transform 0.2s ease;
    margin-left: 16px;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    margin: 16px 0 0 0;
    color: #444444;
    line-height: 1.6;
}

/* ===== Mobile nav toggle (hidden on desktop) ===== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    border-radius: 2px;
}

/* ===== Mobile layout ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        min-height: 0;
        padding: 16px 20px;
        align-items: center;
    }

    header img {
        position: static;
        transform: none;
        height: 60px;
        margin: 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
    }

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

    .nav-center {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .nav-right {
        flex-direction: column;
        gap: 4px;
        width: 100%;
        margin-top: 12px;
    }

    .nav-links a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 10px 0;
        font-size: 17px;
    }

    .nav-links a.active {
        border-bottom: none;
        background-color: rgba(255, 136, 0, 0.12);
        border-radius: 4px;
    }

    .hero {
        padding: 48px 16px;
    }

    .hero h2 {
        font-size: 26px;
    }

    .hero-subtext,
    .hero p {
        font-size: 15px;
    }

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

    .hero-cta-row a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .container-wide {
        margin: 30px auto;
        padding: 0 16px;
    }

    .pricing-showcase {
        padding: 40px 16px 30px 16px;
    }

    .pricing-card-v2 {
        max-width: 100%;
    }

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

/* Below this width the container is already edge-to-edge, so the
   100vw full-bleed trick is unnecessary and causes the hero to
   render wider than the actual screen. Only use it on wide desktop. */
@media (max-width: 1140px) {
    .hero {
        width: 100%;
        position: static;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
}
