/* Common styles for all CaptureCall pages - Editorial Tech Premium */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS VARIABLES --- */
:root {
    /* Colors */
    --primary: #0a0f1c;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    --danger: #ef4444;
    --success: #10b981;
    --bg-body: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-dark: #0a0f1c;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #0a0f1c;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-display: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
    --shadow-accent: 0 8px 32px rgba(37, 99, 235, 0.25);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.015;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-smooth);
}

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

ul {
    list-style: none;
}

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

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-main);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    letter-spacing: -0.01em;
    color: var(--text-muted);
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 2;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.justify-between {
    justify-content: space-between;
}

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

.grid {
    display: grid;
    gap: var(--space-xl);
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-sm), 0 0 0 0 rgba(37, 99, 235, 0);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent), 0 0 30px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-medium);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(37, 99, 235, 0.04);
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
    padding: 10px 16px;
}

.btn-ghost:hover {
    background: var(--bg-subtle);
    color: var(--accent);
}

.btn-full {
    width: 100%;
}

/* Button with icon */
.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--duration-fast);
}

.btn:hover svg {
    transform: translateX(3px);
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

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

.brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0;
    letter-spacing: -0.03em;
}

.brand span:last-child {
    color: var(--accent);
}

.brand:hover {
    color: var(--primary);
}

/* Nav with logo icon */
.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--accent);
}

/* --- PAGE HEADER --- */
.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-body) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.02) 0%, transparent 40%);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- SECTIONS --- */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-header .label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* --- CARDS --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--duration-normal) var(--ease-out);
}

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

.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* --- PRICING SECTION --- */
.pricing-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-body);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-4xl);
}

.pricing-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    transition: all var(--duration-normal) var(--ease-out);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 0 0 4px 4px;
}

.pricing-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-float);
    transform: translateY(-8px);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.plan-badge.popular {
    background: var(--accent-gradient);
    color: white;
}

.plan-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.plan-price {
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.plan-price .amount {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.plan-price .amount.custom {
    font-size: 2.25rem;
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-description {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    min-height: 48px;
    line-height: 1.6;
}

.plan-features {
    margin-bottom: var(--space-xl);
}

.plan-features li {
    padding: 14px 0;
    font-size: 0.95rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 600;
}

/* --- FAQ SECTION --- */
.pricing-faq,
.faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding-top: var(--space-2xl);
}

.pricing-faq h2,
.faq-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.faq-item {
    padding: var(--space-lg);
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all var(--duration-normal) var(--ease-out);
}

.faq-item:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.faq-item h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

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

/* --- CONTACT SECTION --- */
.contact-section {
    padding: var(--space-4xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-form {
    background: var(--bg-card);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-body);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

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

.contact-info {
    padding: var(--space-xl) 0;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.info-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all var(--duration-normal) var(--ease-out);
}

.info-item:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-gradient);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.info-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-content a {
    color: var(--accent);
}

.info-content a:hover {
    text-decoration: underline;
}

/* --- FOOTER --- */
footer {
    padding: var(--space-4xl) 0 var(--space-2xl);
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand h3 svg {
    color: var(--accent);
}

.footer-brand h3 span span {
    color: var(--accent);
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.7;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-lg);
    color: var(--primary);
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul li a {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all var(--duration-fast);
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--text-muted);
}

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

/* --- ANIMATIONS --- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* --- CONTENT SECTIONS --- */
.content-section {
    padding: var(--space-4xl) 0;
}

.content-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: var(--space-2xl) 0 var(--space-md);
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.content-section ul {
    list-style: none;
    margin-left: 0;
    margin-bottom: var(--space-lg);
}

.content-section ul li {
    margin-bottom: var(--space-sm);
    color: var(--text-muted);
    line-height: 1.7;
    padding-left: var(--space-lg);
    position: relative;
}

.content-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.content-box {
    background: var(--bg-subtle);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent);
    margin: var(--space-xl) 0;
}

.content-box p {
    margin-bottom: 0;
}

/* Legal content styling */
.legal-content {
    padding: var(--space-3xl) 0;
}

.legal-section {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-light);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.legal-section ul {
    margin-bottom: var(--space-md);
}

.legal-section ul li {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.legal-section a {
    color: var(--accent);
}

.legal-section a:hover {
    text-decoration: underline;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
    }

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

@media (max-width: 900px) {
    .page-header {
        padding: 140px 0 60px;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .navbar .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .brand, .logo {
        font-size: 1.25rem;
    }

    .section {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 var(--space-md);
    }

    .page-header {
        padding: 120px 0 50px;
    }

    .btn {
        padding: 12px 24px;
    }

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

    .pricing-card {
        padding: var(--space-xl);
    }

    .contact-form {
        padding: var(--space-xl);
    }

    /* Fix reveal animations on mobile - make visible immediately */
    .reveal,
    .fade-up {
        opacity: 1 !important;
        transform: none !important;
    }
}
