/* =========================================================
   NDA Studio – style.css
   Design: Bold & graphic. Dark hero, electric accent, serif display type.
   Fonts: DM Serif Display (headlines) + Inter (body/UI)
   ========================================================= */

/* ---------------------------------------------------------
   0. Custom Properties
   --------------------------------------------------------- */
:root {
    --bg:           #FAFAFA;
    --bg-alt:       #F5F3EE;
    --white:        #FFFFFF;
    --text:         #111111;
    --text-muted:   #6B7280;
    --accent:       #1a1aff;
    --accent-hover: #0000ee;
    --accent-light: #e8e8ff;
    --accent-spot:  #c8ff00;
    --border:       #E5E7ED;

    --hero-bg:      #0F0F0F;

    --font:         'Inter', system-ui, sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;

    --radius-sm:    6px;
    --radius:       12px;
    --radius-lg:    20px;

    --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow:       0 4px 16px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04);
    --shadow-lg:    0 12px 40px rgba(0,0,0,.10);

    --nav-height:   68px;
    --section-gap:  100px;
    --container:    1120px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------------------------------------------------------
   2. Typography helpers
   --------------------------------------------------------- */
.section__label {
    display: inline-block;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .875rem;
}

.section__label--light {
    color: rgba(130, 130, 255, .9);
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--text);
    margin-bottom: 1rem;
}

.section__title--light {
    color: #fff;
}

.section__sub {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 540px;
}

.section__sub--light {
    color: rgba(255,255,255,.5);
}

.section__header {
    margin-bottom: 3.5rem;
}

/* ---------------------------------------------------------
   3. Layout
   --------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

.section--dark {
    background: var(--hero-bg);
}


/* ---------------------------------------------------------
   4. Buttons
   --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .9375rem;
    font-weight: 600;
    padding: .8rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn:active {
    transform: scale(.97);
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26,26,255,.22);
}

.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(26,26,255,.30);
}

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

.btn--ghost:hover {
    border-color: var(--text-muted);
    background: rgba(0,0,0,.03);
}

.btn--ghost-dark {
    background: transparent;
    color: rgba(255,255,255,.8);
    border: 1.5px solid rgba(255,255,255,.18);
}

.btn--ghost-dark:hover {
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.06);
    color: #fff;
}

.btn--full {
    width: 100%;
}

/* ---------------------------------------------------------
   5. Navigation
   --------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* Backdrop blur lives on ::before so .nav itself has no backdrop-filter.
   backdrop-filter creates a clipping context in Chrome/Safari that would
   prevent the mobile dropdown (position:absolute) from overflowing. */
.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(15,15,15,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background .2s ease;
}

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

.nav.nav--scrolled::before {
    background: rgba(250,250,250,.96);
}

.nav__container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav__logo {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -.025em;
    color: #fff;
    flex-shrink: 0;
    transition: color .15s ease;
}

.nav--scrolled .nav__logo {
    color: var(--text);
}

.nav__logo:hover {
    color: var(--accent);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: .25rem;
}

/* Nav links — underline slide-in on hover */
.nav__link {
    position: relative;
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    padding: .5rem .75rem;
    border-radius: var(--radius-sm);
    transition: color .15s ease;
}

.nav--scrolled .nav__link {
    color: var(--text-muted);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: .25rem;
    left: .75rem;
    right: .75rem;
    height: 1.5px;
    background: var(--accent);
    width: 0;
    transition: width .2s ease;
}

.nav__link:hover {
    color: #fff;
}

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

.nav__link:hover::after {
    width: calc(100% - 1.5rem);
}

.nav__cta {
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: .5rem 1.125rem;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    margin-left: .5rem;
    transition: background .15s ease, border-color .15s ease;
}

.nav__cta:hover {
    background: #0000d6;
    border-color: #0000d6;
}

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.nav__toggle-bar {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.nav--scrolled .nav__toggle-bar {
    background: var(--text);
}

.nav__toggle.is-open .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-open .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav__toggle.is-open .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------
   6. Hero
   --------------------------------------------------------- */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

/* Indigo radial glow */
.hero::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -5%;
    width: 65vw;
    height: 65vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(26,26,255,.16) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(26,26,255,.06) 0%, transparent 65%);
    pointer-events: none;
}

.hero__container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 5rem 1.5rem 7rem;
    position: relative;
    z-index: 1;
}

/* Ghost "NDA" background text — desktop only */
.hero__container::before {
    content: 'NDA';
    position: absolute;
    font-family: var(--font-display);
    font-size: 38vw;
    line-height: 1;
    color: #fff;
    opacity: .028;
    right: -8%;
    bottom: -12%;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__tag {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    padding: .35rem 1rem;
    border-radius: 999px;
    margin-bottom: 2rem;
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7.5vw, 6rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: #fff;
    margin-bottom: 1.75rem;
}

.hero__subline {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    color: rgba(255,255,255,.55);
    line-height: 1.65;
    margin-bottom: 2.75rem;
    max-width: 580px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .875rem;
}

/* ---------------------------------------------------------
   6b. Image Placeholders
   --------------------------------------------------------- */
.img-placeholder {
    background: #E8E9EE;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: #9CA3AF;
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .04em;
}

.img-placeholder svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ---------------------------------------------------------
   7. Stats bar
   --------------------------------------------------------- */
.stats {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 2.75rem 0;
}

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

.stat {
    display: flex;
    flex-direction: column;
    gap: .375rem;
}

.stat__number {
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--text);
    line-height: 1;
}

/* Staggered sizes — feels considered, not templated */
.stats__grid .stat:nth-child(1) .stat__number { font-size: 2.25rem; }
.stats__grid .stat:nth-child(2) .stat__number { font-size: 1.625rem; }
.stats__grid .stat:nth-child(3) .stat__number { font-size: 1.625rem; }
.stats__grid .stat:nth-child(4) .stat__number { font-size: 2rem; }

.stat__label {
    font-size: .8125rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* ---------------------------------------------------------
   8. Marquee
   --------------------------------------------------------- */
.marquee {
    overflow: hidden;
    background: var(--hero-bg);
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: .875rem 0;
    white-space: nowrap;
}

.marquee__track {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    animation: marquee 28s linear infinite;
}

.marquee__item {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    flex-shrink: 0;
}

.marquee__dot {
    color: var(--accent-spot);
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

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

/* ---------------------------------------------------------
   9. Services — bold horizontal list
   --------------------------------------------------------- */
.services__list {
    border-top: 1px solid var(--border);
}

.service-row {
    border-bottom: 1px solid var(--border);
    transition: background .18s ease, padding-left .18s ease, padding-right .18s ease, border-bottom-color .18s ease;
}

.service-row__link {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem 0;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.service-row:has(.service-row__link:hover) {
    background: var(--accent);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    border-bottom-color: transparent;
}

.service-row:has(.service-row__link:hover) .service-row__num,
.service-row:has(.service-row__link:hover) .service-row__title,
.service-row:has(.service-row__link:hover) .service-row__text,
.service-row:has(.service-row__link:hover) .service-row__arrow {
    color: #fff;
}

.service-row__num {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--text-muted);
    flex-shrink: 0;
    width: 2rem;
    transition: color .18s ease;
}

.service-row__body {
    flex: 1;
}

.service-row__title {
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
    margin-bottom: .25rem;
    transition: color .18s ease;
}

.service-row__text {
    font-size: .9375rem;
    color: var(--text-muted);
    line-height: 1.55;
    transition: color .18s ease;
}

.service-row__arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color .18s ease, transform .18s ease;
}

.service-row:has(.service-row__link:hover) .service-row__arrow {
    transform: translateX(6px);
}

/* Stagger fade-in */
.services__list .service-row.fade-in:nth-child(2) { transition-delay: .06s; }
.services__list .service-row.fade-in:nth-child(3) { transition-delay: .12s; }
.services__list .service-row.fade-in:nth-child(4) { transition-delay: .18s; }
.services__list .service-row.fade-in:nth-child(5) { transition-delay: .24s; }

/* ---------------------------------------------------------
   10. Process
   --------------------------------------------------------- */
.process__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    position: relative;
}

.process__steps::before {
    content: '';
    position: absolute;
    top: .625rem;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,.08), transparent);
    pointer-events: none;
}

.process__step {
    position: relative;
}

.process__num {
    display: block;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.process__title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: .875rem;
}

.process__text {
    font-size: .9375rem;
    color: rgba(255,255,255,.48);
    line-height: 1.7;
}

/* ---------------------------------------------------------
   11. Clients / Who we work with
   --------------------------------------------------------- */
.clients__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.client-tile {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.625rem;
    transition: box-shadow .2s ease, transform .2s ease;
}

.client-tile:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.client-tile__icon {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.125rem;
    color: var(--accent);
}

.client-tile__icon svg {
    width: 20px;
    height: 20px;
}

.client-tile__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}

.client-tile__text {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------------------------------------------------------
   12. Results
   --------------------------------------------------------- */
.results__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.result-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 2rem 2.25rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
a.result-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.result-card__image {
    margin: 0 -2rem 1.5rem;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.result-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.result-card__image .img-placeholder {
    height: 100%;
    border-radius: 0;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

.result-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.result-card__tag {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.result-card__title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    letter-spacing: -.01em;
    margin-bottom: .875rem;
    line-height: 1.25;
}

.result-card__text {
    font-size: .9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.result-card__meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .875rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.result-card__meta-label {
    color: var(--text-muted);
}

.result-card__meta-value {
    font-weight: 600;
    color: var(--text);
}

.results__grid .result-card.fade-in:nth-child(2) { transition-delay: .1s; }
.results__grid .result-card.fade-in:nth-child(3) { transition-delay: .2s; }
.results__grid .result-card.fade-in:nth-child(4) { transition-delay: .3s; }

/* ---------------------------------------------------------
   13. About
   --------------------------------------------------------- */
.about__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.about__text {
    max-width: 560px;
}

.about__text p {
    color: var(--text-muted);
    margin-bottom: 1.125rem;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.about__text .btn {
    margin-top: .75rem;
}

.about__linkedin {
    display: inline-block;
    margin-top: .875rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--accent);
    transition: color .15s ease;
}

.about__linkedin:hover {
    color: var(--accent-hover);
}

.about__visual {
    flex-shrink: 0;
    position: relative;
}

.about__portrait {
    position: relative;
    width: 300px;
}

.about__portrait .img-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
}
.about__portrait img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
    display: block;
}

.about__badge {
    position: absolute;
    bottom: 1.25rem;
    right: -1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: .25rem;
}

.about__badge-city {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
}

.about__badge-country {
    font-size: .8125rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------
   14. Contact
   --------------------------------------------------------- */
.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2.25rem;
}

/* Hide honeypot */
.contact__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    tabindex: -1;
}

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

.form-label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .425rem;
}

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

.form-input {
    display: block;
    width: 100%;
    font-family: var(--font);
    font-size: .9375rem;
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
}

.form-input::placeholder {
    color: #B0B5AE;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26,26,255,.10);
    background: var(--white);
}

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

.form-group + .btn {
    margin-top: .5rem;
}

.contact__info {
    padding-top: 1rem;
}

.contact__info-label {
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

.contact__email {
    display: inline-block;
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -.01em;
    margin-bottom: 1rem;
    transition: color .15s ease;
}

.contact__email:hover {
    color: var(--accent-hover);
}

.contact__info-note {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.5;
}


/* ---------------------------------------------------------
   15. Footer
   --------------------------------------------------------- */
.footer {
    background: var(--text);
    color: rgba(255,255,255,.65);
}

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

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__logo {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.025em;
    transition: color .15s ease;
}

.footer__logo:hover {
    color: rgba(255,255,255,.75);
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .5rem;
}

.footer__link {
    font-size: .875rem;
    padding: .35rem .75rem;
    border-radius: var(--radius-sm);
    transition: color .15s ease, background .15s ease;
}

.footer__link:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 1.5rem 0;
}

.footer__copy {
    font-size: .8125rem;
}

/* ---------------------------------------------------------
   16. Scroll animations
   --------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: none;
}

.clients__grid .client-tile.fade-in:nth-child(2) { transition-delay: .08s; }
.clients__grid .client-tile.fade-in:nth-child(3) { transition-delay: .16s; }
.clients__grid .client-tile.fade-in:nth-child(4) { transition-delay: .24s; }

.process__steps .process__step.fade-in:nth-child(2) { transition-delay: .1s; }
.process__steps .process__step.fade-in:nth-child(3) { transition-delay: .2s; }

/* ---------------------------------------------------------
   16b. Pricing
   --------------------------------------------------------- */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem 1.75rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

.pricing-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.pricing-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.pricing-card__type {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: .3rem .7rem;
    border-radius: 100px;
}

.pricing-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: .875rem;
}

.pricing-card__price {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1;
}

.pricing-card__price strong {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -.02em;
}

.pricing-card__price span {
    font-size: .9375rem;
    color: var(--text-muted);
    margin-left: .125rem;
}

.pricing-card__text {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.25rem;
}

.pricing-card__footnote {
    font-size: .75rem;
    color: var(--text-muted);
    line-height: 1.5;
    border-top: 1px solid var(--border);
    padding-top: .875rem;
    margin-top: auto;
}

.pricing__disclaimer {
    text-align: center;
    font-size: .875rem;
    color: var(--text-muted);
    margin-top: 2.5rem;
}

.pricing__grid .pricing-card.fade-in:nth-child(2) { transition-delay: .08s; }
.pricing__grid .pricing-card.fade-in:nth-child(3) { transition-delay: .16s; }
.pricing__grid .pricing-card.fade-in:nth-child(4) { transition-delay: .24s; }

/* ---------------------------------------------------------
   17. Responsive
   --------------------------------------------------------- */

/* Tablet */
@media (max-width: 900px) {
    :root {
        --section-gap: 72px;
    }

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

    .process__steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .process__steps::before {
        display: none;
    }

    .about__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about__visual {
        justify-self: center;
    }

    .about__portrait {
        width: 240px;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Nav mobile — separate breakpoint so it kicks in before layout breaks */
@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 99;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem 1.75rem;
        gap: .75rem;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease;
    }

    .nav__links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav__link,
    .nav__cta {
        display: block;
        font-size: 1.0625rem;
        padding: .875rem 1rem;
        border-radius: var(--radius-sm);
        margin-left: 0;
        color: var(--text-muted);
    }

    .nav__link::after {
        display: none;
    }

    .nav__link:hover {
        color: var(--text);
        background: rgba(0,0,0,.04);
    }

    /* Extra top margin on the CTA list item so the gap from "Über uns"
       to the button's top edge matches the gap between the text links */
    .nav__links li:last-child {
        margin-top: .875rem;
    }

    .nav__cta {
        text-align: center;
        color: #fff;
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --section-gap: 56px;
    }

    /* Hide hero ghost text — too small to read, just clutter */
    .hero__container::before {
        display: none;
    }

    /* Hero */
    .hero__container {
        padding: 3.5rem 1.5rem 5rem;
    }

    .hero__actions {
        flex-direction: column;
    }

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

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

    /* Services list — tighten on mobile */
    .service-row {
        gap: 1rem;
    }

    .service-row:has(.service-row__link:hover) {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .service-row__arrow {
        display: none;
    }

    /* Grids */
    .clients__grid,
    .results__grid,
    .pricing__grid {
        grid-template-columns: 1fr;
    }

    /* Remove stagger on mobile */
    .clients__grid .client-tile.fade-in,
    .results__grid .result-card.fade-in,
    .process__steps .process__step.fade-in,
    .services__list .service-row.fade-in,
    .pricing__grid .pricing-card.fade-in {
        transition-delay: 0s;
    }

    /* About portrait on small phones — full width */
    .about__portrait {
        width: 100%;
    }

    .about__badge {
        right: 1rem;
        bottom: 1rem;
        width: 110px;
        height: 110px;
    }

    .about__badge-city {
        font-size: 1rem;
    }

    .about__badge-country {
        font-size: .75rem;
    }

    /* Contact form */
    .contact__form {
        padding: 1.75rem 1.5rem;
    }

    /* Footer */
    .footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

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

/* ---------------------------------------------------------
   18. Legal pages (Impressum / Datenschutz)
   --------------------------------------------------------- */
.legal {
    padding: calc(var(--section-gap) + 2.5rem) 0 var(--section-gap);
}

.legal__content {
    max-width: 720px;
}

.legal__content h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -.01em;
    margin-bottom: 2.5rem;
}

.legal__content h2 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-top: 2.25rem;
    margin-bottom: .75rem;
}

.legal__content p,
.legal__content li {
    font-size: .9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: .625rem;
}

.legal__content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: .625rem;
}

.legal__content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(26,26,255,.3);
    text-underline-offset: 2px;
}

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

.legal__notice {
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: .9375rem;
    color: var(--text);
    line-height: 1.6;
}

/* ---------------------------------------------------------
   19. Danke page (thank-you after form submission)
   --------------------------------------------------------- */
.danke__content {
    max-width: 560px;
}

.danke__icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.danke__text {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ---------------------------------------------------------
   20. Danke page
   --------------------------------------------------------- */
.page-danke { background: #0f0f0f; }
.page-danke body { display: flex; flex-direction: column; min-height: 100dvh; }

.danke-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(68px + 3rem) 1.5rem 3rem;
}
.danke__content {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .danke-main {
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: calc(68px + 2rem);
    }
    .danke__content { text-align: left; }
}

/* ---------------------------------------------------------
   21. Respect reduced motion preference
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in,
    .service-row,
    .client-tile,
    .result-card,
    .pricing-card,
    .btn,
    .nav__links {
        transition: none !important;
        animation: none !important;
    }
    .fade-in {
        opacity: 1;
        transform: none;
    }
    .marquee__track {
        animation: none;
    }
}
