/* ============================================
   AuraCast Website - Main Stylesheet
   Colors based on app design and purple logo
   ============================================ */

:root {
    /* Primary Brand Colors */
    --primary-purple: #8B5CF6;
    --primary-dark: #6D28D9;
    --primary-light: #A78BFA;
    
    /* Risk Level Colors (from app) */
    --risk-low: #4CAF50;
    --risk-moderate: #FFC107;
    --risk-high: #FF9800;
    --risk-very-high: #F44336;
    
    /* UI Colors */
    --blue: #007AFF;
    --gray: #8E8E93;
    --light-gray: #F5F5F7;
    --dark-gray: #1D1D1F;
    --white: #FFFFFF;
    
    /* Gradients */
    --gradient-purple: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-small: 0.875rem;
    --font-size-base: 1rem;
    --font-size-large: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 3rem;
    
    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-purple);
    background-color: rgba(139, 92, 246, 0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   Hero Section - New Design
   ============================================ */

.hero-header {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--spacing-lg) 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(17, 24, 39, 0.6) 0%, 
        rgba(88, 28, 135, 0.4) 50%, 
        rgba(17, 24, 39, 1) 100%);
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    background-color: #111827;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    opacity: 0.95;
}

.hero-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1400px;
    padding: 0 var(--spacing-md);
    margin: 0 auto;
}

.hero-text-section {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.hero-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: rgba(88, 28, 135, 0.3);
    backdrop-filter: blur(4px);
    color: #DDD6FE;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-gradient {
    background: linear-gradient(to right, #A78BFA, #93C5FD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.5rem;
    color: #E5E7EB;
    max-width: 600px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    padding-top: 1rem;
    flex-wrap: wrap;
}

.btn-ios {
    background: var(--primary-purple);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-ios:hover {
    background: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.6);
}

.btn-ios .apple-icon {
    width: 24px;
    height: 24px;
}

.hero-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone-container {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.hero-phone-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
    border-radius: 3rem;
}

/* Responsive Design for Hero */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .hero-text-section {
        align-items: center;
        text-align: center;
    }
    
    .hero-badge {
        align-self: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-phone-container {
        max-width: 320px;
        margin-top: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .hero-header {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-ios,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-ios {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-phone-container {
        max-width: 280px;
    }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: var(--font-size-base);
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-purple);
    box-shadow: var(--shadow-md);
}

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

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: var(--font-size-large);
}

.apple-icon {
    width: 20px;
    height: 20px;
}

/* ============================================
   Phone Mockup
   ============================================ */

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--dark-gray);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #555;
    border-radius: 3px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #FFC107 0%, #FF9800 100%);
    border-radius: 32px;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.risk-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.risk-circle.moderate {
    border: 4px solid var(--white);
}

.risk-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
}

.risk-label {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 600;
}

.weather-cards {
    display: flex;
    gap: 0.5rem;
}

.mini-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 60px;
}

.mini-card .icon {
    font-size: 1.5rem;
}

.mini-card .value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--dark-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

.feature-icon.privacy {
    background: rgba(76, 175, 80, 0.1);
    color: var(--risk-low);
}

.feature-icon.science {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-purple);
}

.feature-icon.alerts {
    background: rgba(255, 152, 0, 0.1);
    color: var(--risk-high);
}

.feature-icon.custom {
    background: rgba(0, 122, 255, 0.1);
    color: var(--blue);
}

.feature-icon.history {
    background: rgba(142, 142, 147, 0.1);
    color: var(--gray);
}

.feature-icon.premium {
    background: rgba(255, 193, 7, 0.1);
    color: var(--risk-moderate);
}

.feature-card h3 {
    font-size: var(--font-size-large);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--dark-gray);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-gray);
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: var(--spacing-md);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-purple);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
}

.step h3 {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-xs);
    color: var(--dark-gray);
}

.step p {
    color: var(--gray);
}

.step-arrow {
    color: var(--primary-purple);
    font-size: var(--font-size-2xl);
    font-weight: 300;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    background: var(--gradient-purple);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.cta-section h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-section h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Content Pages
   ============================================ */

.content-page {
    padding: var(--spacing-lg) 0;
    min-height: 60vh;
}

.content-page h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--dark-gray);
}

.content-page h2 {
    font-size: var(--font-size-xl);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
}

.content-page h3 {
    font-size: var(--font-size-large);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    color: var(--dark-gray);
}

.content-page p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
    color: var(--gray);
}

.content-page ul,
.content-page ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.content-page li {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.content-page a {
    color: var(--primary-purple);
    text-decoration: none;
}

.content-page a:hover {
    text-decoration: underline;
}

.last-updated {
    font-style: italic;
    color: var(--gray);
    margin-bottom: var(--spacing-md);
}

/* FAQ Specific Styles */
.faq-item {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: var(--spacing-xs);
}

.faq-answer {
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: var(--font-size-2xl);
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
    
    .risk-circle {
        width: 150px;
        height: 150px;
    }
    
    .risk-value {
        font-size: 2.5rem;
    }
    
    .step-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: var(--spacing-sm);
        box-shadow: var(--shadow-lg);
    }
    
    .hero-text h1 {
        font-size: var(--font-size-xl);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: var(--font-size-small);
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .risk-circle {
        width: 120px;
        height: 120px;
    }
    
    .risk-value {
        font-size: 2rem;
    }
    
    .risk-label {
        font-size: 0.75rem;
    }
    
    .mini-card {
        min-width: 50px;
        padding: 0.5rem;
    }
}/* Additional styles for updated design */

/* Dark Hero Section with Stormy Background */
.hero-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.stormy-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"%3E%3Cpath fill="%23ffffff" opacity="0.05" d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z"/%3E%3C/svg%3E');
    background-size: cover;
    filter: blur(3px);
    opacity: 0.3;
}

/* New Hero Layout */
.hero-content-new {
    display: grid;
    grid-template-columns: 300px 1fr 320px;
    gap: var(--spacing-md);
    align-items: end;
    position: relative;
    z-index: 1;
    padding: var(--spacing-lg) 0;
}

.hero-left {
    display: flex;
    align-items: flex-end;
}

.hero-head-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
}

.hero-center {
    text-align: center;
    padding: 0 var(--spacing-md);
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup-simple {
    width: 280px;
    background: var(--dark-gray);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.dashboard-preview {
    background: linear-gradient(180deg, #FF9800 0%, #F44336 100%);
    border-radius: 32px;
    padding: var(--spacing-md);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.risk-display {
    text-align: center;
}

.risk-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    border: 4px solid var(--white);
}

.risk-circle.high {
    border-color: var(--white);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.risk-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
}

.risk-text {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.condition-cards {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.condition-mini {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    background: var(--primary-purple);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .hero-content-new {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .hero-left {
        justify-content: center;
        order: 1;
    }
    
    .hero-center {
        order: 2;
    }
    
    .hero-right {
        order: 3;
    }
    
    .hero-head-img {
        max-width: 200px;
    }
    
    .phone-mockup-simple {
        width: 240px;
    }
    
    .dashboard-preview {
        min-height: 420px;
    }
    
    .risk-circle {
        width: 140px;
        height: 140px;
    }
    
    .risk-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-head-img {
        max-width: 150px;
    }
    
    .phone-mockup-simple {
        width: 200px;
    }
    
    .dashboard-preview {
        min-height: 350px;
        padding: var(--spacing-sm);
    }
    
    .risk-circle {
        width: 120px;
        height: 120px;
    }
    
    .risk-number {
        font-size: 2rem;
    }
    
    .condition-mini {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}
