/* 
 * ProofRead Pro - Brutalist Swiss Design
 * A sharp, editorial aesthetic with strong typography
 */

:root {
    --black: #0d0d0d;
    --white: #fefefe;
    --cream: #f5f3ef;
    --red: #e63946;
    --gray-1: #f7f7f7;
    --gray-2: #ebebeb;
    --gray-3: #c4c4c4;
    --gray-4: #8a8a8a;
    --gray-5: #4a4a4a;
    
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Geist', -apple-system, sans-serif;
    
    --space-unit: 8px;
    --container: 1200px;
    --header-h: 72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.125rem; font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

.label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-4);
}

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 calc(var(--space-unit) * 3); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid var(--black);
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--red);
    border-color: var(--red);
}

.btn-outline {
    background: transparent;
    color: var(--black);
}
.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--cream);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--gray-2);
    z-index: 1000;
}

.header-inner {
    max-width: var(--container);
    height: 100%;
    margin: 0 auto;
    padding: 0 calc(var(--space-unit) * 3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
}

.brand-name {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-5);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.2s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--black);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.header-cta {
    padding: 10px 20px;
    background: var(--black);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background 0.2s;
}
.header-cta:hover { background: var(--red); }

.nav-toggle {
    display: none;
    width: 32px;
    height: 24px;
    position: relative;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--black);
    transition: 0.2s;
}
.nav-toggle::before { top: 0; }
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle::after { bottom: 0; }

.nav-toggle.active::before { transform: rotate(45deg); top: 11px; }
.nav-toggle.active span { opacity: 0; }
.nav-toggle.active::after { transform: rotate(-45deg); bottom: 11px; }

/* Flash Messages */
.flash-message {
    position: fixed;
    top: calc(var(--header-h) + 16px);
    right: 16px;
    padding: 16px 24px;
    background: var(--black);
    color: var(--white);
    font-size: 0.875rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideIn 0.3s ease;
}
.flash-success { background: #059669; }
.flash-error { background: var(--red); }
.flash-close { color: var(--white); font-size: 1.25rem; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } }

/* Main Content */
.site-main { padding-top: var(--header-h); }

/* Hero Section - Unique asymmetric layout */
.hero {
    min-height: calc(100vh - var(--header-h));
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--gray-2);
}

.hero-content {
    padding: calc(var(--space-unit) * 10) calc(var(--space-unit) * 6);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--red);
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 32px;
}

.hero h1 em {
    font-style: italic;
    color: var(--gray-4);
}

.hero-text {
    font-size: 1.125rem;
    color: var(--gray-5);
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--gray-3);
    width: 80%;
    max-width: 400px;
}

.hero-stat {
    background: var(--white);
    padding: 32px;
    text-align: center;
}

.hero-stat-num {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-4);
}

/* Marquee */
.marquee {
    background: var(--black);
    color: var(--white);
    padding: 16px 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    flex-shrink: 0;
    padding: 0 48px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 48px;
}

.marquee-item::after {
    content: '✦';
    color: var(--red);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Section Styles */
.section {
    padding: calc(var(--space-unit) * 12) 0;
}

.section-dark {
    background: var(--black);
    color: var(--white);
}

.section-cream {
    background: var(--cream);
}

.section-header {
    margin-bottom: calc(var(--space-unit) * 8);
}

.section-header .label {
    margin-bottom: 16px;
}

.section-header h2 {
    max-width: 600px;
}

/* Services Grid - Magazine layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2px;
    background: var(--gray-2);
}

.service-item {
    background: var(--white);
    padding: calc(var(--space-unit) * 5);
    display: flex;
    flex-direction: column;
}

.service-item:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.service-item:nth-child(2) { grid-column: span 6; }
.service-item:nth-child(3) { grid-column: span 6; }
.service-item:nth-child(4) { grid-column: span 12; flex-direction: row; justify-content: space-between; align-items: center; }

.service-num {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-style: italic;
    color: var(--gray-3);
    margin-bottom: 24px;
}

.service-item h3 {
    margin-bottom: 16px;
}

.service-item p {
    color: var(--gray-5);
    font-size: 0.9375rem;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.service-link:hover { color: var(--red); }

/* Process - Horizontal scroll */
.process-wrap {
    overflow-x: auto;
    margin: 0 calc(var(--space-unit) * -3);
    padding: 0 calc(var(--space-unit) * 3);
    scrollbar-width: none;
}
.process-wrap::-webkit-scrollbar { display: none; }

.process-track {
    display: flex;
    gap: 2px;
    min-width: max-content;
}

.process-step {
    width: 320px;
    padding: 48px 32px;
    background: var(--gray-1);
    border-top: 3px solid var(--black);
}

.process-step:hover {
    border-color: var(--red);
}

.step-num {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 24px;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.9375rem;
    color: var(--gray-5);
}

/* Pricing Table - Clean grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--black);
}

.price-card {
    padding: 48px 32px;
    border-right: 1px solid var(--gray-2);
    position: relative;
}

.price-card:last-child { border-right: none; }

.price-card.featured {
    background: var(--black);
    color: var(--white);
}

.price-badge {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    background: var(--red);
    color: var(--white);
    text-align: center;
    padding: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.price-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.price-desc {
    font-size: 0.875rem;
    color: var(--gray-4);
    margin-bottom: 32px;
}
.price-card.featured .price-desc { color: var(--gray-3); }

.price-amount {
    display: flex;
    align-items: baseline;
    margin-bottom: 32px;
}

.price-currency {
    font-size: 1.25rem;
    margin-right: 4px;
}

.price-value {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1;
}

.price-unit {
    font-size: 0.875rem;
    color: var(--gray-4);
    margin-left: 8px;
}
.price-card.featured .price-unit { color: var(--gray-3); }

.price-features {
    margin-bottom: 32px;
}

.price-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-2);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.price-card.featured .price-features li { border-color: rgba(255,255,255,0.1); }

.price-features li::before {
    content: '→';
    color: var(--red);
}

.price-card .btn { width: 100%; justify-content: center; }
.price-card.featured .btn { border-color: var(--white); }

/* Testimonials - Editorial quotes */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--gray-2);
}

.testimonial {
    background: var(--white);
    padding: 48px;
}

.testimonial:first-child {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    line-height: 1.4;
    margin-bottom: 32px;
}

.testimonial:first-child .testimonial-quote {
    font-size: 2.25rem;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.author-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.author-role {
    font-size: 0.8125rem;
    color: var(--gray-4);
}

/* CTA Section */
.cta-section {
    background: var(--black);
    color: var(--white);
    padding: calc(var(--space-unit) * 15) 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 24px;
}

.cta-section p {
    font-size: 1.125rem;
    color: var(--gray-3);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Footer */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: calc(var(--space-unit) * 8) 0;
}

.footer-top {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 calc(var(--space-unit) * 3);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: calc(var(--space-unit) * 6);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about p {
    color: var(--gray-4);
    font-size: 0.9375rem;
    margin: 24px 0;
}

.footer-contact a {
    display: block;
    color: var(--gray-3);
    font-size: 0.875rem;
    margin-bottom: 8px;
}
.footer-contact a:hover { color: var(--white); }

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-4);
    margin-bottom: 24px;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col a {
    font-size: 0.9375rem;
    color: var(--gray-3);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding: calc(var(--space-unit) * 4) calc(var(--space-unit) * 3) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--gray-4);
}

.footer-social {
    display: flex;
    gap: 24px;
}

.footer-social a {
    font-size: 0.875rem;
    color: var(--gray-4);
}
.footer-social a:hover { color: var(--white); }

/* Page Headers */
.page-header {
    padding: calc(var(--space-unit) * 15) 0 calc(var(--space-unit) * 10);
    border-bottom: 1px solid var(--gray-2);
}

.page-header .label {
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--gray-5);
    max-width: 600px;
    margin-top: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--gray-2);
    background: var(--white);
    transition: border-color 0.2s;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Cards */
.card {
    background: var(--white);
    border: 1px solid var(--gray-2);
    padding: 32px;
}

.card-dark {
    background: var(--black);
    color: var(--white);
    border: none;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    border: 1px solid var(--gray-2);
}

.blog-img {
    height: 200px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-content {
    padding: 24px;
}

.blog-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.blog-card p {
    font-size: 0.9375rem;
    color: var(--gray-5);
    margin-bottom: 16px;
}

.blog-meta {
    font-size: 0.8125rem;
    color: var(--gray-4);
}

/* FAQ */
.faq-list {
    border-top: 1px solid var(--gray-2);
}

.faq-item {
    border-bottom: 1px solid var(--gray-2);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding-bottom: 24px;
    color: var(--gray-5);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual { min-height: 400px; }
    
    .services-grid { grid-template-columns: 1fr; }
    .service-item:nth-child(1),
    .service-item:nth-child(4) { grid-column: auto; grid-row: auto; flex-direction: column; }
    
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card { border-right: none; border-bottom: 1px solid var(--gray-2); }
    .price-card:last-child { border-bottom: none; }
    
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial:first-child { grid-row: auto; }
    
    .footer-top { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 32px;
        gap: 24px;
        border-bottom: 1px solid var(--gray-2);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: 0.3s;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .header-cta { display: none; }
    .nav-toggle { display: block; }
    
    .hero-content { padding: 48px 24px; }
    .hero-actions { flex-direction: column; }
    
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    
    .form-row { grid-template-columns: 1fr; }
}
