/* ========================================
   GlowRecord - Professional Screenshot Tool
   CSS Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary: #0F172A;
    --accent: #6366F1;
    --accent-hover: #4F46E5;
    --accent-light: #C7D2FE;
    --surface: #F8FAFC;
    --surface-warm: #ECFDF5;
    --text: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --success: #059669;
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 20px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); }

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

/* Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========================================
   Navigation
   ======================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent) 0%, #A855F7 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: white;
    stroke-width: 2;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

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

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface-warm);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #047857;
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-item strong {
    display: block;
    font-size: 1.75rem;
    font-family: 'Fraunces', serif;
    color: var(--primary);
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.screen-mockup {
    background: #0F0F23;
    border-radius: var(--radius);
    overflow: hidden;
}

.screen-header {
    background: #1a1a2e;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.screen-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.screen-dot.red { background: #ef4444; }
.screen-dot.yellow { background: #eab308; }
.screen-dot.green { background: #22c55e; }

.screen-content {
    padding: 24px;
    position: relative;
    min-height: 200px;
}

.capture-area {
    border: 2px dashed rgba(99,102,241,0.6);
    border-radius: 8px;
    padding: 40px;
    position: relative;
    background: rgba(99,102,241,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.capture-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 2px;
}

.capture-corner.tl { top: -6px; left: -6px; }
.capture-corner.tr { top: -6px; right: -6px; }
.capture-corner.bl { bottom: -6px; left: -6px; }
.capture-corner.br { bottom: -6px; right: -6px; }

.capture-icon {
    opacity: 0.5;
}

.capture-size {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Floating Toolbar */
.toolbar-float {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    gap: 4px;
    box-shadow: var(--shadow-lg);
}

.toolbar-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.toolbar-btn:hover {
    background: var(--surface);
    color: var(--accent);
}

.toolbar-btn.active {
    background: var(--accent);
    color: white;
}

/* Platforms */
.platforms {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.platforms span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.platform-icons {
    display: flex;
    gap: 12px;
}

.platform-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.platform-icon:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.platform-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header p {
    margin-top: 16px;
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--primary);
    color: var(--white);
}

.how-it-works .section-header h2,
.how-it-works .section-header p {
    color: var(--white);
}

.how-it-works .section-header p {
    opacity: 0.7;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Fraunces', serif;
}

.step h3 {
    color: var(--white);
    margin-bottom: 12px;
}

.step p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

/* ========================================
   Use Cases Section
   ======================================== */
.use-cases {
    padding: 100px 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.use-case {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.use-case:hover {
    border-color: var(--accent-light);
    background: var(--white);
}

.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.use-case h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.use-case p {
    font-size: 0.875rem;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: 100px 0;
    background: var(--surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.testimonial-stars {
    color: #FBBF24;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.testimonial p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, #A855F7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.author-info strong {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--accent) 0%, #7C3AED 50%, #A855F7 100%);
    border-radius: var(--radius-lg);
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.cta-box h2 {
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
}

.cta-box p {
    color: rgba(255,255,255,0.85);
    font-size: 1.125rem;
    margin-bottom: 32px;
    position: relative;
}

.cta-box .btn {
    background: var(--white);
    color: var(--accent);
    position: relative;
}

.cta-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.cta-note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7) !important;
    position: relative;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
    padding: 100px 0;
    background: var(--surface);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.faq-item h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
}

.faq-item p {
    font-size: 0.925rem;
    line-height: 1.6;
}

/* ========================================
   Support Section
   ======================================== */
.support {
    padding: 100px 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.support-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.support-icon {
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow);
}

.support-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
}

.support-card h3 {
    margin-bottom: 12px;
}

.support-card p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.support-link {
    color: var(--accent);
    font-weight: 600;
    transition: color 0.2s;
}

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

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.925rem;
    max-width: 280px;
}

.footer-column h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.5);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    font-size: 0.925rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--white);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .support-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .features-grid,
    .use-cases-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 48px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .platforms {
        flex-direction: column;
        gap: 12px;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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