/* ============================================
   DeamScan - Modern Landing Page
   Professional, Clean, Responsive Design
   ============================================ */

:root {
    /* Modern Color Palette */
    --primary: #00D9FF;
    --primary-dark: #00B8D4;
    --primary-light: #33E1FF;
    --secondary: #7C3AED;
    --accent: #EC4899;
    --success: #10B981;

    /* Neutrals */
    --dark: #0A0F1C;
    --dark-light: #1A1F35;
    --dark-lighter: #252B42;
    --gray: #64748B;
    --gray-light: #94A3B8;
    --white: #FFFFFF;
    --off-white: #F8FAFC;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #7C3AED 100%);
    --gradient-hero: linear-gradient(135deg, #0A0F1C 0%, #1A1F35 50%, #0A0F1C 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);

    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-unit: 8px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

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

/* ============================================
   Utility Classes
   ============================================ */
.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Modern Header with Glassmorphism
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 15, 28, 0.95);
    box-shadow: var(--shadow-lg);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-base);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ============================================
   Hero Section - Modern & Eye-Catching
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

/* Animated Background Gradient */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-light);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-badges img {
    height: 28px;
    opacity: 0.9;
    transition: opacity var(--transition-base);
}

.hero-badges img:hover {
    opacity: 1;
}

/* Phone Mockup - Modern Glass Effect */
.phone-mockup {
    position: relative;
    width: 320px;
    height: 640px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 40px;
    padding: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark-lighter) 100%);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 32px 32px 0 0;
}

.mockup-placeholder {
    opacity: 0.4;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
}

/* ============================================
   Modern Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--dark);
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 217, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: 120px 0;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--gray-light);
    text-align: center;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Features - Modern Cards with Glassmorphism
   ============================================ */
.features {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 50%, var(--dark) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    position: relative;
    padding: 40px;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-slow);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 217, 255, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 217, 255, 0.3));
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.feature-card p {
    color: var(--gray-light);
    line-height: 1.7;
    font-size: 16px;
}

/* ============================================
   How It Works - Timeline Style
   ============================================ */
.how-it-works {
    background: var(--dark-light);
}

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

.step {
    position: relative;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.4);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.step h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.step p {
    color: var(--gray-light);
    line-height: 1.7;
    font-size: 16px;
}

/* ============================================
   Pricing - Modern Cards
   ============================================ */
.pricing {
    background: var(--dark);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 48px 40px;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-slow);
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

.popular-badge, .save-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 24px;
    background: var(--gradient-primary);
    color: var(--dark);
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.4);
    white-space: nowrap;
}

.save-badge {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.pricing-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.price {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price span {
    font-size: 20px;
    color: var(--gray-light);
}

.price-note {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 32px;
    font-style: italic;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.features-list li {
    padding: 14px 0;
    color: var(--gray-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
}

.features-list li:last-child {
    border-bottom: none;
}

/* ============================================
   Download Section
   ============================================ */
.download {
    text-align: center;
    background: var(--dark-light);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all var(--transition-base);
}

.store-button:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 217, 255, 0.3);
}

.store-text {
    font-size: 12px;
    color: var(--gray);
    text-align: left;
}

.store-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    text-align: left;
}

.download-note {
    color: var(--gray-light);
    font-style: italic;
}

/* ============================================
   Disclaimer
   ============================================ */
.disclaimer {
    background: var(--dark);
    padding: 60px 0;
}

.disclaimer-box {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.disclaimer-box h3 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 20px;
}

.disclaimer-box p {
    color: var(--gray-light);
    line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark);
    padding: 80px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: hidden;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
    width: 100%;
    max-width: 100%;
}

.footer-section {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--white);
    font-weight: 600;
}

.footer-section p {
    color: var(--gray-light);
    line-height: 1.7;
    word-wrap: break-word;
}

.footer-section ul {
    list-style: none;
    max-width: 100%;
}

.footer-section li {
    margin-bottom: 12px;
    word-wrap: break-word;
}

.footer-section a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color var(--transition-base);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 0;
}

.footer-bottom p {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
}

/* ============================================
   Scroll Animations
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Tablet */
@media (max-width: 968px) {
    :root {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-badges {
        justify-content: center;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
    }

    .section-title {
        font-size: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .header {
        height: auto;
    }

    .nav {
        height: 70px;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .feature-card {
        padding: 32px;
        text-align: center;
    }

    .pricing-card {
        padding: 40px 32px;
    }

    .download-buttons {
        flex-direction: column;
        max-width: 320px;
        margin: 0 auto 32px;
    }

    .store-button {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-section {
        padding: 0 8px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 15px;
    }

    .feature-card {
        padding: 28px;
        text-align: center;
    }

    .price {
        font-size: 48px;
    }

    .footer-section {
        padding: 0 4px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .footer,
    .download,
    .animate-on-scroll {
        display: none;
    }
}
