/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
    --primary: #7B8CDE;
    --primary-light: #DCE1FB;
    --primary-dark: #3A4578;
    --text: #E8E8EC;
    --text-muted: #B0B3C2;
    --bg: #1A1A2E;
    --bg-alt: #16213E;
    --bg-surface: #1F2B47;
    --bg-dark: #0F1422;
    --border: #4A5078;
    --border-light: #2D3558;
    --badge-success: #2ECC71;
    --badge-error: #E74C3C;
    --privacy-badge-bg: #253254;
    --privacy-badge-text: #A5B4FC;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-label--light {
    color: var(--privacy-badge-text);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

.section-title--light {
    color: var(--primary-light);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 48px;
}

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

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    padding: 14px 28px;
}

.btn--primary {
    background: var(--primary);
    color: var(--bg);
}

.btn--primary:hover {
    background: var(--primary-light);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn__icon {
    flex-shrink: 0;
}

.btn--stacked {
    align-items: center;
    gap: 12px;
    text-align: left;
}

.btn-stacked__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.btn-stacked__text small {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.2px;
    padding-top: 3px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    transition: var(--transition);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    height: 72px;
}

.header__nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
}

.header__logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.header__logo:hover {
    color: var(--primary-light);
}

.header__nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.header__nav a:hover::after {
    width: 100%;
}

.header__nav a.active {
    color: var(--primary);
}

.header__nav a.active::after {
    width: 100%;
}

.header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    padding: 100px 0 140px;
    background: var(--bg);
    overflow: visible;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    padding-top: 20px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--badge-success);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.badge-icon {
    font-size: 16px;
}

.hero__title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Phone Mockup */
.hero__visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    position: relative;
    width: 280px;
}



/* ========================================
   FEATURES
   ======================================== */
.features {
    padding: 120px 0;
    background: var(--bg-alt);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--primary-dark);
    padding: 32px 28px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.feature-card__icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.feature-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.feature-card__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   SCREENSHOTS
   ======================================== */
.screenshots {
    padding: 120px 0;
    background: var(--bg-surface);
}

.screenshots__carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.screenshot-card {
    text-align: center;
    cursor: pointer;
}

.screenshot-card__frame {
    background: var(--bg-surface);
    border-radius: var(--radius);
    margin-bottom: 16px;
    aspect-ratio: 9/16;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.screenshot-placeholder span {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.screenshot-placeholder p {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.screenshot-placeholder small {
    font-size: 0.85rem;
}

.screenshot-card__label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

/* ========================================
   PRIVACY
   ======================================== */
.privacy {
    padding: 120px 0;
    background: var(--bg);
}

.privacy__header {
    max-width: 700px;
    margin: 0 auto 60px 0;
    text-align: left;
}

.privacy__text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.privacy__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0;
}

.privacy-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    cursor: pointer;
}

.privacy-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.privacy-card__icon {
    font-size: 32px;
    color: var(--primary);
    flex-shrink: 0;
}

.privacy-card__text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

/* ========================================
   ABOUT PROJECT
   ======================================== */
.about-project {
    padding: 120px 0;
    background: var(--bg-surface);
}

.about-project__header {
    max-width: 700px;
    margin: 0 auto 60px 0;
    text-align: left;
}

.about-project__content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.about-project__text-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-project__quote {
    text-align: left;
    padding: 0;
    background: none;
    border: none;
    cursor: default;
}

.about-project__quote:hover {
    border-color: transparent;
    transform: none;
}

.about-project__quote-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 24px;
}

.about-project__quote-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 24px;
}

.about-project__author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-project__author strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.about-project__author span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-project__divider {
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin-top: 24px;
}

.about-project__visual {
    position: sticky;
    top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-project__image {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: var(--radius);
}

.about-project__details {
    max-width: 100%;
}

.about-project__text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-project__text:last-child {
    margin-bottom: 0;
}

.about-project__stats {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-alt);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    margin-top: 40px;
}

.about-project__stats-icon {
    font-size: 32px;
    color: var(--primary);
    flex-shrink: 0;
}

.about-project__stats-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-project__stats-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.about-project__stats-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
    padding: 120px 0;
    background: var(--bg);
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
}

.step {
    text-align: center;
    max-width: 260px;
    padding: 0 20px;
}

.step__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.step__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step__connector {
    width: 60px;
    height: 2px;
    background: var(--border);
    margin-top: 28px;
    flex-shrink: 0;
}

/* ========================================
   FAQ
   ======================================== */
.faq {
    padding: 120px 0;
    background: var(--bg-alt);
}

.faq__list {
    max-width: 720px;
    margin: 0 auto;
}

.faq__item {
    background: var(--bg-surface);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq__item[open] {
    border-color: var(--primary);
}

.faq__question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.faq__question::marker {
    display: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary);
    transition: var(--transition);
}

.faq__item[open] .faq__question::after {
    content: '−';
}

.faq__question:hover {
    color: var(--primary);
}

.faq__answer {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   CTA FINAL
   ======================================== */
.cta-final {
    padding: 100px 0;
    background: var(--bg-surface);
    text-align: center;
}

.cta-final__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.cta-final__text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 48px 0 32px;
    background: var(--bg-dark);
    text-align: center;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer__logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer__academic {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}

.footer__links a:hover {
    color: var(--text);
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--border);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        justify-content: center;
    }

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

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

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

@media (max-width: 768px) {
    .header__toggle {
        display: flex;
        margin-left: auto;
    }

    .header__nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
    }

    .header__nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    .header__nav a {
        padding: 14px 24px;
        width: 100%;
        text-align: center;
        font-size: 1.05rem;
    }

    .header__nav a::after {
        display: none;
    }

    .hero {
        padding: 120px 0 100px;
    }

    .phone-mockup {
        width: 240px;
    }

    .footer {
        padding: 40px 0 28px;
    }

    .footer__links {
        gap: 14px 24px;
    }

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

    .screenshots__carousel {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .step__connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .btn--lg {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .hero__cta {
        flex-direction: column;
        width: 100%;
    }

    .footer__links {
        flex-direction: column;
        gap: 14px;
    }

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

    .privacy-card {
        padding: 20px;
    }

    .privacy-card__icon {
        font-size: 28px;
    }

.about-project__header {
    max-width: 700px;
    margin: 0 auto 60px 0;
    text-align: left;
}

.about-project__quote {
        padding: 30px 24px;
    }

    .about-project__content {
        grid-template-columns: 1fr;
    }

    .about-project__visual {
        position: static;
        padding-top: 0;
    }

    .about-project__image {
        max-width: 280px;
    }

    .about-project__divider {
        margin: 60px 0 40px;
    }
}
