/* ==========================================================================
   Medicora Landing Page Stylesheet - Premium Dark Theme
   ========================================================================== */

/* ─── CSS Variables & Custom Properties ─── */
:root {
    --primary: #33E19A;          /* Mint Green */
    --primary-dark: #1FA374;     /* Darker Mint */
    --accent: #20CBD8;           /* Celestial Blue / Cyan */
    --bg-dark: #121212;          /* Charcoal Black */
    --surface-dark: #1E1E1E;     /* Card Dark grey */
    --border-dark: #2C2C2C;      /* Card border */
    --text-light: #FFFFFF;
    --text-muted: #8E8E93;
    --text-muted-dark: #6B7280;
    --danger: #FF5A5F;
    --success: #33E19A;
    --warning: #20CBD8;
    
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-hover: linear-gradient(135deg, var(--primary-dark) 0%, #169AA5 100%);
    --gradient-glow: rgba(51, 225, 154, 0.15);
    
    --font-title: 'Comfortaa', cursive, sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

/* ─── Resets & Base Styles ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── Ambient Glow Effects ─── */
.bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
}

.bg-glow-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.bg-glow-2 {
    top: 600px;
    left: -200px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

/* ─── Header Navigation ─── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background-color: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
}

.header.scrolled {
    height: 70px;
    background-color: rgba(18, 18, 18, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--gradient);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(51, 225, 154, 0.2);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(51, 225, 154, 0.35);
}

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

.btn-outline:hover {
    background: rgba(51, 225, 154, 0.06);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 10px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 16px;
}

.btn-icon {
    flex-shrink: 0;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ─── Hero Section ─── */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    background-color: rgba(51, 225, 154, 0.08);
    border: 1px solid rgba(51, 225, 154, 0.15);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: -0.2px;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.08);
}

.hero-mockup {
    display: flex;
    justify-content: center;
    position: relative;
}

.mockup-wrapper {
    position: relative;
    max-width: 380px;
    width: 100%;
}

.mockup-glow {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    background: var(--gradient);
    filter: blur(50px);
    opacity: 0.25;
    z-index: -1;
    border-radius: 40px;
    animation: pulseGlow 8s infinite alternate;
}

.phone-mockup {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
    animation: float 6s ease-in-out infinite;
    border-radius: 40px;
}

/* ─── Features Section ─── */
.features {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(30, 30, 30, 0.2), transparent);
}

.section-header {
    max-width: 650px;
    margin: 0 auto 64px auto;
}

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

.section-title {
    font-family: var(--font-title);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

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

.feature-card {
    background-color: rgba(30, 30, 30, 0.45);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(51, 225, 154, 0.05), rgba(32, 203, 216, 0.05));
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(51, 225, 154, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(51, 225, 154, 0.05);
}

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

.feature-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(51, 225, 154, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border: 1px solid rgba(51, 225, 154, 0.15);
    color: var(--primary);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--gradient);
    color: var(--bg-dark);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(51, 225, 154, 0.3);
}

.feature-title {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.feature-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ─── Interactive Preview Section ─── */
.preview {
    padding: 100px 0;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 20px;
}

.preview-tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tab-btn {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background-color: rgba(30, 30, 30, 0.3);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    background-color: rgba(30, 30, 30, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background-color: rgba(30, 30, 30, 0.6);
    border-color: rgba(51, 225, 154, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tab-icon {
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.04);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.tab-btn.active .tab-icon {
    background: var(--gradient);
    color: var(--bg-dark);
}

.tab-content h4 {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.tab-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.preview-display {
    display: flex;
    justify-content: center;
}

/* Simulated Smartphone Hardware mockup */
.display-device {
    width: 290px;
    height: 580px;
    background-color: #0b0b0c;
    border: 10px solid #28282d;
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), inset 0 0 10px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Simulated Screen Display */
.device-screen {
    flex-grow: 1;
    background-color: var(--bg-dark);
    position: relative;
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.device-screen::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.device-home-bar {
    width: 110px;
    height: 4px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 2px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Mock App UI Elements */
.screen-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    padding-bottom: 25px;
}

.screen-content.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    position: relative;
}

.app-header {
    height: 54px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-dark);
    flex-shrink: 0;
}

.app-header-logo {
    height: 22px;
    object-fit: contain;
}

.app-theme-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background-color: var(--surface-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--warning);
    border: 1px solid rgba(255,255,255,0.05);
}

.app-body {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

/* Colors for simulated profiles */
.text-mint { color: var(--primary); border-color: rgba(51, 225, 154, 0.3) !important; }
.text-celeste { color: var(--accent); border-color: rgba(32, 203, 216, 0.3) !important; }
.text-mint-dark { color: var(--primary-dark); border-color: rgba(31, 163, 116, 0.3) !important; }

.profile-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: var(--surface-dark);
    border-radius: 16px;
    border: 1px solid var(--border-dark);
}

.profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 14px;
}

.profile-info {
    margin-left: 12px;
    flex-grow: 1;
}

.profile-info h5 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.profile-info p {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.chevron {
    color: var(--text-muted);
    font-size: 18px;
    opacity: 0.5;
}

.app-btn-add {
    border: 1.5px dashed var(--border-dark);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

/* Profile Detail Mock UI */
.app-header.back-btn {
    justify-content: flex-start;
    gap: 10px;
}

.app-header.back-btn span {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

.app-header.back-btn h5 {
    font-size: 12px;
    font-weight: 700;
    flex-grow: 1;
    text-align: center;
}

.profile-header-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.time-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.med-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: var(--surface-dark);
    border-radius: 14px;
    border: 1px solid var(--border-dark);
}

.med-card.checked {
    border-color: rgba(51, 225, 154, 0.2);
}

.med-status {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.check-icon {
    background-color: rgba(51, 225, 154, 0.1);
    color: var(--primary);
}

.pending-icon {
    background-color: rgba(32, 203, 216, 0.1);
    color: var(--accent);
}

.med-details {
    margin-left: 12px;
}

.med-details h6 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.med-card.checked .med-details h6 {
    text-decoration: line-through;
    color: var(--text-muted);
}

.med-details p {
    font-size: 9px;
    color: var(--text-muted);
}

/* Alarm screen simulation */
.alarm-view {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.alarm-ring {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 24px;
}

.alarm-bell-icon {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 2;
    position: relative;
    box-shadow: 0 0 20px rgba(51, 225, 154, 0.4);
    animation: ringBell 0.5s infinite ease;
}

.ring-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.8;
    z-index: 1;
    animation: waveOut 2s infinite ease-out;
}

.ring-wave-2 {
    animation-delay: 0.8s;
}

.alarm-time {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.alarm-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
}

.alarm-pill-box {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    margin-bottom: 28px;
}

.alarm-pill-box h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.alarm-pill-box p {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.alarm-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.alarm-btn {
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.snooze-btn {
    background-color: var(--surface-dark);
    color: var(--text-muted);
    border: 1px solid var(--border-dark);
}

.snooze-btn:hover {
    background-color: #26262b;
    color: var(--text-light);
}

.take-btn {
    background: var(--gradient);
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(51, 225, 154, 0.15);
}

.take-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(51, 225, 154, 0.25);
}

/* ─── Download CTA Section ─── */
.download-cta {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.download-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(51, 225, 154, 0.08) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.download-title {
    font-family: var(--font-title);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.download-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.app-meta {
    font-size: 13px;
    color: var(--text-muted-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.meta-dot {
    opacity: 0.5;
}

/* ─── Footer Section ─── */
.footer {
    background-color: #0b0b0c;
    border-top: 1px solid var(--border-dark);
    padding: 80px 0 30px 0;
    color: var(--text-muted);
    font-size: 14px;
}

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

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

.brand-desc {
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links, .footer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4, .footer-info h4 {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-links a:hover, .footer-info a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 30px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 20px;
}

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

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

/* ─── Keyframe Animations ─── */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { opacity: 0.15; filter: blur(40px); }
    100% { opacity: 0.3; filter: blur(60px); }
}

@keyframes ringBell {
    0% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-12deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-8deg); }
    50% { transform: rotate(6deg); }
    60% { transform: rotate(-4deg); }
    70% { transform: rotate(2deg); }
    80% { transform: rotate(-1deg); }
    90% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

@keyframes waveOut {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Scroll Entrance Animation Classes */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }

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

/* Scroll reveal trigger styles */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive Media Queries ─── */

/* Tablets & Small Desktops */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 42px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .preview-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 40px;
    }
}

/* Large Tablets & Medium Devices */
@media (max-width: 768px) {
    .header {
        height: 70px;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-dark);
        border-top: 1px solid var(--border-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        padding-bottom: 100px;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        z-index: 99;
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    .header-actions .btn {
        display: none; /* Hide top CTA on mobile */
    }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .badge, .hero-content {
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-ctas {
        justify-content: center;
        width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .preview-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .preview-tabs {
        order: 2;
    }
    
    .preview-display {
        order: 1;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 34px;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .download-title {
        font-size: 30px;
    }
    
    .download-buttons .btn {
        width: 100%;
    }
    
    .app-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .meta-dot {
        display: none;
    }
    
    .display-device {
        width: 270px;
        height: 540px;
        border-width: 8px;
    }
}
