/* ==============================================
   Alcanah Partners v3 — Trust & Authority
   Generated via ui-ux-pro-max design system
   Pattern: Trust & Authority + Minimal & Direct
   Palette: Professional navy + blue CTA
   Typography: Poppins / Open Sans
   ============================================== */

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

:root {
    /* Color System — Professional Navy + Blue */
    --primary: #0F172A;
    --secondary: #334155;
    --cta: #0369A1;
    --cta-hover: #0284C7;
    --cta-active: #0C4A6E;
    --bg: #F8FAFC;
    --bg-alt: #F1F5F9;
    --bg-card: #FFFFFF;
    --text: #020617;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --border-hover: #CBD5E1;
    --accent-light: rgba(3, 105, 161, 0.08);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Layout */
    --max-w: 1200px;
    --max-w-narrow: 720px;
    --section-pad: 6.5rem;
    --nav-h: 72px;

    /* Motion */
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-fast: 200ms;
    --duration: 300ms;
    --duration-slow: 500ms;

    /* Z-index scale */
    --z-base: 0;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-nav: 30;
    --z-overlay: 50;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    background-color: var(--bg);
    overflow-x: hidden;
}

::selection {
    background: var(--cta);
    color: #fff;
}

/* ==============================================
   Container
   ============================================== */

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==============================================
   Typography
   ============================================== */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

h2 em {
    font-style: normal;
    color: var(--cta);
}

h3 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ==============================================
   Section Headers
   ============================================== */

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cta);
}

.section-tag-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-light);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--cta);
}

/* ==============================================
   Buttons
   ============================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.btn-primary {
    background: var(--cta);
    color: #fff;
}

.btn-primary:hover {
    background: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(3, 105, 161, 0.2);
}

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

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

.btn-outline:hover {
    border-color: var(--cta);
    color: var(--cta);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn-icon {
    transition: transform var(--duration-fast) var(--ease);
}

.btn:hover .btn-icon {
    transform: translate(2px, -2px);
}

.micro {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.875rem;
}

/* ==============================================
   Navigation
   ============================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: var(--z-nav);
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--duration) ease;
}

.nav.scrolled {
    border-bottom-color: var(--border);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity var(--duration) ease;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-mark {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.nav-mark-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-name {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

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

.nav-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
    cursor: pointer;
}

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

.nav-link-active {
    color: var(--text);
    font-weight: 600;
}

.nav-cta-btn {
    margin-left: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all var(--duration) ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 2rem 1.5rem;
    z-index: var(--z-sticky);
    flex-direction: column;
    gap: 0.875rem;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu .nav-link {
    font-size: 1rem;
    padding: 0.375rem 0;
}

/* ==============================================
   Hero Section
   ============================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 4rem) 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(3, 105, 161, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(15, 23, 42, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--accent-light);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cta);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.75rem;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.5s var(--ease) 0.1s forwards;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--cta);
    border-radius: 50%;
}

.hero h1 span {
    display: block;
    opacity: 0;
    transform: translateY(30px);
}

.hero h1 span:nth-child(1) { animation: fadeUp 0.6s var(--ease) 0.15s forwards; }
.hero h1 span:nth-child(2) { animation: fadeUp 0.6s var(--ease) 0.25s forwards; }
.hero h1 span:nth-child(3) { animation: fadeUp 0.6s var(--ease) 0.35s forwards; }

.hero h1 em {
    font-style: normal;
    color: var(--cta);
}

.hero .subhead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 460px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s var(--ease) 0.5s forwards;
}

.hero-cta {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s var(--ease) 0.6s forwards;
}

/* Hero visual — abstract grid pattern */
.hero-visual {
    position: relative;
    height: 420px;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease) 0.4s forwards;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
}

.hero-cell {
    border-radius: 8px;
    transition: all 0.6s var(--ease);
}

.hero-cell-filled {
    background: var(--primary);
    opacity: 0.04;
}

.hero-cell-accent {
    background: var(--cta);
    opacity: 0.08;
}

.hero-cell-border {
    border: 1.5px solid var(--border);
}

.hero-cell-strong {
    background: var(--primary);
    opacity: 0.08;
    border-radius: 12px;
}

.hero-stat {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    z-index: 2;
}

.hero-stat-1 {
    bottom: 12%;
    left: 8%;
    animation: floatUp 4s ease-in-out infinite;
}

.hero-stat-2 {
    top: 15%;
    right: 5%;
    animation: floatUp 5s ease-in-out infinite reverse;
}

.hero-stat-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cta);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==============================================
   Industry Bar
   ============================================== */

.industry-bar {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.industry-label {
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.industry-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.industry-item {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--duration-fast) ease;
    cursor: default;
}

.industry-item:hover {
    color: var(--text);
}

.industry-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-hover);
}

/* ==============================================
   Scroll Reveal
   ============================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-slow) var(--ease),
                transform var(--duration-slow) var(--ease);
}

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

/* ==============================================
   Problem Section
   ============================================== */

.problem {
    padding: var(--section-pad) 0;
}

.problem h2 {
    margin-bottom: 3rem;
    max-width: var(--max-w-narrow);
}

.pain-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: var(--max-w-narrow);
}

.pain-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

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

.pain-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pain-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--cta);
    flex-shrink: 0;
}

.pain-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
}

.pain-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ==============================================
   Solution Section
   ============================================== */

.solution {
    padding: var(--section-pad) 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.solution-intro {
    max-width: var(--max-w-narrow);
    margin-bottom: 3rem;
}

.solution-intro .intro-text {
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

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

.phase-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--duration) var(--ease);
}

.phase-card:hover {
    border-color: var(--cta);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.phase-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-light);
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--cta);
    margin-bottom: 1.25rem;
}

.phase-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.phase-card > p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.phase-card ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1rem;
}

.phase-card li {
    position: relative;
    padding-left: 1.125rem;
    margin-bottom: 0.375rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.phase-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cta);
    opacity: 0.4;
}

.phase-outcome {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cta);
    margin-bottom: 0;
}

/* 4-column variant */
.phase-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==============================================
   About Section
   ============================================== */

.about {
    padding: var(--section-pad) 0;
}

.about-layout {
    display: grid;
    grid-template-columns: 4px 1fr;
    gap: 2.5rem;
    max-width: var(--max-w-narrow);
}

.about-line {
    background: linear-gradient(to bottom, var(--cta) 0%, var(--border) 100%);
    border-radius: 2px;
}

.about-body h2 {
    margin-bottom: 1.5rem;
}

.about-body > p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-tagline {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cta);
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.credentials {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.credentials li {
    position: relative;
    padding-left: 1.125rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.credentials li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cta);
    opacity: 0.4;
}

/* ==============================================
   Offerings Section
   ============================================== */

.offerings {
    padding: var(--section-pad) 0;
}

.offerings h2 {
    margin-bottom: 3rem;
}

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

.offering-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    transition: all var(--duration) var(--ease);
}

.offering-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: var(--border-hover);
}

/* Featured card */
.offering-card-featured {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.offering-card-featured:hover {
    border-color: var(--primary);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}

.offering-card-featured h3 {
    color: #fff;
}

.offering-card-featured .offering-desc {
    color: rgba(255, 255, 255, 0.7);
}

.offering-card-featured .offering-features li {
    color: rgba(255, 255, 255, 0.65);
}

.offering-card-featured .offering-features li::before {
    background: rgba(255, 255, 255, 0.3);
}

.offering-card-featured .offering-label {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.offering-card-featured .btn-outline {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.offering-card-featured .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.offering-label {
    font-family: var(--font-heading);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

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

.offering-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.offering-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    flex: 1;
}

.offering-features li {
    position: relative;
    padding-left: 1.125rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.offering-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cta);
    opacity: 0.4;
}

.offering-cta {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* ==============================================
   Results / Stats Section
   ============================================== */

.results {
    padding: var(--section-pad) 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.results h2 {
    margin-bottom: 3.5rem;
}

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

.stat-card {
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--duration) var(--ease);
}

.stat-card:hover {
    border-color: var(--cta);
    transform: translateY(-2px);
}

.stat-val {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    font-weight: 700;
    color: var(--cta);
    line-height: 1;
    margin-bottom: 0.375rem;
}

.stat-unit {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.stat-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==============================================
   Final CTA
   ============================================== */

.final-cta {
    padding: var(--section-pad) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 50% 50%, var(--accent-light) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-w-narrow);
    margin: 0 auto;
}

.final-cta h2 {
    margin-bottom: 1rem;
}

.final-cta .final-cta-inner > p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ==============================================
   Footer
   ============================================== */

.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
}

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

.footer-newsletter {
    margin-bottom: 2rem;
}

.footer-newsletter-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.footer-input {
    flex: 1;
    padding: 0.625rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color var(--duration-fast) ease;
}

.footer-input:focus {
    border-color: var(--cta);
}

.footer-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.footer-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.footer-newsletter-success {
    display: none;
    font-size: 0.875rem;
    color: var(--cta);
    margin-top: 0.75rem;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 480px) {
    .footer-form {
        flex-direction: column;
    }

    .footer-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==============================================
   Keyframes
   ============================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(var(--y, 16px));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==============================================
   Reduced Motion
   ============================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero h1 span,
    .hero-badge,
    .hero .subhead,
    .hero-cta,
    .hero-visual {
        opacity: 1;
        transform: none;
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==============================================
   Responsive — 1440px
   ============================================== */

@media (max-width: 1440px) {
    .container {
        padding: 0 3rem;
    }
}

/* ==============================================
   Responsive — 1024px
   ============================================== */

@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero .subhead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        display: none;
    }

    .phase-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

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

    .offering-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

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

/* ==============================================
   Responsive — 768px
   ============================================== */

@media (max-width: 768px) {
    :root {
        --section-pad: 4.5rem;
        --nav-h: 64px;
    }

    .container, .container-narrow {
        padding: 0 1.5rem;
    }

    .nav-links .nav-link {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--nav-h) + 3rem);
    }

    .hero .subhead {
        font-size: 1rem;
    }

    .pain-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .pain-icon {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .phase-grid-4 {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .about-line {
        display: none;
    }

    .industry-list {
        gap: 1.5rem;
    }

    .industry-sep {
        display: none;
    }
}

/* ==============================================
   Responsive — 480px
   ============================================== */

@media (max-width: 480px) {
    :root {
        --section-pad: 3.5rem;
    }

    .container, .container-narrow {
        padding: 0 1.25rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1.25rem 0.75rem;
    }

    .phase-card {
        padding: 1.5rem;
    }

    .offering-card {
        padding: 1.5rem;
    }
}

/* ==============================================
   Responsive — 375px
   ============================================== */

@media (max-width: 375px) {
    h1 {
        font-size: 2rem;
    }

    .stat-val {
        font-size: 2.25rem;
    }
}

/* ==============================================
   Focus & Cursor States
   ============================================== */

:focus-visible {
    outline: 2px solid var(--cta);
    outline-offset: 3px;
    border-radius: 4px;
}

a, button, .nav-toggle {
    cursor: pointer;
}

/* ==============================================
   Modal
   ============================================== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-overlay);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

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

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    animation: modalIn var(--duration) var(--ease);
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

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

.modal-header {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-header h3 {
    font-size: 1.375rem;
    margin-bottom: 0.375rem;
}

.modal-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
    outline: none;
}

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

.form-group input:focus {
    border-color: var(--cta);
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

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

.modal-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modal-success {
    display: none;
    text-align: center;
    padding: 1rem 0;
}

.modal-success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(3, 105, 161, 0.1);
    color: var(--cta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.modal-success h3 {
    margin-bottom: 0.5rem;
}

.modal-success p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.modal-error {
    display: none;
}

.modal-error p {
    color: #dc2626;
    font-size: 0.875rem;
    text-align: center;
    margin: 0.75rem 0 0;
}

.modal-error a {
    color: var(--cta);
}

@media (max-width: 480px) {
    .modal {
        padding: 1.75rem 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
