/* ==========================================================================
   CTRL+ALT+Email LANDING PAGE
   Theme aligned with the taskpane's indigo/purple gradients and Raleway font.
   ========================================================================== */

/* ── CSS Custom Properties ── */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

:root {
    /* Core palette — matches taskpane.css */
    --bg-deep:    #0f172a;
    --bg-mid:     #1e1b4b;
    --bg-accent:  #312e81;
    --indigo-400: #818cf8;
    --indigo-300: #a5b4fc;
    --indigo-200: #c7d2fe;
    --slate-100:  #f1f5f9;
    --slate-200:  #e2e8f0;
    --slate-300:  #cbd5e1;
    --slate-400:  #94a3b8;
    --slate-500:  #64748b;
    --slate-700:  #334155;
    --white:      #ffffff;

    /* Layout */
    --max-width: 1200px;
    --section-py: 6rem;
    --section-px: 2rem;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    color: var(--slate-200);
    background: var(--bg-deep);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Disco Glow Effect (from taskpane) ── */
.disco-glow { position: relative; }

.disco-glow::before {
    content: '';
    --angle: 0deg;
    background: conic-gradient(from var(--angle),
        #ff2222 0deg, #ff8800 45deg, #ffee00 90deg,
        #22ff22 135deg, #00ffee 180deg, #0044ff 225deg,
        #8800ff 270deg, #ff00dd 315deg, #ff2222 360deg);
    position: absolute;
    top: -4px; left: -4px;
    width: calc(100% + 8px); height: calc(100% + 8px);
    z-index: -1;
    filter: blur(20px) saturate(2);
    animation: spin-gradient 20s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
}

.disco-glow:hover::before { opacity: 1; }

@keyframes spin-gradient {
    to { --angle: 360deg; }
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Glass Card (from taskpane) ── */
.glass-card {
    background: rgba(99, 102, 241, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(165, 180, 252, 0.2);
    border-radius: 12px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem var(--section-px);
    max-width: var(--max-width);
    margin: 0 auto;
    transition: all 0.3s ease;
}

.nav--scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(165, 180, 252, 0.1);
}

.nav__logo {
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
}

.nav__links {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--indigo-300);
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.nav__link:hover { color: var(--white); }

.nav__cta {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.625rem 1.5rem;
    background: var(--white);
    color: var(--bg-deep);
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(129, 140, 248, 0.4);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8rem var(--section-px) 4rem;
    background: linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-accent) 100%);
    overflow: hidden;
}

/* Grid background — matches app */
.hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Ambient glow orbs */
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.4;
}
.hero__glow--1 {
    width: 500px; height: 500px;
    background: rgba(99, 102, 241, 0.4);
    top: -100px; right: -100px;
}
.hero__glow--2 {
    width: 400px; height: 400px;
    background: rgba(139, 92, 246, 0.3);
    bottom: -50px; left: -80px;
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 720px;
}

.hero__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--indigo-300);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(165, 180, 252, 0.25);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.hero__title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero__title--gradient {
    background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--indigo-200);
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero__proof {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero__proof-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--slate-400);
}

.hero__proof-icon { font-size: 1rem; }

.hero__screenshot {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(165, 180, 252, 0.15);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
}

.btn--primary {
    background: var(--white);
    color: var(--bg-deep);
    padding: 0;
}

.btn__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--white);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.btn__icon {
    width: 1.125rem;
    height: 1.125rem;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(129, 140, 248, 0.35);
}

.btn--ghost {
    padding: 0.875rem 2rem;
    border: 1px solid rgba(165, 180, 252, 0.3);
    color: var(--indigo-300);
    background: transparent;
}

.btn--ghost:hover {
    border-color: rgba(165, 180, 252, 0.6);
    color: var(--white);
    background: rgba(99, 102, 241, 0.1);
}

.btn--full { width: 100%; }

.btn--lg .btn__inner {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-header__overline {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--indigo-400);
    margin-bottom: 1rem;
}

.section-header__title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1rem;
}

.section-header__subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--indigo-200);
}

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features {
    padding: var(--section-py) var(--section-px);
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.feature-card {
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.feature-card__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.feature-card__desc {
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--indigo-200);
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how-it-works {
    padding: var(--section-py) var(--section-px);
    max-width: var(--max-width);
    margin: 0 auto;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.04) 50%, transparent 100%);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.step {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.step__number {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(129, 140, 248, 0.15);
    min-width: 120px;
    text-align: center;
}

.step__content { flex: 1; }

.step__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.step__desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--indigo-200);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing {
    padding: var(--section-py) var(--section-px);
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing__card {
    max-width: 480px;
    width: 100%;
    padding: 3rem;
    text-align: center;
    border-radius: 16px;
    position: relative;
    z-index: 0;
}

.pricing__badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bg-deep);
    background: linear-gradient(135deg, #818cf8, #c084fc);
    padding: 0.375rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.pricing__price {
    font-size: 5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.pricing__period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--indigo-300);
    margin-bottom: 2rem;
}

.pricing__features {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing__feature {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--indigo-200);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(165, 180, 252, 0.1);
}

.pricing__feature:last-child { border-bottom: none; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    padding: var(--section-py) var(--section-px);
    max-width: 720px;
    margin: 0 auto;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq__item {
    padding: 1.5rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.faq__item[open] {
    border-color: rgba(129, 140, 248, 0.4);
}

.faq__question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.faq__question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--indigo-400);
    transition: transform 0.2s ease;
}

.faq__item[open] .faq__question::after {
    transform: rotate(45deg);
}

.faq__answer {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--indigo-200);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(165, 180, 252, 0.1);
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta {
    padding: var(--section-py) var(--section-px);
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(49, 46, 129, 0.3));
}

.final-cta__content {
    max-width: 600px;
    margin: 0 auto;
}

.final-cta__title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1rem;
}

.final-cta__subtitle {
    font-size: 1.125rem;
    color: var(--indigo-200);
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    padding: 3rem var(--section-px);
    border-top: 1px solid rgba(165, 180, 252, 0.1);
    background: var(--bg-deep);
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.site-footer__logo {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
}

.site-footer__tagline {
    font-size: 0.8125rem;
    color: var(--slate-400);
    margin-top: 0.25rem;
}

.site-footer__links {
    display: flex;
    gap: 2rem;
}

.site-footer__link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--indigo-300);
    transition: color 0.2s ease;
}

.site-footer__link:hover { color: var(--white); }

.site-footer__copy {
    font-size: 0.75rem;
    color: var(--slate-500);
}

.site-footer__copy a {
    color: var(--indigo-400);
    text-decoration: underline;
}

/* ==========================================================================
   PLACEHOLDER IMAGES
   ========================================================================== */
.placeholder-image {
    background: rgba(99, 102, 241, 0.08);
    border: 2px dashed rgba(165, 180, 252, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.placeholder-image--hero {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.placeholder-image--step {
    width: 100%;
    aspect-ratio: 3 / 2;
    margin-top: 0.5rem;
}

.placeholder-image__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--indigo-300);
    line-height: 1.6;
}

.placeholder-image__label small {
    font-size: 0.75rem;
    color: var(--slate-400);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --section-py: 4rem;
        --section-px: 1.25rem;
    }

    .nav__links { display: none; }

    .hero__title { font-size: 2.5rem; }
    .hero__subtitle { font-size: 1.0625rem; }

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

    .section-header__title { font-size: 2rem; }

    .step {
        flex-direction: column;
        gap: 1rem;
    }

    .step__number {
        font-size: 3rem;
        min-width: auto;
        text-align: left;
    }

    .pricing__price { font-size: 4rem; }

    .final-cta__title { font-size: 2rem; }

    .hero__proof { flex-direction: column; gap: 0.75rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .hero__title { font-size: 3rem; }
}
