/* ============================================================
   STRUX Landing Page — Dark SaaS Waitlist
   ============================================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
    --bg: #0B1A2B;
    --bg-card: #111F33;
    --bg-card-alt: #162640;
    --accent: #8B7CFF;
    --accent-end: #6C5CE7;
    --success: #22C55E;
    --text: #FFFFFF;
    --text-sec: #94A3B8;
    --radius: 14px;
    --radius-sm: 10px;
    --max-w: 1120px;
    --section-py: 120px;
    --transition: .3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

.hidden {
    display: none !important;
}

/* --- Utility --- */
.container {
    width: 90%;
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.section-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
}

.section-subtitle {
    font-size: 1.08rem;
    color: var(--text-sec);
    max-width: 560px;
}

/* --- Glow ring (global background) --- */
body::before {
    content: '';
    position: fixed;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(139, 124, 255, .12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(11, 26, 43, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 18px rgba(139, 124, 255, .3));
}

.navbar__link {
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-sec);
    transition: color var(--transition);
}

.navbar__link:hover {
    color: var(--accent);
}

/* ============================================================
   1.  HERO
   ============================================================ */
.hero {
    position: relative;
    text-align: center;
    padding: 80px 0 0;
    overflow: hidden;
}

.hero__logo {
    width: 130px;
    margin: 0 auto 50px;
    filter: drop-shadow(0 0 24px rgba(139, 124, 255, .35));
}

.hero__headline {
    font-size: clamp(2.2rem, 5.4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    max-width: 720px;
    margin: 0 auto 22px;
    letter-spacing: -.02em;
}

.hero__headline span {
    background: linear-gradient(135deg, var(--accent), var(--accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero__sub {
    font-size: 1.15rem;
    color: var(--text-sec);
    max-width: 540px;
    margin: 0 auto 38px;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-end));
    border: none;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 0 40px rgba(139, 124, 255, .35);
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 54px rgba(139, 124, 255, .5);
}

.hero__cta svg {
    width: 18px;
    height: 18px;
}

.hero__mockup {
    position: relative;
    margin: 70px auto 0;
    max-width: 860px;
}

.hero__mockup img {
    width: 100%;
    border-radius: var(--radius);
}

.hero__mockup::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
    pointer-events: none;
    border-radius: var(--radius);
}

/* ============================================================
   2. PROBLEM
   ============================================================ */
.problem {
    position: relative;
    padding: var(--section-py) 0;
    z-index: 1;
}

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

.problem__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 14px;
}

.problem__list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.02rem;
    color: var(--text-sec);
}

.problem__list li .icon-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 50%;
    background: rgba(239, 68, 68, .7);
    box-shadow: 0 0 12px rgba(239, 68, 68, .5);
}

/* --- Timeline (right column) --- */
.timeline {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.timeline__step {
    display: flex;
    align-items: center;
    gap: 14px;
}

.timeline__dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(139, 124, 255, .4);
}

.timeline__dot--warn {
    background: rgba(251, 191, 36, 1);
    box-shadow: 0 0 10px rgba(251, 191, 36, .4);
}

.timeline__dot--danger {
    background: #EF4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, .5);
}

.timeline__text {
    font-size: .95rem;
    color: var(--text-sec);
}

.timeline__text--highlight {
    color: #EF4444;
    font-weight: 700;
    font-size: 1rem;
}

.timeline__line {
    width: 2px;
    height: 28px;
    margin-left: 5px;
    background: rgba(255, 255, 255, .1);
}

.timeline__note {
    margin-top: 24px;
    font-size: .9rem;
    color: var(--success);
    font-weight: 600;
}

/* ============================================================
   3. HOW IT WORKS
   ============================================================ */
.how {
    position: relative;
    padding: var(--section-py) 0;
    z-index: 1;
}

.how .section-title,
.how .section-label {
    text-align: center;
}

.how .section-title {
    margin-left: auto;
    margin-right: auto;
}

.how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 56px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    padding: 36px 28px;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(139, 124, 255, .12);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(139, 124, 255, .12);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-sec);
    font-size: .95rem;
}

/* connector line between steps */
.how__steps .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 56px;
    right: -16px;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    pointer-events: none;
}

/* ============================================================
   4. PRODUCT PREVIEW
   ============================================================ */
.preview {
    position: relative;
    padding: var(--section-py) 0;
    z-index: 1;
}

.preview__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.preview__mockup {
    position: relative;
}

.preview__mockup img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 16px 64px rgba(0, 0, 0, .4);
}

.preview__labels {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.preview__label-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius-sm);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform var(--transition);
}

.preview__label-card:hover {
    transform: translateX(6px);
}

.preview__label-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.preview__label-icon.status {
    background: rgba(139, 124, 255, .15);
    color: var(--accent);
}

.preview__label-icon.alert {
    background: rgba(239, 68, 68, .15);
    color: #EF4444;
}

.preview__label-icon.ready {
    background: rgba(34, 197, 94, .15);
    color: var(--success);
}

.preview__label-card h4 {
    font-size: .98rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.preview__label-card p {
    font-size: .85rem;
    color: var(--text-sec);
}

/* progress ring */
.preview__progress {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.progress-ring {
    width: 72px;
    height: 72px;
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-ring .bg {
    stroke: rgba(255, 255, 255, .08);
}

.progress-ring .fill {
    stroke: var(--accent);
    stroke-dasharray: 188;
    stroke-dashoffset: 143;
    /* ~24% */
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(139, 124, 255, .5));
}

.progress-ring span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
}

.preview__progress p {
    font-size: .95rem;
    color: var(--text-sec);
}

/* ============================================================
   5. VALIDATION / TRACTION
   ============================================================ */
.validation {
    position: relative;
    padding: var(--section-py) 0;
    z-index: 1;
}

.validation .section-title,
.validation .section-label {
    text-align: center;
}

.validation .section-title {
    margin-left: auto;
    margin-right: auto;
}

.validation__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 56px;
}

.validation__card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.validation__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(139, 124, 255, .12);
}

.validation__icon {
    font-size: 2rem;
    margin-bottom: 18px;
}

.validation__card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.validation__card p {
    color: var(--text-sec);
    font-size: .95rem;
    line-height: 1.55;
}

/* ============================================================
   6. TEAM
   ============================================================ */
.team {
    position: relative;
    padding: var(--section-py) 0;
    z-index: 1;
}

.team .section-title,
.team .section-label {
    text-align: center;
}

.team .section-title {
    margin-left: auto;
    margin-right: auto;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 56px;
}

.team__card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.team__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(139, 124, 255, .12);
}

.team__photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid rgba(139, 124, 255, .25);
    box-shadow: 0 0 24px rgba(139, 124, 255, .15);
}

.team__name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.team__title {
    font-size: .88rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 6px;
}

.team__desc {
    font-size: .85rem;
    color: var(--text-sec);
}

.team__email {
    display: inline-block;
    margin-top: 10px;
    font-size: .85rem;
    color: var(--accent);
    font-weight: 500;
    transition: color .3s ease;
}

.team__email:hover {
    color: var(--accent-end);
}

/* ============================================================
   6. WAITLIST (CTA)
   ============================================================ */
.waitlist {
    position: relative;
    padding: var(--section-py) 0;
    z-index: 1;
}

.waitlist__box {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.waitlist__box .section-title,
.waitlist__box .section-label {
    text-align: center;
}

.waitlist__form {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.waitlist__form label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-sec);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.waitlist__form input {
    width: 100%;
    padding: 14px 18px;
    font-size: .98rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border var(--transition), box-shadow var(--transition);
}

.waitlist__form input::placeholder {
    color: rgba(148, 163, 184, .55);
}

.waitlist__form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 124, 255, .2);
}

.waitlist__submit {
    margin-top: 8px;
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-end));
    border: none;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 0 34px rgba(139, 124, 255, .3);
    transition: transform var(--transition), box-shadow var(--transition);
}

.waitlist__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(139, 124, 255, .45);
}

.waitlist__note {
    margin-top: 18px;
    font-size: .82rem;
    color: var(--text-sec);
    text-align: center;
}

/* ============================================================
   6. FOOTER
   ============================================================ */
.footer {
    padding: 70px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    position: relative;
    z-index: 1;
}

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

.footer__logo {
    width: 100px;
    opacity: .85;
}

.footer__tagline {
    font-size: 1rem;
    color: var(--text-sec);
}

.footer__links {
    display: flex;
    gap: 28px;
    margin-top: 6px;
}

.footer__links a {
    font-size: .88rem;
    color: var(--text-sec);
    transition: color var(--transition);
}

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

.footer__copy {
    margin-top: 30px;
    font-size: .78rem;
    color: rgba(148, 163, 184, .5);
}

/* ============================================================
   ANIMATIONS — Fade-in on scroll (IntersectionObserver)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    :root {
        --section-py: 80px;
    }

    .problem__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .how__steps {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .how__steps .step-card::after {
        display: none;
    }

    .preview__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .validation__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 600px) {
    :root {
        --section-py: 60px;
    }

    .hero__headline {
        font-size: 1.9rem;
    }

    .navbar__logo {
        height: 30px;
    }
}