/*
  ═══════════════════════════════════════════════════════════
  ACE ADVERTISING
  Design System — Editorial / Architectural
  ═══════════════════════════════════════════════════════════
*/

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

:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-600: #525252;
    --gray-800: #262626;
    --gray-900: #171717;
    --blue: #0066FF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--black);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
}

/* TYPOGRAPHY */
.display {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.headline {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.title {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--gray-600);
}

.body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-600);
}

.body-lg {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-600);
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--gray-400);
}

.mono {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
}

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-md {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-xs {
    max-width: 550px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-lg {
    padding: clamp(6rem, 12vw, 10rem) 0;
}

.section-sm {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

/* NAVIGATION */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    height: 32px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-links a.active {
    color: var(--blue);
}

/* HERO */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 900px;
}

.hero-visual {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* PHILOSOPHY */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.philosophy-card {
    padding: 3rem 2rem;
    border: 1px solid var(--gray-200);
    background: var(--white);
    text-align: center;
    transition: all 0.3s;
}

.philosophy-card.inactive {
    opacity: 0.6;
}

.philosophy-card.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.philosophy-card .label {
    margin-bottom: 1rem;
}

.philosophy-card.active .label {
    color: var(--gray-400);
}

.philosophy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.philosophy-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.philosophy-card.active p {
    color: var(--gray-400);
}

/* TESTING APPROACHES — VISUAL DIAGRAM */
.approaches {
    background: var(--gray-50);
}

.approaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.approach {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
}

.approach-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.approach-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.approach-type {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
}

/* FLOW DIAGRAM */
.flow {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.flow-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.flow-content {
    flex: 1;
}

.flow-action {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--black);
}

.flow-cp {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.cp-box {
    width: 3.5rem;
    height: 3.5rem;
    border: 2px solid var(--gray-200);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'SF Mono', monospace;
    color: var(--gray-400);
}

.cp-box.active {
    border-color: var(--blue);
    background: rgba(0, 102, 255, 0.05);
    color: var(--blue);
}

.cp-box.inactive {
    opacity: 0.3;
}

.flow-arrow {
    width: 2px;
    height: 1.5rem;
    background: var(--gray-200);
    margin-left: 1rem;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service {
    padding: 2.5rem 2rem;
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: border-color 0.2s;
}

.service:hover {
    border-color: var(--gray-300);
}

.service h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.service p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tier {
    padding: 2.5rem 2rem;
    border: 1px solid var(--gray-200);
    background: var(--white);
    display: flex;
    flex-direction: column;
    position: relative;
}

.tier.featured {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.tier-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: var(--white);
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-price {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.tier-period {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.tier.featured .tier-period {
    color: var(--gray-400);
}

.tier-items {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.tier-items li {
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--gray-200);
}

.tier.featured .tier-items li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.tier-note {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 1rem;
    text-align: center;
}

/* ENHANCEMENTS */
.enhancement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.enhancement {
    padding: 2.5rem 2rem;
    border: 1px solid var(--gray-200);
    background: var(--white);
}

.enhancement-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.enhancement-pricing {
    margin-bottom: 1.5rem;
}

.enhancement-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.enhancement-price.secondary {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.enhancement-desc {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.enhancement-items {
    list-style: none;
}

.enhancement-items li {
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

.enhancement-items li:last-child {
    border-bottom: none;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

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

.faq-item:first-child {
    padding-top: 0;
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.faq-answer {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* BUTTON */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--gray-800);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--black);
}

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

.btn-full {
    width: 100%;
}

.tier.featured .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

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

/* FORM */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-200);
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s;
}

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

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

/* FOOTER */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: clamp(6rem, 12vw, 10rem);
}

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

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

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

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

/* PAGE HEADER */
.page-header {
    padding: clamp(4rem, 10vw, 6rem) 0 clamp(3rem, 8vw, 5rem);
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.page-header .label {
    margin-bottom: 1rem;
}

.page-header .subtitle {
    margin-top: 1rem;
}

/* UTILITIES */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }

/* LOADING */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s, visibility 0.4s;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* HERO BOLD */
.hero-bold {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: clamp(4rem, 10vw, 6rem) 0;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-statement {
    border-left: 4px solid var(--black);
    padding-left: 2.5rem;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.meta-item {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1rem;
}

.meta-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.meta-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* SPLIT SECTION */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.split-grid {
    display: contents;
}

.split-item {
    padding: clamp(4rem, 10vw, 8rem) clamp(2rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.split-inactive {
    background: var(--gray-100);
    opacity: 0.6;
}

.split-active {
    background: var(--black);
    color: var(--white);
}

.split-content {
    max-width: 400px;
}

.split-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.split-active .split-label {
    color: var(--gray-400);
}

.split-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    line-height: 1;
}

.split-desc {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.split-desc p {
    font-size: 1.125rem;
    line-height: 1.4;
}

.split-inactive .split-desc p {
    color: var(--gray-600);
}

.split-active .split-desc p {
    color: var(--gray-300);
}

/* SYSTEMS */
.systems-header {
    margin-bottom: 4rem;
}

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

.system-block {
    border: 1px solid var(--gray-200);
    padding: 2.5rem 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: background 0.2s;
}

.system-block:hover {
    background: var(--gray-50);
}

.system-number {
    font-family: 'SF Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-300);
    flex-shrink: 0;
}

.system-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.system-content p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* PLATFORMS VISUAL */
.platforms-visual {
    background: var(--gray-50);
    padding: clamp(5rem, 12vw, 10rem) 0;
}

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

.platform-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.platform-header {
    background: var(--black);
    padding: 2rem;
    text-align: center;
}

.platform-icon {
    font-family: 'SF Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--white);
}

.platform-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.platform-content p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.platform-content p:last-child {
    border-bottom: none;
}

/* PRICING TEASER */
.pricing-teaser {
    text-align: center;
    padding: clamp(3rem, 8vw, 5rem) 0;
}

/* FINAL CTA */
.final-cta {
    background: var(--gray-900);
    color: var(--white);
    padding: clamp(5rem, 12vw, 10rem) 0;
    text-align: center;
}

.cta-content .headline {
    color: var(--white);
}

.cta-content .subtitle {
    color: var(--gray-400);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-logo {
        height: 28px;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.875rem;
    }

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

    .container,
    .container-md,
    .container-sm,
    .container-xs {
        padding: 0 1.5rem;
    }

    .approach {
        padding: 2rem 1.5rem;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-statement {
        border-left: 3px solid var(--black);
        padding-left: 1.75rem;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .split-item {
        min-height: 50vh;
    }

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

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