/* ========================================
   Chirp AI — chirp.watch
   Static rebuild from Framer
   ======================================== */

:root {
    --blue-dark: #1d257a;
    --blue-black: #000102;
    --purple: #6927DA;
    --purple-dark: #5720B7;
    --purple-deep: #3900D5;
    --purple-light: rgba(136, 92, 247, 0.68);
    --purple-light-alt: rgba(132, 118, 255, 0.68);
    --pink: #F670C7;
    --accent: #f1ff76;
    --accent-dark: #c8d700;
    --bg-lavender: #d5d2ff;
    --bg-light: #f5f5f7;
    --bg-near-white: #fafafc;
    --bg-white: #ffffff;
    --text-dark: #1d1d1f;
    --text-gray: #555557;
    --text-light: #fafafc;
    --text-light-muted: #d5d2ff;
    --max-width: 1200px;
    --section-padding: 120px 24px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Shared background wrappers */
.bg-dark-block {
    background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue-black) 100%);
}

.bg-lavender-block {
    background: var(--bg-lavender);
}

/* ========================================
   Scroll Animations
   ======================================== */

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cascading entrance for hero devices */
.cascade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.cascade-center { transition-delay: 0s; }
.cascade-mid    { transition-delay: 0.15s; }
.cascade-outer  { transition-delay: 0.3s; }

/* Parallax arc offsets */
.devices-row .cascade-center.visible { transform: translateY(-24px); }
.devices-row .cascade-mid.visible    { transform: translateY(-10px); }
.devices-row .cascade-outer.visible  { transform: translateY(8px); }

/* ========================================
   Image Assets
   ======================================== */

img.nav-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
}

.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
}

.watch-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.watch-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* ========================================
   Nav
   ======================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(29, 37, 122, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo-name {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.nav-logo-sub {
    font-size: 12px;
    color: var(--text-light);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: scale(1.03);
}

.btn:active {
    transform: scale(0.98);
}

.btn-accent {
    background: var(--accent);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.btn-accent.btn-large {
    border-radius: 16px;
}

.btn-primary {
    background: var(--purple);
    color: #fff;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.btn-large {
    padding: 14px 32px;
    font-size: 18px;
}

/* ========================================
   Hero
   ======================================== */

.hero {
    text-align: center;
    padding: 60px 24px 20px;
}

.hero .hero-icon {
    margin: 0 auto 24px;
    display: block;
}

.hero-title {
    font-size: clamp(46px, 8vw, 80px);
    font-weight: 400;
    line-height: 1.1em;
    letter-spacing: -0.06em;
    background: linear-gradient(31deg, var(--accent-dark) 0%, var(--accent) 66%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Soft pulsing glow behind the heading */
.hero-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 90%;
    height: 130%;
    background: radial-gradient(
        ellipse,
        rgba(241, 255, 118, 0.2) 0%,
        rgba(105, 39, 218, 0.15) 40%,
        transparent 70%
    );
    filter: blur(30px);
    z-index: -1;
    animation: hero-glow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hero-glow {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 500;
    color: var(--text-light);
    margin-top: 16px;
    letter-spacing: -0.02em;
}

/* ========================================
   Devices Row
   ======================================== */

.devices {
    padding: 30px 24px 40px;
}

.devices-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Watch Mockup Component */
.watch-mockup {
    position: relative;
    flex-shrink: 0;
}

.watch-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82%;
    height: 84%;
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
}

.watch-shell {
    width: 91%;
    height: 93%;
    position: absolute;
    top: 50%;
    left: 49.4%;
    transform: translate(-50%, -50%);
    border-radius: 40px;
    background: #1a1a1a;
    box-shadow:
        rgba(23, 0, 64, 0.09) 0.92px 1.68px 2.68px -0.19px,
        rgba(23, 0, 64, 0.094) 2.19px 3.98px 6.36px -0.38px,
        rgba(23, 0, 64, 0.098) 3.99px 7.26px 11.6px -0.56px,
        rgba(23, 0, 64, 0.106) 6.64px 12.07px 19.29px -0.75px,
        rgba(23, 0, 64, 0.114) 10.72px 19.5px 31.15px -0.94px,
        rgba(23, 0, 64, 0.13) 17.55px 31.91px 50.99px -1.13px,
        rgba(23, 0, 64, 0.157) 30.22px 54.95px 87.8px -1.31px,
        rgba(23, 0, 64, 0.21) 55px 100px 159.78px -1.5px;
    z-index: 0;
}

.watch-frame {
    width: 106%;
    height: 101%;
    position: absolute;
    top: 49.4%;
    left: 51.7%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.watch-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Watch Sizes */
.watch-small     { width: 200px; height: 240px; }
.watch-large     { width: 280px; height: 336px; }
.watch-feature   { width: 280px; height: 340px; }
.watch-chirpcan  { width: 280px; height: 340px; }
.watch-cta       { width: 280px; height: 340px; }
.watch-cta-front { width: 320px; height: 390px; }

/* Chirp home screen (logo on dark bg) */
.chirp-home-screen {
    background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue-black) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chirp-home-logo {
    width: 60% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 20px;
    filter: drop-shadow(0 0 20px rgba(200, 215, 0, 0.4));
}

/* ========================================
   Tagline
   ======================================== */

.tagline {
    text-align: center;
    padding: 40px 24px 80px;
}

.tagline-text {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.2em;
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tagline-sub {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 400;
    color: var(--text-light-muted);
    letter-spacing: -0.01em;
    line-height: 1.5em;
    max-width: 600px;
    margin: 0 auto 24px;
}

/* ========================================
   Video Section
   ======================================== */

.video-section {
    background: linear-gradient(180deg, var(--blue-black) 0%, #0d0f2b 100%);
    padding: 0 24px 80px;
}

.video-inner {
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   Feature Sections
   ======================================== */

.feature {
    padding: var(--section-padding);
}

.feature-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.feature-heading {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.2em;
    letter-spacing: -0.04em;
    margin-bottom: 60px;
    background: linear-gradient(0deg, var(--purple-dark) 0%, var(--purple-light) 123%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* "Get answers" heading uses slightly different gradient */
.feature-sources .feature-heading {
    background: linear-gradient(0deg, var(--purple-deep) 0%, var(--purple-light-alt) 126%);
    -webkit-background-clip: text;
    background-clip: text;
    text-align: center;
}

.feature-heading-light {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.2em;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: var(--accent);
}

/* Tiny but Mighty — watch + feature items */
.feature-mighty {
    background: var(--bg-near-white);
}

.feature-grid-mighty {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-items {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--purple);
    margin-top: 2px;
}

.feature-item h3 {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: clamp(15px, 2vw, 17px);
    font-weight: 400;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Messages */
.feature-messages {
    padding: var(--section-padding);
}

.messages-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 900px;
    margin: 0 auto;
}

.messages-text {
    flex: 1;
}

.messages-quote {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 500;
    font-style: italic;
    color: var(--text-light-muted);
    letter-spacing: -0.02em;
    line-height: 1.4em;
}

/* Sources — 2×2 grid */
.feature-sources {
    background: var(--bg-near-white);
}

.sources-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 40px 60px;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Chirp Can... Sticky Scroll
   ======================================== */

.chirpcan {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.chirpcan-inner {
    display: flex;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.chirpcan-watch-col {
    position: sticky;
    top: 120px;
    flex-shrink: 0;
    align-self: flex-start;
}

.chirpcan-watch-col .watch-screen img {
    transition: opacity 0.4s ease;
}

.chirpcan-watch-col .watch-screen img.fading {
    opacity: 0;
}

.chirpcan-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chirpcan-item {
    padding: 80px 0;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chirpcan-label {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 500;
    color: var(--purple-light-alt);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    display: block;
}

.chirpcan-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.15em;
    color: var(--purple-deep);
}

/* ========================================
   CTA
   ======================================== */

.cta {
    padding: 80px 24px;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.cta-content {
    flex: 1;
}

.cta-heading {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.2em;
    letter-spacing: -0.04em;
    margin: 24px 0 32px;
    background: linear-gradient(37deg, var(--purple-deep) 0%, var(--pink) 127%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-device {
    position: relative;
    flex-shrink: 0;
}

.cta-device .watch-cta {
    position: relative;
}

.cta-device .watch-cta-front {
    position: absolute;
    top: -10px;
    right: -160px;
    z-index: 3;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--blue-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--accent);
    margin-top: 8px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-light);
}

.footer .nav-logo-icon {
    border-radius: 10px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 14px;
    color: #f5f5f7;
    font-weight: 500;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 0.7;
    color: #fff;
}

.footer-copy {
    color: var(--text-light);
    font-size: 13px;
}

/* ========================================
   Responsive — Tablet (<=1024px)
   ======================================== */

@media (max-width: 1024px) {
    .devices-row {
        gap: 10px;
    }

    .watch-small {
        width: 160px;
        height: 192px;
    }

    .watch-large {
        width: 230px;
        height: 276px;
    }

    .watch-screen {
        border-radius: 20px;
    }
}

/* ========================================
   Responsive — Mobile (<=810px)
   ======================================== */

@media (max-width: 810px) {
    :root {
        --section-padding: 60px 24px;
    }

    .nav-inner {
        padding: 12px 20px;
    }

    .btn-accent, .btn-primary {
        padding: 10px 20px;
        font-size: 15px;
    }

    .btn-large {
        padding: 12px 28px;
        font-size: 16px;
    }

    .hero {
        padding: 40px 24px 16px;
    }

    .hero-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    /* Devices Row: hide outer watches */
    .devices {
        padding: 24px 0 32px;
        overflow: hidden;
    }

    .cascade-outer {
        display: none;
    }

    .devices-row {
        gap: 10px;
        justify-content: center;
        overflow: visible;
        padding: 0;
    }

    .watch-small {
        width: 170px;
        height: 204px;
    }

    .watch-large {
        width: 220px;
        height: 264px;
    }

    .devices-row .cascade-center.visible { transform: translateY(-16px); }
    .devices-row .cascade-mid.visible    { transform: translateY(-4px); }

    .watch-screen {
        border-radius: 18px;
    }

    .tagline {
        padding: 32px 24px 60px;
    }

    .feature-heading, .feature-heading-light {
        margin-bottom: 40px;
    }

    .feature-grid-mighty {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .feature-mighty .feature-heading {
        text-align: center;
    }

    .messages-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .feature-heading-light {
        text-align: center;
    }

    .sources-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        justify-items: center;
    }

    .watch-feature {
        width: 220px;
        height: 268px;
    }

    .chirpcan-inner {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .chirpcan-watch-col {
        position: relative;
        top: auto;
    }

    .chirpcan-item {
        padding: 40px 0;
        min-height: auto;
        text-align: center;
    }

    .cta {
        padding: 60px 24px;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .cta-device {
        order: -1;
    }

    .watch-cta {
        width: 220px;
        height: 268px;
    }

    .watch-cta-front {
        width: 260px;
        height: 316px;
        right: -120px;
        top: -10px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
        padding: 40px 24px;
    }

    .footer-links {
        gap: 40px;
    }
}

/* ========================================
   Responsive — Small Mobile (<=480px)
   ======================================== */

@media (max-width: 480px) {
    .hero {
        padding: 32px 20px 12px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .watch-small {
        width: 155px;
        height: 186px;
    }

    .watch-large {
        width: 200px;
        height: 240px;
    }

    .devices-row {
        gap: 8px;
    }

    .watch-screen {
        border-radius: 16px;
    }

    .tagline {
        padding: 24px 20px 48px;
    }

    .tagline-text {
        font-size: 22px;
    }

    .feature {
        padding: 48px 20px;
    }

    .feature-heading, .feature-heading-light {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .watch-feature {
        width: 200px;
        height: 244px;
    }

    .watch-chirpcan {
        width: 220px;
        height: 268px;
    }

    .chirpcan-title {
        font-size: 28px;
    }

    .cta {
        padding: 48px 20px;
    }

    .watch-cta {
        width: 200px;
        height: 244px;
    }

    .watch-cta-front {
        width: 240px;
        height: 292px;
        right: -100px;
        top: -10px;
    }

    .cta-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .video-section {
        padding: 0 20px 60px;
    }

    .footer-inner {
        padding: 32px 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
}
