/* ============================================
   Resonote Pitch Landing Page Styles
   Theme: Light, Professional SaaS
   ============================================ */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navigation */
nav {
    transition: background-color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e07b24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(224, 123, 36, 0.15),
        transparent 40%
    );
    pointer-events: none;
    transition: background 0.3s ease;
    z-index: 2;
}

/* Base gradient animation layer */
#hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 80% 50% at 20% 40%,
            rgba(250, 212, 174, 0.3),
            transparent 50%
        ),
        radial-gradient(
            ellipse 60% 40% at 80% 60%,
            rgba(246, 182, 122, 0.25),
            transparent 50%
        ),
        radial-gradient(
            ellipse 50% 60% at 50% 80%,
            rgba(224, 123, 36, 0.15),
            transparent 50%
        );
    pointer-events: none;
    z-index: 1;
    animation: gradient-breathe 8s ease-in-out infinite;
}

@keyframes gradient-breathe {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1) translate(0, 0);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.05) translate(2%, -1%);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02) translate(-1%, 2%);
    }
    75% {
        opacity: 0.9;
        transform: scale(1.08) translate(-2%, -1%);
    }
}

.screenshot-container {
    padding: 0;
    position: relative;
}

.screenshot-container img {
    display: block;
    width: 100%;
}

.window-titlebar {
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
}

/* Step Cards */
.step-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Comparison Table */
.comparison-table {
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
    transition: background-color 0.3s ease;
}

.comparison-table tbody tr:hover td:last-child {
    background-color: #fdecd8;
}

/* Flywheel Container */
.flywheel-container {
    position: relative;
}

.flywheel-ring {
    animation: flywheel-rotate 20s linear infinite;
    transform-origin: center center;
}

@keyframes flywheel-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Flywheel responsive */
@media (max-width: 768px) {
    .flywheel-container {
        width: 320px !important;
        height: 320px !important;
    }

    .flywheel-nodes .absolute {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .flywheel-container {
        width: 100% !important;
        height: auto !important;
        min-height: 300px;
    }

    .flywheel-ring {
        display: none;
    }

    .flywheel-nodes {
        position: static !important;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        padding: 1rem 0;
    }

    .flywheel-nodes .absolute {
        position: static !important;
        transform: none !important;
    }
}

/* Memory Layers */
.memory-layers {
    perspective: 1000px;
}

.memory-layer {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease !important;
}

.memory-layer:hover {
    transform: scale(1.02) translateX(8px) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Pricing Cards */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Vision Section Gradient */
#vision {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .memory-layer {
        margin-left: 0 !important;
    }

    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Selection Color */
::selection {
    background: #fdecd8;
    color: #a34a0a;
}

/* Decorative Blockquote */
blockquote {
    position: relative;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    font-family: 'Fraunces', Georgia, serif;
    color: #fad4ae;
    line-height: 1;
    opacity: 0.6;
}

/* Section Decorative Line */
.section-decoration {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #e07b24, #f6b67a);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}

/* Card hover brand border */
.step-card:hover,
.pricing-card:hover {
    border-color: #fad4ae;
}

/* Print Styles */
@media print {
    nav {
        display: none;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    section {
        page-break-inside: avoid;
    }
}
