:root {
    --bg: #0f172a;
    --bg-alt: rgba(15, 23, 42, 0.75);
    --surface: rgba(15, 23, 42, 0.6);
    --card: rgba(255, 255, 255, 0.04);
    --accent: #60a5fa;
    --accent-strong: #38bdf8;
    --accent-soft: rgba(96, 165, 250, 0.1);
    --text: #f8fafc;
    --text-muted: rgba(248, 250, 252, 0.7);
    --glass-border: rgba(148, 163, 184, 0.25);
    --max-width: 1100px;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --radius-full: 999px;
    --shadow-soft: 0 25px 60px rgba(15, 23, 42, 0.4);
    --shadow-hard: 0 48px 80px rgba(15, 23, 42, 0.45);
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

p + p {
    margin-top: 1rem;
}

.background-gradient {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.6), transparent 45%),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.55), transparent 55%),
                radial-gradient(circle at top right, rgba(139, 92, 246, 0.45), transparent 50%),
                radial-gradient(circle at center, rgba(30, 64, 175, 0.55), transparent 60%);
    z-index: -3;
    animation: gradientShift 12s infinite alternate ease-in-out;
}

.background-grid {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px) 0 0 / 80px 80px,
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px) 0 0 / 80px 80px;
    z-index: -2;
    opacity: 0.7;
    animation: gridDrift 22s linear infinite;
}

.floating-shape {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    filter: blur(1px);
    animation: float 16s ease-in-out infinite;
}

.shape-one {
    top: -120px;
    left: -80px;
}

.shape-two {
    bottom: -160px;
    right: -100px;
    animation-delay: -8s;
}

@keyframes gradientShift {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.1); opacity: 1; }
}

@keyframes gridDrift {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-40px, -40px, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(25px); }
}

.container {
    width: min(100% - 3rem, var(--max-width));
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section.alternate {
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(24px);
}

.section-heading {
    max-width: 740px;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.75rem);
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
}

.section-heading .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.55));
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: background 0.4s var(--transition), box-shadow 0.4s var(--transition), transform 0.35s var(--transition);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    transition: padding 0.4s var(--transition);
}

.site-header.scrolled {
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.35);
}

.site-header.scrolled .container {
    padding: 0.85rem 0;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(148, 163, 184, 0.1);
    z-index: 120;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: transform 0.12s ease-out;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(96, 165, 250, 0.35);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.3s var(--transition);
    position: relative;
    padding-bottom: 0.35rem;
}

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

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--transition), opacity 0.3s var(--transition);
    opacity: 0;
}

.main-nav a.active,
.main-nav a:focus-visible {
    color: var(--text);
}

.main-nav a.active::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
    opacity: 1;
}

.main-nav .btn-primary::after {
    display: none;
}

.main-nav .btn-primary.active,
.main-nav .btn-primary:focus-visible {
    color: #0f172a;
}


.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #0f172a;
    padding: 0.78rem 1.65rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 20px 40px rgba(96, 165, 250, 0.35);
    transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
    line-height: 1;
    min-height: 44px;
    letter-spacing: 0.01em;
}
.main-nav .btn-primary {
    padding: 0.65rem 1.35rem;
    min-height: 0;
    box-shadow: 0 12px 22px rgba(96, 165, 250, 0.28);
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 55px rgba(96, 165, 250, 0.45);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.4);
    transition: background 0.3s var(--transition), color 0.3s var(--transition);
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.12);
}

.hero {
    padding: 8rem 0 6rem;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
}

.hero-text .lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 1.4rem;
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
}

.hero-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.55));
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-hard);
    position: relative;
    overflow: hidden;
}

.hero-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.35), transparent 50%);
    opacity: 0.7;
}

.hero-card p {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.stat .value {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--accent-strong);
}

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

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(56, 189, 248, 0.18);
    color: var(--accent-strong);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 18px 38px rgba(56, 189, 248, 0.3);
    animation: badgeDrift 12s ease-in-out infinite;
}

@keyframes badgeDrift {
    0% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-8px) rotate(1.5deg); }
    100% { transform: translateY(0) rotate(-1.5deg); }
}

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

.card {
    background: var(--card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s var(--transition), border-color 0.4s var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: rgba(96, 165, 250, 0.45);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card ul {
    color: var(--text-muted);
    display: grid;
    gap: 0.8rem;
    list-style: disc;
    padding-left: 1.25rem;
}

.card p {
    color: var(--text-muted);
}

.card.highlight {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(96, 165, 250, 0.55);
}

.card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-md) - 1px);
    pointer-events: none;
    background: linear-gradient(130deg, rgba(96, 165, 250, 0.07), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--transition);
}

.card:hover::after {
    opacity: 1;
}

.card.glass {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.3));
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
}

.cards.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.cards.masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.cards.masonry .card {
    margin: 0;
}

.tabs {
    background: rgba(15, 23, 42, 0.35);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-soft);
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.8rem;
}

.tab-button {
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: background 0.3s var(--transition), color 0.3s var(--transition), transform 0.3s var(--transition);
    font-weight: 500;
}

.tab-button:hover {
    transform: translateY(-2px);
}

.tab-button.active {
    background: rgba(96, 165, 250, 0.22);
    color: var(--accent-strong);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-panel.active {
    display: block;
}

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

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: rgba(148, 163, 184, 0.2);
    transform: translateY(-50%);
}

.timeline-step {
    position: relative;
    background: rgba(15, 23, 42, 0.4);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center;
    transition: transform 0.4s var(--transition), border-color 0.4s var(--transition);
    backdrop-filter: blur(18px);
    overflow: visible;
}

.timeline-step::before {
    content: attr(data-step);
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #0f172a;
    box-shadow: 0 18px 38px rgba(96, 165, 250, 0.35);
}

.timeline-step:hover {
    transform: translateY(-12px);
    border-color: rgba(96, 165, 250, 0.4);
}

.timeline-step::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top, rgba(96, 165, 250, 0.16), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s var(--transition);
}

.timeline-step:hover::after {
    opacity: 1;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    background: rgba(148, 163, 184, 0.16);
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.accordion {
    display: grid;
    gap: 1rem;
}

.accordion-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(18px);
}

.accordion-trigger {
    width: 100%;
    text-align: left;
    padding: 1.5rem 1.75rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-trigger::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s var(--transition);
}

.accordion-trigger.active::after {
    transform: rotate(45deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.75rem;
}

.accordion-panel p {
    padding: 0 0 1.5rem;
    color: var(--text-muted);
}

.accordion-item.active {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.35);
}

.cta-card {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.2), rgba(56, 189, 248, 0.25));
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid rgba(96, 165, 250, 0.4);
    box-shadow: var(--shadow-hard);
}

.cta-copy {
    flex: 1 1 320px;
    max-width: 440px;
}

.cta-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.contact-form {
    flex: 1 1 340px;
    display: grid;
    gap: 1.2rem;
    background: rgba(15, 23, 42, 0.55);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-soft);
    position: relative;
    isolation: isolate;
}

.input-group {
    display: grid;
    gap: 0.55rem;
}

.input-group label {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.8);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.92);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.3s var(--transition), box-shadow 0.3s var(--transition);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(226, 232, 240, 0.55);
}

.input-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(96, 165, 250, 0.25), transparent 60%);
    opacity: 0.45;
    z-index: -1;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

.contact-form .btn-primary {
    justify-self: start;
}

.contact-form:has(.btn-primary[disabled]) {
    opacity: 0.8;
}

.form-feedback {
    min-height: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-feedback.success {
    color: #4ade80;
}

.form-feedback.error {
    color: #fca5a5;
}

.form-feedback.success::before,
.form-feedback.error::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 0.5rem;
    transform: scale(1);
}

.site-footer {
    padding: 3.5rem 0 2.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.65));
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 55%);
    pointer-events: none;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem 3rem;
    align-items: start;
    margin-bottom: 2.8rem;
}

.footer-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    margin-bottom: 1.25rem;
}

.footer-brand .logo span {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #f8fafc;
}

.footer-tagline {
    color: rgba(248, 250, 252, 0.72);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 24rem;
}

.footer-contact {
    display: grid;
    gap: 0.75rem;
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.95rem;
}

.footer-contact div {
    display: grid;
    gap: 0.15rem;
}

.footer-contact dt {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.8);
}

.footer-contact a {
    color: rgba(248, 250, 252, 0.88);
    font-weight: 500;
    transition: color 0.3s var(--transition);
}

.footer-contact a:hover {
    color: var(--accent-strong);
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
    color: #f8fafc;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.footer-column a {
    color: rgba(248, 250, 252, 0.68);
    font-size: 0.95rem;
    transition: color 0.3s var(--transition), transform 0.3s var(--transition);
}

.footer-column a:hover {
    color: var(--accent-strong);
    transform: translateX(3px);
}

.footer-cta {
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow-soft);
}

.footer-cta h4 {
    margin-bottom: 0.9rem;
}

.footer-cta p {
    color: rgba(248, 250, 252, 0.72);
    margin-bottom: 1.2rem;
}

.footer-cta .btn-secondary {
    width: fit-content;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding-top: 1.5rem;
}

.footer-bottom p {
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-links a,
.footer-links .link-button {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.65);
    transition: color 0.3s var(--transition);
}

.footer-links .link-button {
    text-decoration: none;
}

.footer-links a:hover,
.footer-links .link-button:hover {
    color: var(--accent-strong);
}

.link-button {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.link-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.to-top {
    font-weight: 500;
    color: var(--accent);
    transition: color 0.3s var(--transition);
}

.to-top:hover {
    color: var(--accent-strong);
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s var(--transition);
}

.legal-page {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.55), transparent 45%),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.45), transparent 55%),
                #0b1220;
    color: var(--text);
    min-height: 100vh;
}

.legal-header {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(12px);
    background: rgba(10, 18, 35, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding: 1.5rem 0;
}

.legal-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.legal-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    color: var(--text);
    text-decoration: none;
}

.legal-logo img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(96, 165, 250, 0.3);
}

.legal-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.legal-nav a {
    color: rgba(248, 250, 252, 0.75);
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    transition: background 0.3s var(--transition), color 0.3s var(--transition);
}

.legal-nav a:hover,
.legal-nav a.active {
    background: rgba(96, 165, 250, 0.18);
    color: var(--text);
}

.legal-content {
    padding: 4rem 0 5rem;
    max-width: 900px;
}

.legal-content article {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: 0 40px 70px rgba(7, 11, 22, 0.45);
    backdrop-filter: blur(20px);
}

.legal-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.legal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin: 2.4rem 0 1rem;
}

.legal-content p,
.legal-content li {
    color: rgba(226, 232, 240, 0.85);
    font-size: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.legal-content .legal-lead {
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 1.5rem;
}

.legal-content address {
    font-style: normal;
    margin-top: 1rem;
    line-height: 1.8;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(10, 18, 35, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    overflow: hidden;
}

.legal-table th,
.legal-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    text-align: left;
    font-size: 0.95rem;
}

.legal-table th {
    background: rgba(96, 165, 250, 0.12);
    color: var(--text);
    font-weight: 600;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-footer {
    padding: 2.5rem 0 3rem;
    background: rgba(7, 11, 22, 0.88);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.legal-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.legal-footer p {
    color: rgba(226, 232, 240, 0.6);
    font-size: 0.9rem;
}
@media (max-width: 980px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        top: 76px;
        right: 1.5rem;
        left: 1.5rem;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        border-radius: var(--radius-md);
        padding: 1.5rem;
        gap: 1rem;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s var(--transition), transform 0.3s var(--transition);
    }

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

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 760px) {
    .section {
        padding: 4.5rem 0;
    }

    .cards.masonry {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-cta {
        padding: 1.6rem;
    }

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

    .footer-bottom .to-top {
        margin-left: 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline {
        gap: 2.5rem;
    }

    .timeline-step {
        text-align: left;
    }

    .timeline-step::before {
        left: 1.5rem;
        transform: translateX(0);
    }

    .cta-card {
        padding: 2.2rem;
    }

    .contact-form {
        padding: 1.6rem;
    }
}

@media (max-width: 540px) {
    .container {
        width: 100%;
        padding: 0 1.5rem;
    }

    .hero {
        padding-top: 7rem;
    }

    .hero-card {
        padding: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .tab-buttons {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }
}

.legal-footer .to-top {
    color: var(--accent);
}

.legal-footer .to-top:hover {
    color: var(--accent-strong);
}

@media (max-width: 720px) {
    .legal-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-nav {
        justify-content: flex-start;
    }

    .legal-content article {
        padding: 2rem;
    }
}

.cookie-banner {
    position: fixed;
    z-index: 130;
    bottom: 2rem;
    right: 2rem;
    width: min(320px, calc(100% - 3rem));
    background: rgba(15, 23, 42, 0.92);
    border-radius: 24px 0 24px 24px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.55);
    transform: translateX(120%);
    transition: transform 0.5s var(--transition), opacity 0.4s var(--transition);
    opacity: 0;
    overflow: hidden;
}

.cookie-banner.visible {
    transform: translateX(0);
    opacity: 1;
}

.cookie-content {
    padding: 1.75rem 1.75rem 1.5rem;
    display: grid;
    gap: 1rem;
}

.cookie-content h2 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}

.cookie-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-actions .btn-secondary {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.18);
    color: rgba(248, 250, 252, 0.92);
    padding: 0.65rem 1.25rem;
}

.cookie-actions .btn-secondary:hover {
    background: rgba(148, 163, 184, 0.28);
}

.cookie-actions .btn-primary {
    padding: 0.65rem 1.25rem;
}

.cookie-link {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: underline;
    justify-self: flex-start;
}

.cookie-link:hover {
    color: var(--accent-strong);
}

.cookie-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 1.4rem;
    background: none;
    border: none;
    color: rgba(248, 250, 252, 0.7);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s var(--transition);
}

.cookie-close:hover {
    color: var(--text);
}

@media (max-width: 640px) {
    .cookie-banner {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 1.5rem;
        width: auto;
        border-radius: 20px;
        transform: translateY(150%);
    }

    .cookie-banner.visible {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html, body {
        scroll-behavior: auto;
    }

    .background-gradient,
    .background-grid,
    .floating-shape,
    .floating-badge {
        animation: none;
    }

    [data-animate] {
        transition: none;
    }

    .card,
    .timeline-step,
    .btn-primary,
    .btn-secondary {
        transition: none;
    }
}
