/* CSS Reset / Normalize */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

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

ul, ol {
    list-style: none;
}

/* CSS Custom Properties - Dark Theme */
:root {
    /* Background colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;

    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;

    /* Accent colors - Blue/Cyan gradient */
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);

    /* Border colors */
    --border-color: #262626;
    --border-subtle: #1f1f1f;
}

/* Typography System */
:root {
    /* Font family */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Font sizes */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    --font-size-6xl: 3.75rem;   /* 60px */

    /* Font weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line heights */
    --line-height-tight: 1.1;
    --line-height-snug: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;

    /* Letter spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    z-index: 1000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Base styles */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Typography styles */
h1 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-snug);
    letter-spacing: var(--letter-spacing-tight);
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
}

p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

small {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 3;
}

.hero-logo {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

.hero-headline {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-subhead {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Focus states for links */
a:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Section Styles */
section {
    padding: 6rem 2rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

/* Services Section */
.services {
    background-color: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Styles */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s ease;
    text-align: center;
}

.card:hover {
    border-color: var(--border-subtle);
    transform: translateY(-4px);
}

.card-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

/* Social Proof Section */
.social-proof {
    text-align: center;
}

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

.youtube-metric {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.youtube-metric:hover {
    border-color: var(--accent-blue);
}

.youtube-icon {
    width: 32px;
    height: 32px;
    color: #ff0000;
}

.subscriber-count {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.subscriber-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* Video Carousel */
.video-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-blue);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.video-carousel {
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-carousel-track {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.video-slide {
    flex: 0 0 auto;
    width: 350px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    transition: all 0.4s ease;
    transform: scale(0.85);
    opacity: 0.6;
    z-index: 1;
}

.video-slide.active {
    transform: scale(1.1);
    opacity: 1;
    z-index: 10;
}

.video-slide iframe {
    width: 100%;
    height: 100%;
}

/* Founder Link */
.founder-link {
    text-align: center;
    font-size: var(--font-size-lg);
    margin-top: 2rem;
    color: var(--text-secondary);
}

.founder-link a {
    color: var(--accent-cyan);
    transition: color 0.2s ease;
}

.founder-link a:hover {
    color: var(--accent-blue);
}

/* Book a Call Section */
.book-call {
    text-align: center;
    background-color: var(--bg-secondary);
}

.book-call-description {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cal-embed-container {
    max-width: 900px;
    margin: 0 auto;
    min-height: 600px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

#my-cal-inline {
    min-height: 600px;
}

/* Sponsorship Section */
.sponsorship {
    text-align: center;
}

.sponsorship-description {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: var(--font-size-base);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-copyright,
.footer-email,
.footer-founder,
.footer-disclaimer {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    margin-top: 1rem;
    font-style: italic;
}

.footer-email a,
.footer-founder a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-email a:hover,
.footer-founder a:hover {
    color: var(--accent-blue);
}

/* Mobile Responsive (< 768px) */
@media (max-width: 767px) {
    /* Hero adjustments */
    .hero {
        padding: 1.5rem;
    }

    .hero-headline {
        font-size: var(--font-size-3xl);
    }

    .hero-subhead {
        font-size: var(--font-size-base);
    }

    .hero-logo {
        font-size: var(--font-size-base);
    }

    /* Section adjustments */
    section {
        padding: 4rem 1.5rem;
    }

    .section-heading {
        font-size: var(--font-size-2xl);
    }

    /* Services grid - stack vertically */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Cards */
    .card {
        padding: 1.5rem;
    }

    /* Social proof */
    .youtube-metric {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.25rem 1.5rem;
    }

    /* Video carousel mobile */
    .video-carousel-container {
        flex-direction: column;
        gap: 1rem;
    }

    .carousel-btn {
        display: none;
    }

    .video-slide {
        width: 300px;
    }

    /* Cal embed */
    .cal-placeholder {
        padding: 2rem;
        min-height: 300px;
    }

    /* Form - touch-friendly inputs */
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: var(--font-size-base);
    }

    /* Footer */
    .footer {
        padding: 2rem 1.5rem;
    }
}

/* Tablet Responsive (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Hero adjustments */
    .hero-headline {
        font-size: var(--font-size-4xl);
    }

    /* Section adjustments */
    section {
        padding: 5rem 2rem;
    }

    /* Services grid - 2 columns */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Third card spans full width */
    .services-grid .card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    /* Cal embed */
    .cal-embed-container {
        max-width: 600px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

.back-to-top:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

.theme-toggle:hover {
    border-color: var(--accent-blue);
}

.theme-toggle:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #0a0a0a;
    --text-secondary: #525252;
    --text-muted: #737373;
    --border-color: #e5e5e5;
    --border-subtle: #d4d4d4;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .hero-overlay {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .youtube-icon {
    color: #ff0000;
}

[data-theme="light"] .contact-form {
    background-color: #f9f9f9;
    border-color: #e0e0e0;
}

/* Newsletter Section */
.newsletter {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-secondary);
}

.newsletter-heading {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.5rem;
}

.newsletter-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    font-size: var(--font-size-base);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.newsletter-form .btn {
    padding: 0.875rem 1.5rem;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* ============================
   CLI Welcome Section
   ============================ */
.cli-welcome {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    padding: 2rem 1rem;
}

/* Terminal Styles (shared between welcome + modal) */
.terminal {
    width: 100%;
    max-width: 1100px;
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #2d2d2d;
    border-bottom: 1px solid #333;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background-color: #ff5f56; }
.btn-minimize { background-color: #ffbd2e; }
.btn-maximize { background-color: #27ca40; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

.terminal-body {
    padding: 1.5rem;
    min-height: 350px;
}

/* Terminal Output Lines */
.terminal-output {
    line-height: 1.7;
}

.terminal-output .line {
    margin-bottom: 0.25rem;
}

.terminal-output .prompt-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.terminal-output .prompt {
    color: #27ca40;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.terminal-output .command {
    color: #06b6d4;
}

.terminal-output .text {
    color: #a3a3a3;
}

.terminal-output .heading {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.35rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.terminal-output .subheading {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.terminal-output .option {
    color: var(--accent-blue);
    padding-left: 1rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.terminal-output .option::before {
    content: "→ ";
    color: #06b6d4;
    text-decoration: none;
}

.terminal-output .option:hover {
    color: var(--accent-cyan);
}

.terminal-output a.option {
    display: block;
    text-decoration: underline;
}

.terminal-output .service {
    color: #a3a3a3;
    padding-left: 1rem;
}

.terminal-output .service::before {
    content: "- ";
    color: #06b6d4;
}

.terminal-output .link {
    color: var(--accent-blue);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.terminal-output .link:hover {
    color: #60a5fa;
}

/* Blinking Cursor */
.input-line {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.input-line .prompt {
    color: #27ca40;
    margin-right: 0.5rem;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: #27ca40;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ============================
   Thank You Modal
   ============================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #a3a3a3;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.thank-you-terminal .terminal-body {
    min-height: 280px;
}

/* Responsive Terminal */
@media (max-width: 767px) {
    .cli-welcome {
        padding: 1rem 0.5rem;
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .terminal {
        border-radius: 8px;
    }

    .terminal-body {
        padding: 1rem;
        min-height: 300px;
    }

    .terminal-output .heading {
        font-size: 1.25rem;
    }

    .modal-close {
        top: -35px;
        font-size: 1.5rem;
    }
}
