/* ==============================================
   ndev.asia — Apple-Inspired Design System
   Colors: Black, White, Silver, Blue, Gold, Purple
============================================== */

:root {
    --black: #000000;
    --bg: #0a0a0a;
    --bg-alt: #111111;
    --white: #f5f5f7;
    --silver: #86868b;
    --blue: #2997ff;
    --gold: #ffd60a;
    --purple: #bf5af2;
    --green: #30d158;
    --red: #ff453a;
    --border: rgba(255, 255, 255, 0.08);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-blue {
    color: var(--blue) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.text-purple {
    color: var(--purple) !important;
}

.text-green {
    color: var(--green) !important;
}

.text-white {
    color: var(--white) !important;
}

.dim {
    color: var(--silver);
    font-weight: 400;
}

.bg-alt {
    background: var(--bg-alt);
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================
   NAVBAR — Apple-style compact bar
============================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 48px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1rem, 4vw, 3rem);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    background: rgba(0, 0, 0, 0.9);
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo .w {
    color: var(--white);
}

.logo .b {
    color: var(--blue);
}

.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.8rem;
}

.nav-links a {
    color: var(--silver);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    padding: 0.4rem 1rem !important;
    border-radius: 980px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-cta:hover {
    border-color: var(--blue);
    color: var(--blue) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
}

/* ==============================================
   HERO — Centered, cinematic
============================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background:
        radial-gradient(ellipse 50% 60% at 50% 40%, rgba(41, 151, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 30% 60%, rgba(191, 90, 242, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--green);
    padding: 0.4rem 1rem;
    border-radius: 980px;
    background: rgba(48, 209, 88, 0.08);
    border: 1px solid rgba(48, 209, 88, 0.2);
    margin-bottom: 2rem;
    animation: fadeIn 1s ease;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    animation: fadeUp 1s ease 0.2s both;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--silver);
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto 2.5rem;
    animation: fadeUp 1s ease 0.4s both;
}

.hero-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 1s ease 0.6s both;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--blue);
    color: #fff;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1a8aff;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(41, 151, 255, 0.3);
}

.btn-ghost {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--white);
    border-radius: 980px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   STATS BAR — Horizontal row
============================================== */
.stats-bar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 3rem;
}

.stat-num {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--silver);
    margin-top: 0.3rem;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

/* ==============================================
   SECTION SHARED — Cinematic spacing
============================================== */
.section-cinematic {
    padding: 7rem 0;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--silver);
    max-width: 550px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.section-cinematic>.container>.eyebrow,
.section-cinematic>.container>.headline,
.section-cinematic>.container>.section-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ==============================================
   WHY US — Two side-by-side cards
============================================== */
.two-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.fc-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.fc-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--silver);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.feature-card strong {
    color: var(--white);
}

.check-list {
    list-style: none;
}

.check-list li {
    font-size: 0.88rem;
    color: var(--silver);
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.check-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* ==============================================
   APP SHOWCASE — 2x2 card grid
============================================== */
.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.app-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.3s;
}

.app-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* App Icon — small box with subtle glow */
.app-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
}

/* Glow effect — constrained to the icon box */
.glow-blue {
    box-shadow: 0 0 20px rgba(41, 151, 255, 0.3), inset 0 0 15px rgba(41, 151, 255, 0.1);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(191, 90, 242, 0.3), inset 0 0 15px rgba(191, 90, 242, 0.1);
}

.glow-gold {
    box-shadow: 0 0 20px rgba(255, 214, 10, 0.3), inset 0 0 15px rgba(255, 214, 10, 0.1);
}

.glow-green {
    box-shadow: 0 0 20px rgba(48, 209, 88, 0.3), inset 0 0 15px rgba(48, 209, 88, 0.1);
}

.app-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.app-card p {
    font-size: 0.88rem;
    color: var(--silver);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex: 1;
}

.app-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 980px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid;
    width: fit-content;
}

.app-btn.blue {
    color: var(--blue);
    border-color: rgba(41, 151, 255, 0.3);
    background: rgba(41, 151, 255, 0.06);
}

.app-btn.blue:hover {
    background: var(--blue);
    color: #fff;
}

.app-btn.purple {
    color: var(--purple);
    border-color: rgba(191, 90, 242, 0.3);
    background: rgba(191, 90, 242, 0.06);
}

.app-btn.purple:hover {
    background: var(--purple);
    color: #fff;
}

.app-tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.app-tag.gold {
    color: var(--gold);
    background: rgba(255, 214, 10, 0.08);
    border: 1px solid rgba(255, 214, 10, 0.2);
}

.app-tag.green {
    color: var(--green);
    background: rgba(48, 209, 88, 0.08);
    border: 1px solid rgba(48, 209, 88, 0.2);
}

/* ==============================================
   PRICING TEASER — 4 compact cards
============================================== */
.pricing-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.price-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: border-color 0.3s, transform 0.3s;
}

.price-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.price-card.featured {
    border-color: var(--blue);
    background: rgba(41, 151, 255, 0.04);
}

.pc-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.85rem;
    border-radius: 980px;
    white-space: nowrap;
}

.pc-name {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 0.5rem;
}

.pc-machine {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-price {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.3rem;
}

.pc-price span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--silver);
}

.pc-note {
    font-size: 0.78rem;
    color: var(--silver);
}

/* ==============================================
   CTA / AUDIT SECTION
============================================== */
.cta-block {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.cta-block .eyebrow,
.cta-block .headline,
.cta-block .section-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.audit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.audit-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s;
}

.audit-item:hover {
    transform: translateY(-3px);
}

.ai-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.8rem;
}

.audit-item h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.audit-item p {
    font-size: 0.82rem;
    color: var(--silver);
}

.cta-actions {
    text-align: center;
}

.cta-sub {
    font-size: 0.88rem;
    color: var(--silver);
    margin-top: 1rem;
}

.cta-sub a {
    text-decoration: none;
    font-weight: 600;
}

/* ==============================================
   FOOTER
============================================== */
footer {
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-brand .logo {
    font-size: 1.3rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.82rem;
    color: var(--silver);
    line-height: 1.6;
}

.footer-col h5 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--silver);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.footer-col a {
    display: block;
    font-size: 0.88rem;
    color: var(--silver);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--silver);
}

/* ==============================================
   RESPONSIVE
============================================== */
@media (max-width: 900px) {
    .two-cards {
        grid-template-columns: 1fr;
    }

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

    .pricing-row {
        grid-template-columns: 1fr 1fr;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .pricing-row {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 48px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .container {
        padding: 0 1.2rem;
    }

    .section-cinematic {
        padding: 4rem 0;
    }

    .stat-divider {
        display: none;
    }

    .stats-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
}