/*
Theme Name: Hello TomCurve
Theme URI: https://tomcurve.com
Description: Dark immersive landing page for TomCurve - Matching programista-v2 style with Ocean Blue theme
Author: TomCurve Team
Author URI: https://tomcurve.com
Template: hello-elementor
Version: 3.0.0 - Dark Mode Dashboard Match
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-tomcurve
*/

/* ==========================================================================
   DESIGN SYSTEM - TomCurve Ocean Blue (Based on programista-v2 pattern)
   ========================================================================== */

:root {
    /* Colors - Dark Mode (Exact Dashboard Colors) */
    --color-bg-primary: #0F172A;        /* Dashboard dark.background.default */
    --color-bg-secondary: #1E293B;      /* Dashboard dark.background.paper */
    --color-bg-tertiary: #334155;       /* Dashboard divider */
    
    /* Text Colors - Dashboard Dark Mode */
    --color-text-primary: #F1F5F9;      /* Dashboard dark.text.primary */
    --color-text-secondary: #94A3B8;    /* Dashboard dark.text.secondary */
    --color-text-muted: #64748B;        /* Dashboard gray-500 */
    
    /* Ocean Blue Accent - Dashboard Primary */
    --color-accent-primary: #0EA5E9;    /* Sky Blue */
    --color-accent-dark: #0284C7;       /* Deep Ocean */
    --color-accent-light: #38BDF8;      /* Light Sky */
    --color-accent-glow: rgba(14, 165, 233, 0.3);
    --color-accent-dim: rgba(14, 165, 233, 0.1);
    
    /* Typography - Inter Font (Dashboard) */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-min-height: 100vh;
    --section-padding: 120px 40px;
    --container-max-width: 1400px;
    
    /* Effects - Dashboard Style */
    --shadow-glow: 0 0 40px var(--color-accent-glow);
    --shadow-card: 0 10px 60px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.2s ease;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

body {
    background-color: var(--color-bg-primary) !important;
    color: var(--color-text-primary) !important;
    font-family: var(--font-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   TYPOGRAPHY - DASHBOARD STYLE
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

/* ==========================================================================
   NAVIGATION & FOOTER
   ========================================================================== */

.main-header nav a:hover {
    color: var(--color-accent-primary) !important;
}

.main-header nav a[href*="login"]:hover {
    background: rgba(148, 163, 184, 0.2) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
}

.main-header nav a[href*="waitlist"]:hover {
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5) !important;
    transform: translateY(-2px);
}

footer a:hover {
    color: var(--color-accent-primary) !important;
}

footer .social-link:hover {
    background: rgba(14, 165, 233, 0.2) !important;
}

footer .social-link:hover svg {
    fill: var(--color-accent-primary) !important;
}

input[type="email"]:focus {
    border-color: rgba(14, 165, 233, 0.5) !important;
    background: rgba(30, 41, 59, 0.8) !important;
}

button[type="submit"]:hover {
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.6) !important;
    transform: translateY(-2px);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    position: relative;
    padding-bottom: 30px;
    display: inline-block;
    overflow: hidden;
}

/* Animated glow underline for h2 - programista-v2 style */
h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-accent-primary) 50%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(14,165,233,0.6);
    transform: translateX(-150%);
    opacity: 0;
    will-change: transform, opacity;
    animation: calmSweep 4.5s linear infinite;
    border-radius: 50%;
}

@keyframes calmSweep {
    0% {
        transform: translateX(-150%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    60% {
        transform: translateX(250%);
        opacity: 1;
    }
    75% {
        transform: translateX(300%);
        opacity: 0;
    }
    76% {
        transform: translateX(-150%);
        opacity: 0;
    }
    100% {
        transform: translateX(-150%);
        opacity: 0;
    }
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--color-text-primary);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    max-width: 70ch;
}

.text-accent {
    color: var(--color-accent-primary);
}

/* ==========================================================================
   NAVIGATION - DASHBOARD STYLE
   ========================================================================== */

.main-header {
    background-color: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid var(--color-bg-tertiary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    transition: var(--transition-base);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-base);
}

.nav-links a:hover {
    color: var(--color-accent-primary);
    text-shadow: var(--shadow-glow);
}

/* ==========================================================================
   SECTION PROGRESS NAVIGATOR - programista-v2 style
   ========================================================================== */

.section-progress-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.milestone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.milestone-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-bg-tertiary);
    border: 2px solid var(--color-accent-dim);
    transition: var(--transition-smooth);
}

.milestone.active .milestone-dot {
    background-color: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    box-shadow: var(--shadow-glow);
}

.milestone-label {
    position: absolute;
    right: 30px;
    white-space: nowrap;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition-base);
    pointer-events: none;
}

.milestone:hover .milestone-label,
.milestone.active .milestone-label {
    opacity: 1;
}

/* ==========================================================================
   BUTTONS & CTAs - DASHBOARD STYLE
   ========================================================================== */

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-dark) 100%);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 18px 50px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px var(--color-accent-glow);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-accent-primary);
    border: 2px solid var(--color-accent-primary);
    padding: 16px 48px;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.1);
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   GLASSMORPHISM CARDS - programista-v2 style
   ========================================================================== */

.floating-container {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.4) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.floating-container:hover {
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 80px rgba(14, 165, 233, 0.2);
    transform: translateY(-5px);
}

.card {
    background-color: var(--color-bg-secondary);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--color-bg-tertiary);
    transition: var(--transition-base);
}

.card:hover {
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08);
    background-color: rgba(30, 41, 59, 0.8);
}

/* ==========================================================================
   DASHBOARD SCREENSHOT CONTAINERS
   ========================================================================== */

.dashboard-screenshot {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: 40px 0;
    position: relative;
}

.dashboard-screenshot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.dashboard-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(2, 132, 199, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 14px;
    text-align: center;
    padding: 40px;
    border-radius: 16px;
    border: 1px dashed rgba(14, 165, 233, 0.3);
}

/* ==========================================================================
   UNIVERSE BACKGROUND - programista-v2 pattern
   ========================================================================== */

.universe-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(14, 30, 50, 1) 0%, rgba(15, 23, 42, 1) 100%);
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.8;
    }
}

.particle:nth-child(1) { width: 3px; height: 3px; top: 20%; left: 20%; animation-duration: 25s; }
.particle:nth-child(2) { width: 2px; height: 2px; top: 40%; left: 70%; animation-duration: 30s; animation-delay: -5s; }
.particle:nth-child(3) { width: 4px; height: 4px; top: 60%; left: 30%; animation-duration: 20s; animation-delay: -10s; }
.particle:nth-child(4) { width: 2px; height: 2px; top: 80%; left: 60%; animation-duration: 35s; animation-delay: -15s; }
.particle:nth-child(5) { width: 3px; height: 3px; top: 30%; left: 80%; animation-duration: 28s; animation-delay: -20s; }

/* ==========================================================================
   SECTIONS - FULL HEIGHT
   ========================================================================== */

.section {
    min-height: var(--section-min-height);
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
}

.hero-subtitle {
    color: var(--color-accent-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.hero-title {
    margin-bottom: 30px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

/* ==========================================================================
   FEATURE GRID - WITH SCREENSHOTS
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background-color: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-badge {
    display: inline-block;
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--color-accent-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

/* ==========================================================================
   PROBLEM SECTION - RED TINT
   ========================================================================== */

.problem-section {
    background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.05) 0%, transparent 70%);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.problem-card {
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #EF4444;
    padding: 40px;
    border-radius: 16px;
}

/* ==========================================================================
   SECURITY BADGES
   ========================================================================== */

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.security-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(2, 132, 199, 0.05) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
}

.security-card:hover {
    border-color: var(--color-accent-primary);
    box-shadow: var(--shadow-glow);
}

.security-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-bg-secondary);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
    border-left: 3px solid var(--color-accent-primary);
    transition: var(--transition-base);
}

.faq-item:hover {
    background-color: rgba(30, 41, 59, 0.8);
}

.faq-question {
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 15px;
}

.faq-answer {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ==========================================================================
   CTA SECTION - GRADIENT
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-dark) 100%);
    text-align: center;
}

.cta-section h2 {
    color: white;
}

.cta-section h2::before {
    display: none; /* Remove animated underline */
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-bg-tertiary);
    padding: 80px 40px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

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

.footer a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

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

.footer-bottom {
    border-top: 1px solid var(--color-bg-tertiary);
    padding-top: 30px;
    text-align: center;
    color: var(--color-text-muted);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }
.mb-6 { margin-bottom: 48px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .features-grid,
    .problem-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }
    
    .section-progress-nav {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

:focus-visible {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(14, 165, 233, 0.2);
    border-top-color: var(--color-accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
