/* Adie-Tech — Custom site styles */

:root {
    --color-bg: #fafbfc;
    --color-surface: #ffffff;
    --color-surface-alt: #f4f6f8;
    --color-navy: #0a0f1c;
    --color-navy-soft: #151b2e;
    --color-teal: #2dd4bf;
    --color-teal-dark: #14b8a6;
    --color-teal-light: #ccfbf1;
    --color-accent: #6366f1;
    --color-text: #3d4f66;
    --color-text-muted: #6b7c93;
    --color-border: #e4e9f0;
    --color-success: #059669;
    --color-error: #dc2626;

    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --shadow-sm: 0 1px 3px rgba(10, 15, 28, 0.04);
    --shadow-md: 0 12px 32px rgba(10, 15, 28, 0.08);
    --shadow-lg: 0 24px 48px rgba(10, 15, 28, 0.12);
    --shadow-glow: 0 0 40px rgba(45, 212, 191, 0.25);

    --radius-sm: 0.625rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    --container: 76rem;
    --header-height: 4.75rem;
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: var(--header-height);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

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

a {
    color: var(--color-teal-dark);
    text-decoration: none;
    transition: color var(--transition);
}

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

h1, h2, h3, h4 {
    color: var(--color-navy);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; font-weight: 700; }

.text-gradient {
    background: linear-gradient(135deg, var(--color-teal) 0%, #5eead4 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    margin: 0 0 1rem;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    background: var(--color-navy);
    color: #fff;
    padding: 0.75rem 1rem;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    height: var(--header-height);
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-border);
}

@media (min-width: 769px) {
    .site-header:not(.is-scrolled) .brand-text strong,
    .site-header:not(.is-scrolled) .primary-nav a:not(.nav-cta) {
        color: #fff;
    }

    .site-header:not(.is-scrolled) .brand-text small {
        color: rgba(255, 255, 255, 0.65);
    }

    .site-header:not(.is-scrolled) .primary-nav a:not(.nav-cta):hover,
    .site-header:not(.is-scrolled) .primary-nav a.is-active:not(.nav-cta) {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

    .site-header:not(.is-scrolled) .nav-toggle {
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
}

.brand img {
    border-radius: var(--radius-sm);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    color: var(--color-navy);
    font-size: 1.05rem;
}

.brand-text small {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-navy);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--color-navy);
    background: var(--color-surface-alt);
}

.primary-nav .nav-cta {
    background: linear-gradient(135deg, var(--color-teal-dark), var(--color-teal));
    color: #fff;
    margin-left: 0.5rem;
    box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35);
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta.is-active {
    background: linear-gradient(135deg, var(--color-teal-dark), #0d9488);
    color: #fff;
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-teal-dark), var(--color-teal));
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d9488, var(--color-teal-dark));
    color: #fff;
}

.btn-glow {
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 6px 28px rgba(45, 212, 191, 0.5);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-teal);
    color: var(--color-teal-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--color-surface-alt);
    color: var(--color-navy);
}

/* Hero */
.hero {
    position: relative;
    color: #fff;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(5rem, 12vw, 8rem);
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height));
    padding-top: calc(clamp(3rem, 8vw, 6rem) + var(--header-height));
    background: var(--color-navy);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45, 212, 191, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
    z-index: 0;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.hero-glow--1 {
    width: 500px;
    height: 500px;
    background: rgba(45, 212, 191, 0.2);
    top: -10%;
    right: -5%;
    animation: float 8s ease-in-out infinite;
}

.hero-glow--2 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.15);
    bottom: 10%;
    left: -10%;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-teal);
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.hero h1 {
    color: #fff;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 34rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.hero-trust li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-trust i {
    color: var(--color-teal);
    font-size: 0.75rem;
}

/* Terminal */
.hero-terminal {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.terminal-chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-chrome span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-chrome span:nth-child(1) { background: #ff5f57; }
.terminal-chrome span:nth-child(2) { background: #febc2e; }
.terminal-chrome span:nth-child(3) { background: #28c840; }

.terminal-chrome em {
    margin-left: auto;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.code-snippet {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.75;
    color: #cbd5e1;
    background: transparent;
    padding: 1.25rem;
    margin: 0;
    overflow-x: auto;
}

.code-snippet .keyword { color: #c084fc; }
.code-snippet .string { color: #86efac; }
.code-snippet .comment { color: #64748b; }
.code-snippet .func { color: #7dd3fc; }
.code-snippet .prop { color: #fbbf24; }

.terminal-status {
    display: flex;
    gap: 1.25rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.terminal-status span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.terminal-status .fa-circle-check { color: #28c840; }
.terminal-status .fa-bolt { color: #febc2e; }

/* Stats bar */
.stats-bar {
    margin-top: -3.5rem;
    position: relative;
    z-index: 2;
    padding-bottom: 1rem;
}

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

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 0.85rem;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-teal-light), rgba(45, 212, 191, 0.15));
    color: var(--color-teal-dark);
    font-size: 1.1rem;
}

.stat-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-rating {
    margin-top: 0.5rem;
    color: var(--color-teal-dark);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Sections */
.section {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-header {
    max-width: 42rem;
    margin-bottom: 2.5rem;
}

.section-header.centered {
    text-align: center;
    margin-inline: auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-teal-dark);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.section-dark {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.8);
}

.section-dark h2,
.section-dark .section-label {
    color: #fff;
}

.section-dark .section-label {
    color: var(--color-teal);
}

.section-dark .section-lead {
    color: rgba(255, 255, 255, 0.6);
}

.section-lead {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* Stats (legacy inner pages) */
.stats-grid--legacy {
    grid-template-columns: repeat(3, 1fr);
}

/* Bento grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.bento-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(45, 212, 191, 0.3);
}

.bento-card--large {
    grid-row: span 2;
}

.bento-card--wide {
    grid-column: span 2;
}

.bento-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-teal-light), rgba(45, 212, 191, 0.2));
    color: var(--color-teal-dark);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.bento-card h3 {
    margin-bottom: 0.5rem;
}

.bento-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-teal-dark);
}

.bento-link i {
    transition: transform var(--transition);
}

.bento-link:hover i {
    transform: translateX(4px);
}

.bento-visual {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 55%;
    opacity: 0.15;
    pointer-events: none;
}

/* Marquee */
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    padding: 1rem 0 2rem;
}

.marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: marquee 35s linear infinite;
}

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

.marquee .tech-pill {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee .tech-pill i {
    color: var(--color-teal);
}

/* Process list */
.process-list {
    margin-top: 2rem;
}

.process-list li {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
}

.process-list li:last-child {
    border-bottom: none;
}

.process-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-teal);
    opacity: 0.5;
    line-height: 1;
    flex-shrink: 0;
}

.process-list strong {
    display: block;
    color: var(--color-navy);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.process-list p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.feature-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-stack .feature-card {
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-stack .feature-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

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

.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin: 0;
    transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.15rem;
}

.testimonial-card p {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.testimonial-card footer strong {
    display: block;
    color: var(--color-navy);
    font-size: 0.9rem;
}

.testimonial-card footer span {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.5rem;
}

.service-card,
.feature-card,
.portfolio-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover,
.portfolio-card:hover,
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(45, 212, 191, 0.25);
}

.service-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.service-card-body,
.feature-card,
.portfolio-card-body {
    padding: 1.5rem;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--color-teal-light);
    color: var(--color-teal-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card h3,
.feature-card h3,
.portfolio-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p,
.feature-card p,
.portfolio-card p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.feature-card {
    padding: 1.5rem;
}

.feature-card i {
    color: var(--color-teal);
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

/* Tech stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-navy-soft);
}

.tech-pill i {
    color: var(--color-teal);
}

/* CTA band */
.cta-band {
    position: relative;
    background: linear-gradient(135deg, var(--color-navy) 0%, #134e4a 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: clamp(2.5rem, 5vw, 3.5rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(45, 212, 191, 0.2);
    border-radius: 50%;
    filter: blur(80px);
    top: -50%;
    right: -5%;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 32rem;
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.cta-band h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

/* Page hero (inner pages) */
.page-hero {
    position: relative;
    background: var(--color-navy);
    color: #fff;
    padding: clamp(3rem, 7vw, 5rem) 0;
    margin-top: calc(-1 * var(--header-height));
    padding-top: calc(clamp(3rem, 7vw, 5rem) + var(--header-height));
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 20%, rgba(45, 212, 191, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
}

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

.page-hero h1 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.page-hero .text-gradient {
    background: linear-gradient(135deg, var(--color-teal) 0%, #5eead4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 40rem;
    margin: 0;
    font-size: 1.05rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
    color: #fff;
}

/* Two column layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split-layout img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.check-list i {
    color: var(--color-teal);
    margin-top: 0.2rem;
}

/* Portfolio */
.portfolio-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.portfolio-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--color-teal-light);
    color: var(--color-teal-dark);
}

/* Contact form */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
}

.contact-info-card {
    background: linear-gradient(160deg, var(--color-navy) 0%, #134e4a 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info-card h3 {
    color: #fff;
}

.contact-info-card p {
    color: rgba(255, 255, 255, 0.82);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.contact-detail i {
    color: var(--color-teal);
    margin-top: 0.2rem;
}

.contact-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
    color: var(--color-text);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.form-group textarea {
    min-height: 9rem;
    resize: vertical;
}

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

.content-prose .content-prose-section {
    max-width: 48rem;
    margin-bottom: 2.5rem;
}

.content-prose .content-prose-section:last-child {
    margin-bottom: 0;
}

.content-prose h2 {
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

.content-prose p {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 0.85rem;
}

.form-optional {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 0.9em;
}

.form-hint.recaptcha-notice {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.form-hint.recaptcha-notice a {
    color: inherit;
    text-decoration: underline;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.alert-success {
    background: #ecfdf5;
    color: var(--color-success);
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: var(--color-error);
    border: 1px solid #fecaca;
}

/* Process steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.process-step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--color-teal);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

/* Footer */
.site-footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.82);
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    padding: 3.5rem 0 2.5rem;
}

.footer-grid h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    margin: 1rem 0 1.25rem;
    max-width: 22rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.55rem;
}

.footer-contact i {
    width: 1rem;
    color: var(--color-teal);
}

.social-links {
    display: flex;
    gap: 0.65rem;
}

.social-links a {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-links a:hover {
    background: var(--color-teal);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 0 1.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-inner p {
    margin: 0;
}

.footer-bottom-links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin-left: 0.75rem;
}

.footer-bottom-inner a,
.footer-cookie-settings {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.footer-bottom-inner a:hover,
.footer-cookie-settings:hover {
    color: #fff;
}

.footer-cookie-settings {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.brand--footer .brand-text strong {
    color: #fff;
}

.brand--footer .brand-text small {
    color: rgba(255, 255, 255, 0.65);
}

.bg-alt {
    background: var(--color-surface-alt);
}

/* Cookie consent */
body.cookie-consent-open {
    padding-bottom: 0;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    align-items: end;
    pointer-events: none;
}

.cookie-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 28, 0.35);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.cookie-consent__shell {
    position: relative;
    width: min(100%, 56rem);
    margin: 0 auto 1rem;
    padding: 0 1rem;
    pointer-events: auto;
}

.cookie-consent__panel {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px) saturate(180%);
    overflow: hidden;
}

.cookie-consent__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.cookie-consent__close:hover {
    background: var(--color-surface-alt);
    color: var(--color-navy);
    border-color: var(--color-teal);
}

.cookie-consent__main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.25rem;
    padding: 1.25rem 1.35rem;
    padding-right: 3.25rem;
    align-items: start;
}

.cookie-consent__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--color-teal-light), #fff);
    color: var(--color-teal-dark);
    font-size: 1.25rem;
}

.cookie-consent__copy h2 {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
    color: var(--color-navy);
}

.cookie-consent__copy p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.92rem;
    line-height: 1.55;
}

.cookie-consent__copy a {
    color: var(--color-teal-dark);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.cookie-consent__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.cookie-consent__preferences {
    padding: 0 1.35rem 1.35rem;
    padding-right: 3.25rem;
    border-top: 1px solid var(--color-border);
}

.cookie-consent__preferences h3 {
    margin: 1rem 0 0.35rem;
    font-size: 1rem;
}

.cookie-consent__prefs-lead {
    margin: 0 0 0.85rem;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.cookie-consent__options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.cookie-consent__option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
}

.cookie-consent__option label,
.cookie-consent__option > div {
    display: grid;
    gap: 0.2rem;
}

.cookie-consent__option strong {
    color: var(--color-navy);
    font-size: 0.92rem;
}

.cookie-consent__option span {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.cookie-consent__badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-teal-dark);
    background: var(--color-teal-light);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.cookie-consent__option input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--color-teal-dark);
    margin-top: 0.15rem;
}

.cookie-consent__actions--prefs {
    margin-top: 0.85rem;
    padding-top: 0;
}

.btn-sm {
    padding: 0.55rem 0.95rem;
    font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 960px) {
    .hero-grid,
    .split-layout,
    .contact-layout,
    .footer-grid,
    .bento-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .bento-card--large,
    .bento-card--wide {
        grid-row: auto;
        grid-column: auto;
    }

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

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

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

    .cookie-consent__icon {
        display: none;
    }

    .cookie-consent__actions {
        flex-direction: column;
    }

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

    .footer-bottom-links {
        display: flex;
        margin-left: 0;
        margin-top: 0.35rem;
    }

    .site-header:not(.is-scrolled) .brand-text strong {
        color: #fff;
    }

    .site-header:not(.is-scrolled) .brand-text small {
        color: rgba(255, 255, 255, 0.65);
    }

    .site-header.is-scrolled .brand-text strong {
        color: var(--color-navy);
    }

    .site-header.is-scrolled .brand-text small {
        color: var(--color-text-muted);
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .primary-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem;
        display: none;
        box-shadow: var(--shadow-md);
    }

    .primary-nav.is-open {
        display: block;
    }

    .site-header:not(.is-scrolled) .primary-nav.is-open a:not(.nav-cta),
    .primary-nav.is-open a {
        color: var(--color-text);
    }

    .site-header:not(.is-scrolled) .primary-nav.is-open a:not(.nav-cta):hover,
    .site-header:not(.is-scrolled) .primary-nav.is-open a.is-active:not(.nav-cta),
    .primary-nav.is-open a:hover,
    .primary-nav.is-open a.is-active:not(.nav-cta) {
        color: var(--color-navy);
        background: var(--color-surface-alt);
    }

    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-nav a {
        width: 100%;
    }

    .primary-nav .nav-cta {
        margin-left: 0;
    }

    .form-row,
    .process-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }
}
