/* ========================================
   Betly Website - Linear-inspired Design
   Dark theme with subtle gradients
   ======================================== */

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

:root {
    /* Core Colors - Dark Theme */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.35);
    
    /* Accent Colors - Betly Brand */
    --accent-primary: #FF8B7B;
    --accent-secondary: #FF6B5A;
    --accent-glow: rgba(255, 139, 123, 0.4);
    
    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-medium: rgba(255, 255, 255, 0.2);
    
    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #FF8B7B 0%, #FF6B5A 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 139, 123, 0.15), transparent);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

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

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

.nav-actions {
    display: flex;
    gap: 12px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-nav {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-nav:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-medium);
}

.btn-primary {
    background: var(--gradient-accent);
    color: #000;
    font-weight: 600;
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-medium);
    background: rgba(255, 255, 255, 0.05);
}

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

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

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ========================================
   Hero Section - Linear Style (Overlapping)
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 0;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 400px;
    background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255, 139, 123, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 32px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

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

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

/* Hero Showcase - Linear Style Overlapping Image */
.hero-showcase {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1400px;
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 -20px 60px -15px rgba(0, 0, 0, 0.3),
        0 40px 80px -20px rgba(0, 0, 0, 0.4);
    transform: perspective(2500px) rotateX(12deg);
    transform-origin: center bottom;
}

.hero-image-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -30%);
    width: 80%;
    height: 50%;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 139, 123, 0.12), transparent);
    pointer-events: none;
    filter: blur(80px);
    z-index: -1;
}

/* ========================================
   Customers Section
   ======================================== */
.customers {
    padding: 100px 0;
    background: var(--bg-primary);
}

.customers-header {
    text-align: center;
    margin-bottom: 64px;
}

.customers-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.customers-subtitle {
    font-size: 1.1rem;
    color: var(--text-tertiary);
}

.customers-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.customers-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    justify-items: center;
    align-items: center;
}

.customer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 100%;
    max-width: 200px;
}

.customer-logo img {
    max-height: 48px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(2);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.customer-logo:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.customer-placeholder {
    border: 1px dashed var(--border-light);
    border-radius: 8px;
    padding: 16px 24px;
}

.customer-placeholder span {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .customers {
        padding: 60px 0;
    }
    
    .customers-title {
        font-size: 1.5rem;
    }
    
    .customers-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .customer-logo {
        height: 50px;
    }
    
    .customer-logo img {
        max-height: 36px;
        max-width: 120px;
    }
}

/* ========================================
   Section Common Styles
   ======================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

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

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

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

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

.feature-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.feature-card-large {
    grid-column: span 1;
    grid-row: span 2;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 139, 123, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

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

.feature-list {
    list-style: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* ========================================
   AI Section
   ======================================== */
.ai-section {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.ai-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 139, 123, 0.08), transparent);
    pointer-events: none;
}

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

.ai-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s;
}

.ai-card:hover {
    border-color: var(--border-light);
}

.ai-card-header {
    margin-bottom: 16px;
}

.ai-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 139, 123, 0.1);
    border: 1px solid rgba(255, 139, 123, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.ai-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* ========================================
   Security Section
   ======================================== */
.security-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.security-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.security-text {
    max-width: 560px;
}

.security-text .section-title {
    text-align: left;
}

.security-text .section-desc {
    text-align: left;
    margin-bottom: 32px;
}

.security-list {
    list-style: none;
}

.security-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.security-list svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.security-badges {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    min-width: 160px;
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.billing-label {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.2s;
}

.billing-label-active {
    color: var(--text-primary);
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 26px;
    transition: all 0.3s;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--gradient-accent);
    border-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

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

.pricing-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--border-light);
}

.pricing-card-featured {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(255, 139, 123, 0.05) 0%, var(--bg-card) 100%);
}

.pricing-card-featured:hover {
    border-color: var(--accent-primary);
}

.pricing-card .pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--gradient-accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.pricing-price {
    margin-bottom: 0;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.price-unit {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* Annual pricing */
.pricing-annual {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 139, 123, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 139, 123, 0.15);
}

.annual-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(255, 139, 123, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.annual-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.annual-note {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    width: 100%;
}

/* Cost estimate */
.pricing-estimate {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 16px;
    margin-bottom: 0;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    border-left: 3px solid var(--accent-primary);
}

.pricing-estimate strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    margin-top: 20px;
    margin-bottom: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.pricing-features li strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.pricing-card .btn {
    width: 100%;
}

/* ========================================
   Culture Section
   ======================================== */
.culture-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.culture-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.3s;
}

.culture-card:hover {
    border-color: var(--border-light);
}

.culture-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 3rem;
    font-weight: 700;
    color: var(--border-subtle);
    line-height: 1;
}

.culture-header {
    margin-bottom: 16px;
}

.culture-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.culture-subtitle {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-style: italic;
}

.culture-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.culture-list {
    list-style: none;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.culture-list li {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
}

.culture-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Culture Hero - Impact Section */
.culture-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.culture-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.culture-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.culture-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.culture-hero-text {
    font-size: 1.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.culture-hero-text strong {
    color: var(--accent-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .culture-hero {
        height: 50vh;
        min-height: 320px;
    }
    
    .culture-hero-text {
        font-size: 1.25rem;
    }
}

.culture-footer {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    text-wrap: balance;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 139, 123, 0.15), transparent);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-wrap: balance;
}

.cta-actions {
    margin-bottom: 16px;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 60px 0 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

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

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 12px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-group h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-group a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.beian {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.beian:hover {
    color: var(--text-secondary);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-showcase {
        width: calc(100% - 40px);
        max-width: 1000px;
    }
    
    .hero-image {
        transform: perspective(2000px) rotateX(10deg);
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .ai-grid {
        grid-template-columns: 1fr;
    }
    
    .security-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .security-text .section-title,
    .security-text .section-desc {
        text-align: center;
    }
    
    .security-list {
        display: inline-block;
        text-align: left;
    }
    
    .security-badges {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .culture-grid {
        grid-template-columns: 1fr;
    }
}

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

    .hero {
        min-height: auto;
        padding-top: 90px;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-content {
        padding-bottom: 24px;
    }

    .hero-showcase {
        width: calc(100% - 32px);
    }

    .hero-image {
        transform: perspective(1500px) rotateX(8deg);
        border-radius: 10px 10px 0 0;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .feature-card-large {
        grid-column: span 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

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

    .hero {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 1.625rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-content {
        padding-bottom: 20px;
    }
    
    .hero-showcase {
        width: calc(100% - 24px);
    }
    
    .hero-image {
        transform: perspective(1200px) rotateX(6deg);
        border-radius: 8px 8px 0 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .pricing-card {
        padding: 24px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ========================================
   Animations
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .ai-card,
    .pricing-card,
    .culture-card {
        transition: transform 0.3s ease, border-color 0.3s ease;
    }
    
    .btn {
        transition: all 0.2s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   QR Code Modal
   ======================================== */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.qr-modal.active {
    opacity: 1;
    visibility: visible;
}

.qr-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.qr-modal.active .qr-modal-content {
    transform: scale(1);
}

.qr-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 24px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.qr-modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.qr-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.qr-modal-desc {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.qr-modal-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    background: white;
    padding: 8px;
    margin-bottom: 16px;
}

.qr-modal-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}
