/* ========================================
   Sublime Apps - Premium Dental App Agency
   ======================================== */

:root {
    /* Lime green palette from logo */
    --primary: #7CB342;
    --primary-dark: #558B2F;
    --accent: #9CCC65;
    --accent-light: #E8F5E9;
    --dark: #2D3436;
    --darker: #1A1A2E;
    --light: #f8f9fc;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gradient: linear-gradient(135deg, #558B2F 0%, #9CCC65 100%);
    --gradient-dark: linear-gradient(135deg, #2D3436 0%, #558B2F 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

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

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

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

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

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

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(124, 179, 66, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 179, 66, 0.5);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

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

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

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.75rem;
}

.logo-accent {
    color: var(--primary);
}

.logo-img {
    height: 56px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.footer-logo .logo-img {
    height: 48px;
}

.footer-logo .logo-text {
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--gradient) !important;
    color: var(--white) !important;
    padding: 12px 24px !important;
    border-radius: 50px;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(124, 179, 66, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    padding: 140px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(187, 225, 250, 0) 100%);
    border-radius: 0 0 0 50%;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 24px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-500);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

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

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: var(--dark);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
}

.app-header {
    background: var(--gradient);
    color: var(--white);
    padding: 40px 20px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.app-logo {
    font-size: 1.5rem;
}

.app-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-card {
    background: var(--gray-100);
    padding: 16px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-card i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.app-card span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.app-card strong {
    color: var(--dark);
    font-size: 0.875rem;
}

.floating-badge {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 3s ease-in-out infinite;
}

.floating-badge i {
    color: var(--accent);
}

.badge-1 {
    top: 20%;
    left: -20px;
}

.badge-2 {
    bottom: 30%;
    right: -20px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }
    .hero-bg { display: none; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 40px; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
    .phone-frame { width: 240px; height: 500px; }
}

/* ========================================
   Logos Section
   ======================================== */

.logos-section {
    padding: 60px 24px;
    background: var(--gray-100);
}

.logos-title {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    font-size: 1.125rem;
    font-weight: 600;
}

.logo-item i {
    font-size: 1.5rem;
}

/* ========================================
   Section Styles
   ======================================== */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header.light {
    color: var(--white);
}

.section-header.light .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.section-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header.light .section-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.125rem;
}

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

.features {
    padding: 100px 24px;
}

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

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card.featured {
    grid-row: span 2;
    background: var(--gradient);
    color: var(--white);
    border: none;
}

.feature-card.featured .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.feature-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    margin-top: 24px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.feature-list i {
    color: var(--accent-light);
}

.features-cta {
    text-align: center;
    margin-top: 48px;
}

.features-cta p {
    color: var(--gray-500);
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card.featured {
        grid-column: span 1;
    }
}

/* ========================================
   Showcase Section
   ======================================== */

.showcase {
    padding: 100px 24px;
    background: var(--gradient-dark);
}

.showcase-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.showcase-phones {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: -40px;
    position: relative;
}

.showcase-phone {
    background: var(--dark);
    border-radius: 30px;
    padding: 8px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.showcase-phone img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}

.phone-left, .phone-right {
    width: 220px;
    opacity: 0.7;
    transform: scale(0.9);
}

.phone-center {
    width: 520px;
    z-index: 2;
    margin: 0 -30px;
}

.showcase-info {
    color: var(--white);
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.showcase-info h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.showcase-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.app-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.app-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-light);
}

.store-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    color: var(--dark);
    padding: 12px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

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

.store-btn i {
    font-size: 1.75rem;
}

.store-btn div {
    text-align: left;
}

.store-btn span {
    font-size: 0.75rem;
    color: var(--gray-500);
    display: block;
}

.store-btn strong {
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .showcase-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .showcase-info {
        order: -1;
    }
    .app-stats, .store-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .phone-left, .phone-right { display: none; }
    .phone-center { margin: 0; }
}

/* ========================================
   Process Section
   ======================================== */

.process {
    padding: 100px 24px;
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 70px;
    width: 2px;
    height: calc(100% - 20px);
    background: var(--gray-200);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 8px;
    color: var(--dark);
}

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

.guarantee-box {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--accent-light);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-top: 60px;
}

.guarantee-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.guarantee-content h3 {
    margin-bottom: 8px;
    color: var(--primary);
}

.guarantee-content p {
    color: var(--gray-600);
}

@media (max-width: 640px) {
    .guarantee-box {
        flex-direction: column;
        text-align: center;
    }
}

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

.cta-section {
    padding: 100px 24px;
    background: var(--gradient);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.cta-note {
    display: block;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

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

.footer {
    background: var(--darker);
    color: var(--white);
    padding: 80px 24px 40px;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-400);
    max-width: 300px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ========================================
   Animations
   ======================================== */

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

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