/* Premium SaaS Landing Page Styles */

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

:root {
    --purple-900: #5B21B6;
    --purple-700: #7C3AED;
    --purple-500: #8B5CF6;
    --blue-900: #1E3A8A;
    --blue-600: #2563EB;
    --blue-500: #3B82F6;
    --accent: #A78BFA;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(ellipse at top, #1e1b4b 0%, #0f0a1e 50%, #000000 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #ffffff;
    position: relative;
    overflow-x: hidden;
}

/* Subtle grain texture overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* Dot pattern background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Gradient glow effects */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.15), transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.15), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.landing-container {
    width: 100%;
    max-width: 1400px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Header */
.landing-header {
    margin-bottom: 80px;
    animation: fadeInDown 1s ease-out;
}

.main-title {
    font-size: 88px;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 0 80px rgba(139, 92, 246, 0.5);
}

.subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 80px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Card Base Styles - Glassmorphism */
.card {
    background: rgba(30, 27, 75, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 48px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    text-align: left;
    box-shadow: 
        0 0 0 1px rgba(139, 92, 246, 0.1) inset,
        0 20px 40px -10px rgba(0, 0, 0, 0.4),
        0 0 80px -20px rgba(139, 92, 246, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(167, 139, 250, 0.8);
    margin-bottom: 16px;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.card-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Terminal Card - Disabled State */
.terminal-card {
    opacity: 0.7;
    cursor: default;
}

.terminal-card::before {
    opacity: 0;
}

.card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Stream Command Card - Active State */
.stream-card {
    cursor: pointer;
    background: rgba(30, 27, 75, 0.5);
}

.stream-card .card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.stream-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 0 0 1px rgba(139, 92, 246, 0.3) inset,
        0 30px 60px -10px rgba(0, 0, 0, 0.5),
        0 0 100px -10px rgba(139, 92, 246, 0.4);
}

.stream-card:hover::before {
    opacity: 1;
}

.stream-card:hover .card-glow {
    opacity: 1;
}

.stream-card:hover .card-title {
    color: rgba(255, 255, 255, 1);
}

.stream-card:hover .card-cta {
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.stream-card:hover .card-cta svg {
    transform: translateX(4px);
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(59, 130, 246, 0.8));
    padding: 14px 28px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.card-cta svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .main-title {
        font-size: 72px;
    }
    
    .cards-container {
        gap: 24px;
    }
    
    .card {
        padding: 40px;
    }
}

@media (max-width: 968px) {
    body {
        padding: 30px 20px;
    }
    
    .landing-header {
        margin-bottom: 60px;
    }
    
    .main-title {
        font-size: 64px;
        letter-spacing: -1px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .cards-container {
        gap: 20px;
    }
    
    .card {
        padding: 36px;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .card-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 16px;
    }
    
    .landing-header {
        margin-bottom: 48px;
    }
    
    .main-title {
        font-size: 48px;
        letter-spacing: -0.5px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }
    
    .card {
        padding: 32px 24px;
    }
    
    .card-badge {
        top: 20px;
        right: 20px;
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .card-label {
        font-size: 12px;
    }
    
    .card-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .card-description {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .card-cta {
        font-size: 14px;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 12px;
    }
    
    .main-title {
        font-size: 40px;
    }
    
    .subtitle {
        font-size: 15px;
    }
    
    .card {
        padding: 28px 20px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .card-description {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::after {
        animation: none;
    }
    
    .status-dot {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border-width: 2px;
    }
    
    .card-title {
        color: #ffffff;
    }
}

/* iOS Safari overscroll fix — put at END of landing.css */
html, body {
  background-color: #000;     /* safety fallback */
  height: 100%;
}

html::before {
  content: "";
  position: fixed;
  inset: -50vh 0 -50vh 0;     /* extend above & below viewport for bounce */
  z-index: -1;                 /* sits behind everything */
  pointer-events: none;
  background: radial-gradient(ellipse at top, #1e1b4b 0%, #0f0a1e 50%, #000000 100%);
}

/* Ensure the new backdrop shows through */
body {
  background: transparent !important;
}

/* (Optional) Limit to iOS/WebKit only
@supports (-webkit-touch-callout: none) {
  html::before {
    content: "";
    position: fixed;
    inset: -50vh 0 -50vh 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at top, #1e1b4b 0%, #0f0a1e 50%, #000000 100%);
  }
}
*/

/* Keep header compact, cards even more compact on mobile */
@media (max-width: 768px) {
  body { padding: 20px 16px; }
  
  /* Smaller title that stays on ONE LINE */
  .landing-header { 
    margin-top: -20px !important;
    margin-bottom: 75px !important; 
  }
  
  .main-title { 
    font-size: 40px !important;  /* Much smaller */
    letter-spacing: -0.5px !important;
    white-space: nowrap !important;  /* ONE LINE - no wrapping */
  }
  
  .subtitle { 
    font-size: 12px !important; 
  }
  
  /* Compact cards */
  .cards-container { 
    gap: 10px; 
    margin-bottom: 32px; 
  }
  
  .card { 
    padding: 18px 14px; 
    border-radius: 16px; 
  }
  
  .card-badge { 
    top: 14px; 
    right: 14px; 
    font-size: 9px; 
    padding: 4px 8px; 
  }
  
  .card-label { 
    font-size: 10px; 
    margin-bottom: 8px;
  }
  
  .card-title { 
    font-size: 18px; 
    margin-bottom: 8px; 
  }
  
  .card-description { 
    font-size: 12px; 
    line-height: 1.5; 
    margin-bottom: 14px; 
  }
  
  .card-cta { 
    font-size: 12px; 
    padding: 8px 16px; 
    border-radius: 8px; 
  }
}

