/* ========================================
   PatNote Landing Page Styles
   ======================================== */

:root {
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --primary-light: #14B8A6;
    --primary-50: #F0FDFA;
    --primary-100: #CCFBF1;
    --secondary: #6366F1;
    --secondary-light: #818CF8;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-section: #F1F5F9;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

.btn-white {
    background: white;
    color: var(--text-primary);
}
.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.4rem;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

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

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-white) 50%, #EEF2FF 100%);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    top: 50%;
    left: 50%;
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-100);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

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

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

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

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    perspective: 1000px;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: var(--text-primary);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.05);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: var(--text-primary);
    border-radius: 0 0 20px 20px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.phone-screen {
    background: white;
    border-radius: 30px;
    height: 100%;
    overflow: hidden;
    padding: 40px 16px 16px;
    display: flex;
    flex-direction: column;
}

.mock-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.mock-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-100);
}

.mock-title-bar {
    width: 100px;
    height: 10px;
    background: var(--bg-section);
    border-radius: 4px;
    margin-bottom: 4px;
}

.mock-subtitle-bar {
    width: 60px;
    height: 8px;
    background: var(--bg-section);
    border-radius: 4px;
}

.mock-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-msg {
    max-width: 85%;
}

.mock-msg-left {
    align-self: flex-start;
}

.mock-msg-right {
    align-self: flex-end;
}

.mock-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    line-height: 1.5;
    background: var(--bg-section);
    color: var(--text-primary);
}

.mock-bubble-primary {
    background: var(--primary);
    color: white;
}

.mock-ai-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--primary-50), #EEF2FF);
    border: 1px solid var(--primary-100);
    border-radius: 12px;
    margin-top: 8px;
}

.mock-ai-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
}

.mock-ai-text {
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.mock-ai-text strong {
    color: var(--text-primary);
}

/* ========================================
   Sections Common
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-100);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Features
   ======================================== */
.features {
    padding: 100px 0;
    background: var(--bg-white);
}

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

.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-card.animate-in:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-blue { background: #DBEAFE; color: #2563EB; }
.feature-icon-green { background: #DCFCE7; color: #16A34A; }
.feature-icon-purple { background: #EDE9FE; color: #7C3AED; }
.feature-icon-orange { background: #FFF7ED; color: #EA580C; }
.feature-icon-teal { background: var(--primary-100); color: var(--primary); }
.feature-icon-red { background: #FEE2E2; color: #DC2626; }

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   How It Works
   ======================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-section);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(20px);
}

.step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: var(--border);
    margin-top: 28px;
    flex-shrink: 0;
}

/* ========================================
   Screenshots
   ======================================== */
.screenshots {
    padding: 100px 0;
    background: var(--bg-white);
}

.screenshot-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(20px);
}

.screenshot-row.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.screenshot-row:last-child {
    margin-bottom: 0;
}

.screenshot-row-reverse {
    direction: rtl;
}

.screenshot-row-reverse > * {
    direction: ltr;
}

.screenshot-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.screenshot-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.screenshot-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.screenshot-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.screenshot-features li svg {
    color: var(--primary);
    flex-shrink: 0;
}

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

.screenshot-image img {
    max-height: 580px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.screenshot-placeholder {
    background: linear-gradient(135deg, var(--bg-section), var(--primary-50));
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border);
    aspect-ratio: 9/16;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.screenshot-placeholder:hover {
    border-color: var(--primary-light);
    background: linear-gradient(135deg, var(--primary-50), #EEF2FF);
}

.placeholder-content {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-content svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.placeholder-content p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.placeholder-content span {
    font-size: 0.85rem;
}

/* ========================================
   CTA
   ======================================== */
.cta {
    padding: 100px 0;
    background: var(--bg-section);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #065F46 100%);
    border-radius: var(--radius-xl);
    padding: 64px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.cta-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-note {
    font-size: 0.9rem !important;
    opacity: 0.75 !important;
    margin-top: 24px !important;
    margin-bottom: 0 !important;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 64px 0 32px;
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-links h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* ========================================
   Animations
   ======================================== */
.feature-card,
.step,
.screenshot-row,
.cta-card {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }

.step:nth-child(3) { transition-delay: 0.1s; }
.step:nth-child(5) { transition-delay: 0.2s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.6rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .hero {
        padding: 120px 0 60px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        margin: 0 auto 32px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    .phone-frame {
        width: 250px;
        height: 500px;
        transform: none;
    }
    .phone-frame:hover {
        transform: none;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    .step {
        max-width: 400px;
    }
    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }
    .screenshot-row,
    .screenshot-row-reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .screenshot-row-reverse {
        direction: ltr;
    }
    .screenshot-placeholder {
        max-height: 400px;
    }
    .cta-card {
        padding: 40px 24px;
    }
    .cta-card h2 {
        font-size: 1.6rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn-lg {
        width: 100%;
        justify-content: center;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
    }
}
