/* ══════════════════════════════════════════
   GPC Scratch Landing Page — Styles
   ══════════════════════════════════════════ */

/* ── Reset & Variables ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a0f;
    --color-bg-alt: #12121a;
    --color-surface: #1a1a26;
    --color-surface-hover: #222233;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-text: #e4e4ed;
    --color-text-muted: #9a9ab0;
    --color-text-faint: #6b6b82;
    --color-primary: #6c5ce7;
    --color-primary-light: #a29bfe;
    --color-accent: #00cec9;
    --color-accent-light: #81ecec;
    --gradient-brand: linear-gradient(135deg, #6c5ce7, #a29bfe, #00cec9);
    --gradient-hero: radial-gradient(ellipse at 30% 0%, rgba(108, 92, 231, 0.15) 0%, transparent 60%),
                     radial-gradient(ellipse at 70% 0%, rgba(0, 206, 201, 0.10) 0%, transparent 60%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(108, 92, 231, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-primary: 'Inter', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Gradient text ── */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn--primary:hover {
    background: #5a4bd6;
    border-color: #5a4bd6;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.35);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-muted);
    border-color: var(--color-border);
}
.btn--ghost:hover {
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.btn--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-width: auto;
}
.btn--icon:hover {
    color: #7289da;
    border-color: #7289da;
    background: rgba(114, 137, 218, 0.08);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.15);
}
.btn--outline:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
    background: rgba(108, 92, 231, 0.06);
}

.btn--white {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
    font-weight: 700;
}
.btn--white:hover {
    background: #f0eeff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.btn--lg {
    padding: 14px 30px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* ══════════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all var(--transition);
    background: transparent;
}
.header.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-text);
}
.nav__logo img {
    border-radius: 10px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.nav__links a:hover {
    color: var(--color-text);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}
.mobile-menu.open {
    display: flex;
}
.mobile-menu a {
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}
.mobile-menu a:hover {
    color: var(--color-text);
}
.mobile-menu__actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.mobile-menu__actions .btn {
    flex: 1;
    justify-content: center;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
    padding: 160px 0 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary-light);
    margin-bottom: 24px;
}
.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00cec9;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero__title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.hero__stat {
    display: flex;
    flex-direction: column;
}
.hero__stat strong {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__stat span {
    font-size: 0.82rem;
    color: var(--color-text-faint);
}
.hero__stat-divider {
    width: 1px;
    height: 36px;
    background: var(--color-border);
}

/* Hero visual / mockup */
.hero__visual {
    position: relative;
}
.hero__visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2), transparent 70%);
    pointer-events: none;
}

.hero__mockup {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.mockup__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--color-border);
}
.mockup__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mockup__dot--red { background: #ff5f57; }
.mockup__dot--yellow { background: #ffbd2e; }
.mockup__dot--green { background: #28ca42; }
.mockup__title {
    margin-left: 12px;
    font-size: 0.82rem;
    color: var(--color-text-faint);
}

.mockup__body {
    display: grid;
    grid-template-columns: 160px 1fr;
    min-height: 280px;
}

.mockup__sidebar {
    padding: 16px 12px;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup__canvas {
    padding: 20px;
    position: relative;
}
.mockup__canvas-label {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.7rem;
    color: var(--color-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Blocks */
.block {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.block--motion { background: #4c97ff; }
.block--looks { background: #9966ff; }
.block--control { background: #ffab19; }
.block--events { background: #ffbf00; color: #333; }
.block--sensing { background: #5cb1d6; }

.block-stack {
    display: flex;
    flex-direction: column;
}
.block--snap {
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.block--snap:first-child {
    border-radius: 6px 6px 0 0;
}
.block--snap:last-child {
    border-radius: 0 0 6px 6px;
    border-bottom: none;
}
.block--indent {
    margin-left: 20px;
}

/* ══════════════════════════════════════════
   SECTION SHARED
   ══════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════ */
.features {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: rgba(108, 92, 231, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-card__icon--blue { background: rgba(76, 151, 255, 0.12); color: #4c97ff; }
.feature-card__icon--purple { background: rgba(108, 92, 231, 0.12); color: #a29bfe; }
.feature-card__icon--green { background: rgba(0, 206, 201, 0.12); color: #00cec9; }
.feature-card__icon--orange { background: rgba(255, 171, 25, 0.12); color: #ffab19; }
.feature-card__icon--pink { background: rgba(253, 121, 168, 0.12); color: #fd79a8; }
.feature-card__icon--teal { background: rgba(0, 184, 148, 0.12); color: #00b894; }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 0.93rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* ══════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════ */
.how-it-works {
    padding: 100px 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}
.step__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}
.step__content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.step__content p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.step__connector {
    width: 60px;
    height: 2px;
    background: var(--color-border);
    margin-top: 28px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════ */
.cta-section {
    padding: 40px 0 100px;
}

.cta-box {
    position: relative;
    background: var(--gradient-brand);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    overflow: hidden;
}
.cta-box__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1), transparent 60%);
    pointer-events: none;
}
.cta-box__logo {
    margin: 0 auto 20px;
    border-radius: 16px;
    filter: brightness(1.1);
}
.cta-box h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
    position: relative;
}
.cta-box p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto 28px;
    position: relative;
}
.cta-box .btn {
    position: relative;
}

/* ══════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════ */
.faq {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.faq__list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq__item[open] {
    border-color: rgba(108, 92, 231, 0.2);
}

.faq__question {
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    transition: color var(--transition);
}
.faq__question::-webkit-details-marker {
    display: none;
}
.faq__question:hover {
    color: var(--color-primary-light);
}

.faq__chevron {
    flex-shrink: 0;
    transition: transform var(--transition);
}
.faq__item[open] .faq__chevron {
    transform: rotate(180deg);
}

.faq__answer {
    padding: 0 24px 20px;
}
.faq__answer p {
    font-size: 0.93rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
    padding: 60px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.footer__logo img {
    border-radius: 8px;
}

.footer__brand p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 300px;
}

.footer__col h4 {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 16px;
}
.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__col a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.footer__col a:hover {
    color: var(--color-primary-light);
}

.footer__bottom {
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}
.footer__bottom p {
    font-size: 0.82rem;
    color: var(--color-text-faint);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero__visual {
        max-width: 540px;
        margin: 0 auto;
        width: 100%;
    }
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav__links,
    .nav__actions {
        display: none;
    }
    .nav__toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }
    .hero__title {
        font-size: clamp(2rem, 6vw, 2.6rem);
    }
    .hero__stats {
        gap: 16px;
    }
    .hero__stat strong {
        font-size: 1.1rem;
    }
    .hero__cta {
        flex-direction: column;
    }
    .hero__cta .btn {
        justify-content: center;
    }

    .mockup__body {
        grid-template-columns: 1fr;
    }
    .mockup__sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 12px;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }
    .step {
        padding: 0;
        max-width: 360px;
    }
    .step__connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero__stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .hero__stat-divider {
        display: none;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .feature-card {
        padding: 28px 20px;
    }
}
