/* Wyspe Landing Page - Premium Redesign */

:root {
    /* Core Palette - Premium Sunrise */
    --color-cream: #FDFBF7;
    /* Slightly brighter/richer */
    --color-cream-dim: #F5EFE6;
    --color-ink: #1A1E2E;
    --color-ink-soft: #4A5568;
    --color-ink-muted: #718096;

    /* Brand Accents - Deep & Glowing */
    --color-amber: #FFB347;
    --color-amber-glow: #FFD59E;
    --color-amber-deep: #D98C26;

    --color-teal: #2D9C98;
    --color-teal-glow: #64D2CE;
    --color-teal-deep: #1F7A77;

    /* Glassmorphism & Surfaces */
    --glass-surface: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-highlight: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Gradients */
    --grad-sunrise: linear-gradient(135deg, #FFF9F0 0%, #FAECD9 100%);
    --grad-glow-amber: radial-gradient(circle at center, rgba(255, 179, 71, 0.15) 0%, transparent 70%);
    --grad-glow-teal: radial-gradient(circle at center, rgba(45, 156, 152, 0.12) 0%, transparent 70%);
    --grad-text-main: linear-gradient(135deg, #1A1E2E 30%, #4A5568 100%);
    --grad-text-highlight: linear-gradient(135deg, #D98C26 0%, #FFB347 100%);

    /* Typography */
    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Layout */
    --max-width: 1280px;
    --max-width-narrow: 800px;

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-pill: 9999px;

    /* Animation */
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-ink);
    background-color: var(--color-cream);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient Backgrounds */
.ambient-glow {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.6;
    transition: transform 0.1s linear;
}

.ambient-glow--hero {
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--grad-glow-amber);
}

.ambient-glow--mid {
    top: 40%;
    left: -20%;
    width: 70vw;
    height: 70vw;
    background: var(--grad-glow-teal);
    opacity: 0.4;
}

.ambient-glow--bottom {
    bottom: -10%;
    right: 20%;
    width: 50vw;
    height: 50vw;
    background: var(--grad-glow-amber);
    opacity: 0.3;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.glass-panel {
    background: var(--glass-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
}

.text-gradient {
    background: var(--grad-text-highlight);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-highlight {
    color: var(--color-teal-deep);
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--color-teal-glow);
    opacity: 0.3;
    z-index: -1;
    border-radius: 4px;
}

/* Header */
.site-header {
    position: sticky;
    top: var(--space-sm);
    z-index: 100;
    margin: 0 var(--space-sm);
    border-radius: var(--radius-pill);
    transition: transform 0.3s var(--ease-smooth);
}

.site-header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-ink);
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-display);
}

.brand__mark {
    height: 32px;
    width: auto;
}

.site-nav {
    display: none;
    gap: var(--space-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--color-ink-soft);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-ink);
}

@media (min-width: 768px) {
    .site-nav {
        display: flex;
    }
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-back);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.button--primary {
    background: var(--color-ink);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #000;
}

.button--secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-ink);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.button--secondary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

/* Hero */
.hero {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

@media (min-width: 992px) {
    .hero__grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 179, 71, 0.15);
    color: var(--color-amber-deep);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(255, 179, 71, 0.2);
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.hero__subhead {
    font-size: 1.1rem;
    color: var(--color-ink-soft);
    margin-bottom: var(--space-lg);
    max-width: 540px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: var(--color-ink-muted);
}

/* Hero Visual */
.phone-stage {
    position: relative;
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 280px;
    border-radius: 40px;
    border: 8px solid #1a1a1a;
    background: #000;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: auto;
    display: block;
}

.float-card {
    position: absolute;
    right: 0;
    top: 48%;
    width: 240px;
    padding: var(--space-sm);
    z-index: 3;
    animation: swing 6s ease-in-out infinite;
}

.float-card__label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--color-ink-muted);
    margin-bottom: 4px;
    display: block;
}

.float-card p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-ink);
    margin-bottom: 8px;
}

.float-card__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-teal-deep);
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-teal);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(45, 156, 152, 0.2);
}

@media (max-width: 991px) {
    .float-card {
        right: -10px;
        top: 45%;
    }
}

/* Proof Section */
.proof {
    padding: var(--space-xl) 0;
}

.section-badge {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--color-amber-deep);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
    color: var(--color-ink);
}

.proof__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.proof-card {
    padding: var(--space-md);
    text-align: center;
    transition: transform 0.3s var(--ease-out-back);
}

.proof-card:hover {
    transform: translateY(-5px);
}

.proof-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.proof-card h3 {
    margin-bottom: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.proof-card p {
    color: var(--color-ink-soft);
    font-size: 0.95rem;
}

/* Features Bento */
.features {
    padding: var(--space-xl) 0;
}

.features__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}

.features__header .subtitle {
    font-size: 1.1rem;
    color: var(--color-ink-soft);
    margin-top: var(--space-sm);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, minmax(250px, auto));
    }

    .bento-card--large {
        grid-column: span 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .bento-card--wide {
        grid-column: span 2;
    }
}

.bento-card {
    padding: var(--space-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.bento-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.bento-card--large .bento-content {
    flex: 1;
    padding-right: var(--space-lg);
}

.bento-visual--chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
}

.chat-bubble {
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    max-width: 80%;
}

.chat-bubble--ai {
    background: var(--color-ink);
    color: white;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-bubble--user {
    background: white;
    color: var(--color-ink);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    background: rgba(45, 156, 152, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--color-teal);
}

.theme-dark {
    background: linear-gradient(135deg, #1A1E2E 0%, #2D3748 100%);
    color: white;
    border: none;
}

.theme-dark h3,
.theme-dark p {
    color: white;
}

.theme-dark p {
    opacity: 0.8;
}

.theme-dark .moon-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-sm);
}

/* Timeline / How it works */
.how-it-works {
    padding: var(--space-2xl) 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 0, 0, 0.05);
}

.timeline-step {
    display: flex;
    gap: var(--space-md);
    position: relative;
}

.step-marker {
    width: 40px;
    height: 40px;
    background: var(--color-cream);
    border: 2px solid var(--color-amber);
    color: var(--color-amber-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding: var(--space-md);
}

.step-content h3 {
    margin-bottom: 8px;
}

/* Screenshots */
.screenshots {
    padding: var(--space-xl) 0;
    overflow: hidden;
    background: var(--color-cream-dim);
}

.screenshots-scroller {
    margin-top: var(--space-lg);
    width: 100%;
    overflow-x: auto;
    padding-bottom: var(--space-md);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.screenshots-scroller::-webkit-scrollbar {
    display: none;
}

.scroller-inner {
    display: inline-flex;
    gap: var(--space-md);
    padding: 0 var(--space-md);
}

.app-screen {
    width: 260px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.app-screen:hover {
    transform: translateY(-10px) scale(1.02);
}

/* FAQ */
.faq {
    padding: var(--space-xl) 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    overflow: hidden;
    transition: all 0.3s var(--ease-smooth);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-md);
    background: none;
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-ink);
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s var(--ease-out-back);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-smooth);
    padding: 0 var(--space-md);
}

.faq-answer p {
    padding-bottom: var(--space-md);
    color: var(--color-ink-soft);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* CTA */
.cta {
    padding: var(--space-2xl) 0;
}

.cta-card {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.email-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.glass-input {
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    min-width: 280px;
    font-family: var(--font-body);
}

.cta-note {
    font-size: 0.85rem;
    color: var(--color-ink-muted);
}

/* Footer */
.site-footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.footer-grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    text-decoration: none;
    color: var(--color-ink-soft);
}

.footer-bottom {
    margin-top: var(--space-lg);
    font-size: 0.85rem;
    color: var(--color-ink-muted);
}

/* Animations using JS class toggle or direct keyframes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

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

.fade-up {
    /* Used for elements that animate on load immediately */
    animation: fadeUp 1s var(--ease-out-back) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
    transition-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
    transition-delay: 0.3s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes swing {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.swing-hover:hover {
    animation-play-state: paused;
}
