/* PM4Subs Style Guide - Dark Modern Theme */
:root {
    --color-bg: #0f172a;
    --color-surface: #111827;
    --color-border: #1e293b;
    --color-accent: #38bdf8;
    --color-accent-hover: #0ea5e9;
    --color-text: #e5e7eb;
    --color-text-muted: #94a3b8;
    --color-danger: #ef4444;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.nav {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.nav-links .btn-primary {
    color: #0f172a;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Side Panel */
.side-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    z-index: 150;
    transition: right 0.3s ease;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
}

.side-panel.open {
    right: 0;
}

.side-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 140;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-panel-overlay.show {
    opacity: 1;
    visibility: visible;
}

.side-panel-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.side-panel-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.side-panel-nav a:hover {
    background: var(--color-bg);
    color: var(--color-accent);
}

.side-panel-nav .nav-section-title {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1rem 0.5rem;
    margin-top: 1rem;
}

.side-panel-nav .nav-section-title:first-child {
    margin-top: 0;
}

.side-panel-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.side-panel-cta .btn-primary {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }
}

/* Hero Section */
.hero {
    padding: 6rem 1.5rem;
    text-align: center;
    background: var(--color-bg);
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    color: var(--color-accent);
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text);
}

.hero p {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0.5rem auto 2rem;
}

/* Section Base */
.section {
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

/* Pain Points Section */
.pain-points {
    padding: 4rem 1.5rem;
    background: var(--color-bg);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pain-card {
    background: var(--color-surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-danger);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.pain-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.pain-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    font-weight: 600;
}

.pain-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Solution Section */
.solution {
    padding: 4rem 1.5rem;
    background: var(--color-surface);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--color-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* Screenshots Section */
.screenshots {
    padding: 4rem 1.5rem;
    background: var(--color-bg);
}

.screenshots-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
    align-items: start;
}

.mobile-column {
    position: sticky;
    top: 20px;
}

.desktop-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.screenshot-card {
    background: var(--color-surface);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.screenshot-card:hover {
    transform: translateY(-5px);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

.mobile-column .screenshot-card img {
    max-height: 700px;
    object-fit: cover;
    object-position: top;
}

.screenshot-caption {
    padding: 1.25rem;
    text-align: center;
}

.screenshot-caption h4 {
    color: var(--color-text);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.screenshot-caption p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Responsive - stack on mobile */
@media (max-width: 968px) {
    .screenshots-layout {
        grid-template-columns: 1fr;
    }

    .mobile-column {
        position: relative;
    }

    .mobile-column .screenshot-card img {
        max-height: 500px;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 1.5rem;
    text-align: center;
    background: var(--color-surface);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

/* Primary Button - Pill style with teal accent */
.btn-primary,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    border: none;
    background: var(--color-accent);
    color: #0f172a;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover,
.cta-button:hover {
    background: var(--color-accent-hover);
    color: #0f172a;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.email-form {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.75rem;
    color: var(--color-text-muted);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.close-modal:hover {
    color: var(--color-text);
}

.email-form h3 {
    color: var(--color-text);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.3s;
}

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

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--color-accent);
    color: #0f172a;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: var(--color-accent-hover);
}

.form-note {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.success-message {
    display: none;
    background: #10b981;
    color: white;
    padding: 1.25rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    margin-top: 1.25rem;
}

/* FAQ Section */
.faq-section {
    background: var(--color-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    background: var(--color-surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
}

.faq-item h3 {
    color: var(--color-text);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Quick Links Section */
.quick-links-section {
    padding: 3rem 1.5rem;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.quick-links-section h3 {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
}

.quick-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.quick-links a:hover {
    color: var(--color-accent);
    background: var(--color-surface);
}

/* Footer */
footer {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

footer a {
    color: var(--color-accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    animation: fadeInUp 0.5s ease;
}

.floating-cta-button {
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: #0f172a;
    border: none;
    border-radius: 999px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.floating-cta-button:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.4);
}

.floating-cta-button:active {
    transform: translateY(-1px);
}

/* Pulse animation to draw attention */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(56, 189, 248, 0.5);
    }
}

.floating-cta-button {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Adjust size on small screens */
@media (max-width: 480px) {
    .floating-cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Hide floating CTA when modal is open */
.modal-overlay.show ~ .floating-cta {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

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

    .email-form {
        padding: 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-section p {
        font-size: 1.125rem;
    }
}

/* Generic Card Class */
.card {
    background: var(--color-surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Section h2 styling */
.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

/* About page list styling */
.about-list {
    list-style: none;
    padding-left: 0;
}

.about-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
}

.about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* Utility Classes */
.text-muted {
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

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

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Gap utilities */
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Margin utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Padding utilities */
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Border radius utilities */
.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: 0.75rem; }
.rounded-full { border-radius: 999px; }

/* Width utilities */
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }

/* Secondary/outline button variant */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

/* Link styling */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

/* Focus states for accessibility */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--color-accent);
    color: var(--color-bg);
}
