/* ============================================
   TMRadar Coming Soon Page - Styles
   Modern Enterprise SaaS Design
   ============================================ */

/* CSS Variables - Design Tokens */
:root {
    /* Colors */
    --color-navy: #1a237e;
    --color-navy-dark: #0d1442;
    --color-navy-light: #283593;
    --color-slate: #64748b;
    --color-slate-light: #94a3b8;
    --color-slate-dark: #475569;
    --color-white: #ffffff;
    --color-off-white: #f8fafc;
    --color-accent: #3b82f6;
    --color-accent-light: #60a5fa;
    --color-accent-dark: #2563eb;
    --color-success: #10b981;
    --color-gradient-start: #3b82f6;
    --color-gradient-end: #8b5cf6;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    --font-size-6xl: 4.5rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-white);
    background: var(--color-navy-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
}

button, input {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    background: rgba(13, 20, 66, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--color-white);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.logo-text {
    letter-spacing: -0.02em;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-nav {
    padding: var(--spacing-sm) var(--spacing-lg);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-4xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 70%);
}

/* Radar Pulse Animation */
.radar-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-out infinite;
}

.radar-pulse-2 {
    animation-delay: 1.3s;
}

.radar-pulse-3 {
    animation-delay: 2.6s;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-accent-light);
    margin-bottom: var(--spacing-xl);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-lg);
    color: var(--color-white);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-slate-light);
    max-width: 600px;
    margin: 0 auto var(--spacing-2xl);
    line-height: 1.7;
}

/* Email Form */
.email-form {
    max-width: 500px;
    margin: 0 auto var(--spacing-xl);
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.input-wrapper:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.email-form input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    color: var(--color-white);
    font-size: var(--font-size-base);
    border-radius: var(--radius-lg);
}

.email-form input::placeholder {
    color: var(--color-slate);
}

.btn-submit {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
}

.btn-icon {
    display: flex;
    transition: transform var(--transition-base);
}

.btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

/* Form Success State */
.form-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    color: var(--color-success);
    font-weight: 500;
    animation: slideUp 0.5s ease;
}

.form-success.show {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Proof */
.social-proof {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.avatars {
    display: flex;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--color-navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-white);
    margin-left: -12px;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar-count {
    background: var(--color-navy-light);
    font-size: var(--font-size-lg);
}

.social-proof-text {
    font-size: var(--font-size-sm);
    color: var(--color-slate-light);
}

.social-proof-text strong {
    color: var(--color-white);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(180deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-3xl);
}

.section-tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-slate-light);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.feature-card {
    position: relative;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    transition: all var(--transition-slow);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card-highlight {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    color: var(--color-white);
}

.feature-icon-1 {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.feature-icon-2 {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.feature-icon-3 {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.feature-description {
    font-size: var(--font-size-base);
    color: var(--color-slate-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

/* Feature Previews */
.feature-preview {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.score-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.score-fill {
    height: 100%;
    width: var(--score);
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
    border-radius: var(--radius-full);
    animation: fillBar 2s ease-out;
}

@keyframes fillBar {
    from { width: 0; }
    to { width: var(--score); }
}

.score-value {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #f59e0b;
}

.feature-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.db-badge {
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-accent-light);
    letter-spacing: 0.05em;
}

.feature-action {
    display: inline-block;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-success);
    cursor: pointer;
    transition: all var(--transition-base);
}

.action-btn:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: var(--spacing-4xl) 0;
    background: var(--color-navy);
}

.cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.cta-text {
    font-size: var(--font-size-base);
    color: var(--color-slate-light);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    background: var(--color-navy-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    text-align: center;
}

.footer-brand .logo {
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    font-size: var(--font-size-sm);
    color: var(--color-slate);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-slate-light);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    text-align: center;
}

.footer-contact {
    margin-bottom: var(--spacing-md);
}

.footer-contact p {
    font-size: var(--font-size-sm);
    color: var(--color-slate);
}

.footer-contact a {
    color: var(--color-accent-light);
    font-weight: 500;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: var(--font-size-sm);
    color: var(--color-slate);
}

/* ============================================
   Animations
   ============================================ */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design - Mobile First
   ============================================ */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .input-wrapper {
        flex-direction: row;
        padding: var(--spacing-xs);
    }
    
    .btn-submit {
        width: auto;
    }
    
    .social-proof {
        flex-direction: row;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .section-title {
        font-size: var(--font-size-4xl);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card:last-child {
        grid-column: span 2;
    }
    
    .cta-card {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-brand {
        text-align: left;
    }
    
    .footer-brand .logo {
        justify-content: flex-start;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-title {
        font-size: var(--font-size-6xl);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .feature-card:last-child {
        grid-column: span 1;
    }
    
    .cta-title {
        font-size: var(--font-size-3xl);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* Hover states only for devices with hover capability */
@media (hover: hover) {
    .feature-card:hover {
        transform: translateY(-4px);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode preference (already dark, but ensure consistency) */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}
