/* Global Styles */
:root {
    --primary-color: #3B82F6;
    /* CDL Expert Blue */
    --primary-hover: #2563EB;
    --secondary-color: #10B981;
    /* CDL Expert Green */
    --text-dark: #1F2937;
    --text-gray: #4B5563;
    --text-light-gray: #9CA3AF;
    --white: #ffffff;
    --background: #ffffff;
    --card-bg: #f3f4f6;
    /* Gray-100 equivalent broadly */
    --container-padding: 60px;
    --border-radius-lg: 2.5rem;
    --border-radius-card: 1.5rem;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.5;
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll during animation */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1280px;
    /* max-w-7xl roughly */
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (max-width: 1024px) {
    :root {
        --container-padding: 32px;
    }
}

@media (max-width: 640px) {
    :root {
        --container-padding: 24px;
    }
}

/* Typography Utility */
.text-center {
    text-align: center;
}

h1,
h2,
h3 {
    font-weight: 700;
    color: var(--text-dark);
}

.section {
    padding: 80px 0;
}

@media (max-width: 640px) {
    .section {
        padding: 40px 0;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: scale(1.02);
}

.btn-icon {
    gap: 8px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    padding-top: 15px;
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo-img {
    width: 56px;
    /* Increased from 44px */
    height: 56px;
    border-radius: 12px;
}

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

.nav-link {
    color: #374151;
    /* gray-700 */
    font-weight: 500;
}

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

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
}

.mobile-only {
    display: none;
}

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

    .mobile-only {
        display: flex;
    }

    /* Hide hamburger menu, show download button directly */
    .mobile-menu-btn {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    padding-top: 48px;
    padding-bottom: 80px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        max-width: 1200px;
        justify-content: center;
        /* Centered layout */
        gap: 80px;
        /* Reduced gap to bring elements closer */
    }
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 650px;
    /* Widened to fill space and prevent orphans */
}

@media (min-width: 1024px) {
    .hero-text {
        align-items: flex-start;
        text-align: left;
    }
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
    color: #111827;
    max-width: none;
    /* Removed constraint to prevent auto-wrap */
}

@media (min-width: 640px) {
    .hero-text h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-text h1 {
        font-size: 5.5rem;
        /* Bigger to fill white space */
    }
}

/* Much larger to match original */

.hero-subtext {
    font-size: 1.35rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    /* Wider for balanced lines */
}

@media (min-width: 640px) {
    .hero-subtext {
        font-size: 1.5rem;
        /* Larger for readability */
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-cta {
        align-items: flex-start;
    }
}

.hero-note {
    font-size: 0.875rem;
    color: var(--text-light-gray);
    margin-top: 12px;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.hero-visual {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    /* Push phone to right edge */
}

.hero-app-preview {
    border-radius: 40px;
    width: 300px;
    height: auto;
    display: block;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
    .hero-app-preview {
        width: 320px;
    }
}

/* 6xl */

/* Common screenshot style */
.app-screenshot {
    width: 320px;
    height: auto;
    display: block;
    max-width: 100%;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.logo-dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .logo-light {
        display: none;
    }

    .logo-dark {
        display: block;
    }
}

/* How It Works Section */
.how-it-works {
    background-color: var(--background);
}

.split-layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

@media (min-width: 1024px) {
    .split-layout {
        flex-direction: row;
        gap: 120px;
        /* Wider gap for cleaner separation */
        align-items: center;
    }
}

.split-image {
    flex-shrink: 0;
}

.split-content {
    flex: 1;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
    /* Reduced for tighter spacing */
}

.section-title.large {
    font-size: 3rem;
}

@media (min-width: 1024px) {
    .section-title.large {
        font-size: 3.5rem;
    }

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

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (max-width: 640px) {
    .steps-list {
        gap: 24px;
    }
}

.step-item {
    position: relative;
    padding-bottom: 48px;
}

@media (max-width: 640px) {
    .step-item {
        padding-bottom: 24px;
    }
}

.step-item:last-child {
    padding-bottom: 0;
}

.step-number {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 3.75rem;
    /* 6xl */
    font-weight: 700;
    color: #DBEAFE;
    /* CDL Blue tint (blue-100) instead of gray-200 */
    line-height: 1;
    z-index: 1;
}

.step-item h3 {
    font-size: 1.875rem;
    /* 3xl */
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
    padding-right: 80px;
}

.step-item p {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 550px;
    position: relative;
    z-index: 10;
    padding-right: 80px;
}

.step-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--card-bg);
}

/* Features Grid Section */
.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 48px;
    /* Reduced for tighter spacing */
}

@media (min-width: 640px) {
    .section-subtitle {
        font-size: 1.25rem;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px 32px;
}

@media (max-width: 640px) {
    .features-grid {
        gap: 32px 16px;
    }
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card img {
    width: 92%;
    border-radius: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
    font-size: 1.25rem;
    /* xl */
    font-weight: 600;
    text-align: center;
}

/* About Section */
.about-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: 0 0 0 0 transparent;
    /* Flat style mostly, but maybe wrapper needs color */
}

/* Wait, section bg is implicit. The design shows a white card card on a background? 
   Looking at provided HTML: "section py-16... max-w-7xl... bg-white rounded... p-8"
   The section background itself isn't specified in the snippet provided for Body, 
   but usually these are on a gray background or white. 
   Provided snippet: <body> ... <section> ... 
   Ah, the provided code body has no background class, so standard white. 
   BUT this specific section has a div with class "bg-white rounded...".
   This implies the standard background might be off-white? 
   Actually, looking closer, usually these layouts alternate. 
   But let's stick to the HTML: The container div is white. 
   If body is white, this card effect is invisible unless it has shadow or border.
   The provided screenshot/code doesn't show body bg color explicitly. 
   However, typically "rounded" cards imply a contrast.
   I'll assume body is standard white, and this section might just structure content.
   Effectively if body is white and card is white, it just looks like content.
   Let's keep it simple. */

.about-card {
    /* In the provided HTML, this div has class "bg-white".
       If everything is white, this is redundant visually unless there's a shadow or border.
       Or maybe the section has a background?
       The snippet does not show a section background color.
       I will add a very subtle border just in case to define it if needed, or leave it flat.
       Actually, let's assume it's flat design. */
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 1024px) {
    .about-card {
        padding: 64px;
        flex-direction: row;
    }
}

.about-content {
    flex: 2;
}

.about-content p {
    font-size: 1rem;
    color: #374151;
    /* gray-700 */
    margin-bottom: 16px;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .about-content p {
        font-size: 1.125rem;
    }
}

.profiles {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.profile-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #d1d5db;
    /* placeholder bg */
}

.profile-name {
    font-size: 1.125rem;
    font-weight: 600;
}

.profile-role {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.about-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.amy-collage {
    position: relative;
    width: 350px;
    height: 500px;
}

.cat-img {
    position: absolute;
    width: 154px;
    height: 154px;
    border-radius: 50%;
    object-fit: cover;
}

.pos-1 {
    top: 0;
    left: 0;
}

.pos-2 {
    top: 174px;
    left: 0;
}

.pos-3 {
    top: 348px;
    left: 0;
}

.pos-4 {
    top: 77px;
    right: 0;
}

.pos-5 {
    top: 251px;
    right: 0;
}

/* Social Section */
.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

@media (min-width: 1024px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 64px;
    }
}

.social-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    /* Add a subtle border or shadow to separate if necessary since body is white */
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .social-card {
        padding: 40px;
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background-color: var(--white);
    padding: 10px;
    border-radius: 16px;
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.platform-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.platform-icon.youtube {
    background-color: #DC2626;
}

.platform-icon.instagram {
    background: linear-gradient(to bottom right, #9333ea, #db2777, #f97316);
}

.platform-name {
    font-size: 1rem;
    font-weight: 700;
}

.platform-handle {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 1rem;
    gap: 4px;
}

.btn-youtube {
    background-color: #DC2626;
    color: white;
}

.btn-youtube:hover {
    background-color: #b91c1c;
}

.btn-instagram {
    background-color: #000;
    color: white;
}

.btn-instagram:hover {
    background-color: #1f2937;
}

/* Video 2x2 Grid */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.video-thumb {
    aspect-ratio: 16/9;
    background-color: #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.video-thumb:hover img {
    opacity: 0.9;
}

/* Insta layout using flex */
.insta-grid {
    display: flex;
    justify-content: center;
    gap: 6px;
    align-items: center;
}

.insta-post {
    border-radius: 20px;
    width: auto;
    max-height: 250px;
    /* limit height */
    object-fit: contain;
    transition: transform 0.2s;
}

.insta-post:hover {
    transform: scale(1.05);
}


/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 64px 0;
    border-top-left-radius: 3rem;
    border-top-right-radius: 3rem;
}

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

@media (max-width: 767px) {
    .footer-grid {
        text-align: center;
        justify-items: center;
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h3 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    /* sm */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.9375rem;
    /* 15px approx */
    color: white;
}

.footer-col ul li a:hover {
    opacity: 0.8;
}

.desktop-wide {
    grid-column: span 2;
}

@media (max-width: 767px) {
    .desktop-wide {
        grid-column: span 2;
        text-align: center;
    }

    .desktop-wide h3 {
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
}

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

.social-link {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}