:root {
    --primary: var(--site-primary);
    --primary-dark: var(--site-primary-dark);
    --secondary: var(--site-secondary);
    --bg: var(--site-bg);
    --surface: var(--site-surface);
    --text: var(--site-text);
    --muted: var(--site-muted);
    --border: var(--site-border);
    --shadow: var(--site-shadow);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Open Sans", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

button,
a {
    font-family: inherit;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--primary-dark);
    text-decoration: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid rgba(20, 35, 59, 0.06);
    backdrop-filter: blur(14px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    color: var(--secondary);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 26px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav li {
    margin: 0;
}

nav a {
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.65rem;
    color: var(--secondary);
    cursor: pointer;
}

.hero {
    position: relative;
    padding: 70px 20px 80px;
    background: linear-gradient(135deg, #f7fbff 0%, #ffffff 60%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(53, 144, 248, 0.14), transparent 32%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
    text-align: center;
    align-items: center;
}

.hero-content > .btn {
    justify-self: center;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    color: var(--secondary);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero p {
    margin: 0 auto;
    max-width: 760px;
    color: var(--muted);
    font-size: 1.05rem;
}

.btn,
button,
.login-btn,
.submit-btn,
.signup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: none;
    border-radius: 999px;
    padding: 14px 30px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.btn,
.submit-btn,
.signup-btn {
    background: var(--primary);
    color: #fff;
}

.btn:hover,
.submit-btn:hover,
.signup-btn:hover,
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(52, 152, 219, 0.18);
}

.login-btn {
    color: var(--primary);
    background: #ffffff;
    border: 1px solid var(--primary);
    padding: 12px 24px;
    white-space: nowrap;
}

.slide-container {
    position: relative;
    width: 100%;
    max-width: 1120px;
    height: min(56vh, 470px);
    min-height: 280px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 45, 85, 0.1);
}

.slide-wrapper {
    display: flex;
    flex-direction: column;
    height: 300%;
    transition: transform 0.9s cubic-bezier(0.22,1,0.36,1);
}

.slide {
    height: calc(100% / 3);
    position: relative;
    overflow: hidden;
}

.slide.has-visual-fallback {
    isolation: isolate;
    background: radial-gradient(ellipse at 76% 27%, rgba(115, 231, 203, .3), transparent 29%), linear-gradient(128deg, #102e43, #12575a 68%, #237d79);
}

.slide.has-visual-fallback:nth-child(2) {
    background: radial-gradient(ellipse at 24% 28%, rgba(255, 205, 125, .3), transparent 31%), linear-gradient(128deg, #17283c, #34435a 57%, #126a68);
}

.slide.has-visual-fallback:nth-child(3) {
    background: radial-gradient(ellipse at 72% 28%, rgba(138, 221, 210, .34), transparent 28%), linear-gradient(128deg, #0e3448, #116c72 63%, #2a7781);
}

.slide.has-visual-fallback::before,
.slide.has-visual-fallback::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.slide.has-visual-fallback::before {
    width: min(55vw, 430px);
    aspect-ratio: 1;
    right: 13%;
    top: 50%;
    border: 1px solid rgba(231, 255, 249, .25);
    border-radius: 45% 55% 63% 37% / 43% 42% 58% 57%;
    box-shadow: 0 0 0 28px rgba(225, 255, 248, .035), 0 0 0 72px rgba(225, 255, 248, .025), inset 0 0 55px rgba(225, 255, 248, .08);
    transform: translateY(-50%) rotate(-18deg);
}

.slide.has-visual-fallback::after {
    content: "SGL-TECH  ·  SOLUTIONS NUMÉRIQUES";
    left: 7%;
    top: 31%;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(.62rem, 1.2vw, .82rem);
    font-weight: 700;
    letter-spacing: .22em;
}

.slide.has-visual-fallback img[hidden] { display: none; }

.slide.has-visual-fallback .slide-caption {
    left: 7%;
    bottom: 21%;
    transform: none;
    max-width: min(76%, 540px);
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-size: clamp(1.4rem, 3vw, 2.8rem);
    font-weight: 750;
    line-height: 1.18;
    text-align: left;
    box-shadow: none;
    backdrop-filter: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center;
    animation: zoom 14s ease-in-out infinite;
}

.slide-caption {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    color: var(--secondary);
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    backdrop-filter: blur(10px);
    max-width: calc(100% - 32px);
    text-align: center;
    line-height: 1.4;
}

.carousel-controls {
    position: absolute;
    inset: auto 16px 0;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 32px);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-controls button {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(8, 47, 89, 0.3);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.65);
    cursor: pointer;
}

.carousel-dots button.active {
    background: var(--primary);
}

.login-panel {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%) scale(0.96);
    width: min(380px, calc(100% - 60px));
    max-width: 100%;
    background: rgba(255,255,255,0.96);
    border-radius: 26px;
    border: 1px solid rgba(52,152,219,0.16);
    box-shadow: 0 32px 60px rgba(15, 45, 85, 0.12);
    padding: 28px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s ease, opacity 0.32s ease;
    z-index: 10;
}

.login-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

.login-panel h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: var(--secondary);
    font-size: 1.35rem;
}

.login-copy {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-copy {
    margin: 0 auto;
    max-width: 760px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: center;
}

.footer-note {
    margin-top: 20px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.login-field,
.form-field {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.login-input,
.form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 1rem;
}

.login-input::placeholder,
.form-input::placeholder {
    color: var(--muted);
}

.login-input:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.12);
}

.login-submit,
.submit-btn {
    width: 100%;
}

.login-register,
.login-register a {
    color: var(--muted);
}

.login-register a {
    color: var(--primary);
    font-weight: 700;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.section {
    background: var(--surface);
    border: 1px solid rgba(20, 35, 59, 0.04);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 60px 40px;
    margin: 28px 0;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--secondary);
    font-size: clamp(2rem, 2.5vw, 3.3rem);
    text-align: center;
}

.features {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.feature-card {
    display: block;
    position: relative;
    background: linear-gradient(to bottom, #c3e6ec, #a7d1d9);
    border-radius: 22px;
    padding: 2.5em 1.8em;
    min-height: 220px;
    box-shadow: 0 18px 40px rgba(15, 45, 85, 0.06);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: feature-enter 0.75s ease forwards;
}

.feature-card:before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -16px;
    right: -16px;
    width: 32px;
    height: 32px;
    border-radius: 32px;
    background: linear-gradient(135deg, #364a60, #384c6c);
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.35s ease-out;
}

.feature-card:hover:before {
    transform: scale(28);
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.12s; }
.feature-card:nth-child(3) { animation-delay: 0.19s; }
.feature-card:nth-child(4) { animation-delay: 0.26s; }
.feature-card:nth-child(5) { animation-delay: 0.33s; }
.feature-card:nth-child(6) { animation-delay: 0.40s; }

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 64px rgba(15, 45, 85, 0.18);
}

.feature-card h3 {
    color: #262626;
    font-size: 1.5em;
    line-height: normal;
    font-weight: 700;
    margin-bottom: 0.5em;
    transition: color 0.5s ease-out, transform 0.5s ease-out;
}

.feature-card p {
    color: #452c2c;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.5em;
    transition: color 0.5s ease-out;
}

.feature-card:hover p {
    color: rgba(255, 255, 255, 0.8);
}

.feature-card:hover h3 {
    color: #ffffff;
    transform: translateX(2px);
}

@keyframes feature-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    background: #ffffff;
    padding: 36px 20px 40px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(20, 35, 59, 0.05);
}

.about-page {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.about-hero {
    padding: 80px 20px 50px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(12, 47, 92, 0.08));
}

.about-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-kicker {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.about-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary);
    margin: 0 0 16px;
}

.about-hero p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 24px;
}

.about-grid {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.about-card,
.value-card {
    background: var(--surface);
    border: 1px solid rgba(20, 35, 59, 0.06);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.about-card h2,
.about-values h2,
.value-card h3 {
    color: var(--secondary);
}

.about-card ul,
.about-values ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.about-values {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px 70px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 900px) {
    .about-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.team-page {
    background: linear-gradient(180deg, #f5f9fd 0%, #ffffff 100%);
}

.team-hero {
    padding: 86px 20px 64px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.13), rgba(12, 47, 92, 0.08));
    border-bottom: 1px solid rgba(20, 35, 59, 0.06);
}

.team-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.team-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary);
    margin: 0 0 16px;
    line-height: 1.1;
}

.team-hero p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto;
}

.team-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 80px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.team-card {
    background: var(--surface);
    border: 1px solid rgba(20, 35, 59, 0.06);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 45, 85, 0.07);
    padding: 26px 22px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 152, 219, 0.25);
    box-shadow: 0 20px 42px rgba(15, 45, 85, 0.12);
}

.team-card h2 {
    margin: 0 0 8px;
    color: var(--secondary);
    font-size: 1.25rem;
}

.team-photo {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid rgba(52, 152, 219, 0.16);
    transition: transform 0.24s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.04);
}

.team-role {
    color: var(--primary);
    font-weight: 700;
    margin: 0 0 12px;
}

.team-card > p:not(.team-role) {
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.team-link {
    display: inline-block;
    margin-top: 22px;
    font-weight: 700;
    color: var(--primary);
    transition: color 0.2s ease;
}

.team-link:hover,
.team-link:focus-visible {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 34px;
    }
}

@media (max-width: 620px) {
    .team-hero {
        padding: 58px 16px 42px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        padding: 28px 16px 54px;
        gap: 16px;
    }

    .team-card {
        padding: 24px 20px;
    }

    .about-hero {
        padding: 60px 16px 36px;
    }
    .about-card,
    .value-card {
        padding: 22px;
    }
}

.partners-page {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.partners-hero {
    padding: 80px 20px 50px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(12, 47, 92, 0.08));
}

.partners-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.partners-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary);
    margin: 0 0 16px;
}

.partners-hero p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto;
}

.partners-section {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.partners-grid,
.clients-grid {
    display: grid;
    gap: 24px;
}

.partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-card,
.client-card {
    background: var(--surface);
    border: 1px solid rgba(20, 35, 59, 0.06);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.partner-card h2,
.client-card h3 {
    color: var(--secondary);
    margin-top: 0;
}

.partner-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.client-card p {
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .partners-grid,
    .clients-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .partners-hero {
        padding: 60px 16px 36px;
    }
    .partner-card,
    .client-card {
        padding: 22px;
    }
}

.announcements-page {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.announcements-hero {
    padding: 80px 20px 50px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(12, 47, 92, 0.08));
}

.announcements-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.announcements-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary);
    margin: 0 0 16px;
}

.announcements-hero p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto;
}

.announcements-section {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px 70px;
}

.announcement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.announcement-card {
    background: var(--surface);
    border: 1px solid rgba(20, 35, 59, 0.06);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.announcement-card h2 {
    color: var(--secondary);
    margin-top: 0;
}

.announcement-date {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.gallery-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 24px;
}

.gallery-header h2 {
    color: var(--secondary);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-item {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
    position: relative;
    min-height: 220px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item figcaption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    background: rgba(12, 47, 92, 0.72);
    color: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .announcement-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 620px) {
    .announcements-hero {
        padding: 60px 16px 36px;
    }
    .announcement-card {
        padding: 22px;
    }
    .gallery-section {
        padding: 0 16px 60px;
    }
}

footer p {
    margin: 0.45rem 0;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 0;
}

.social-links a {
    color: var(--primary);
    font-size: 0.95rem;
}

.hero-title {
    display: inline-block;
    background: linear-gradient(90deg, #0b4e9c 0%, #3d8bdd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes zoom {
    0%,100% { transform: scale(1.02); }
    50% { transform: scale(1.08); }
}

@media (max-width: 1024px) {
    .hero {
        padding-top: 60px;
    }
    .hero-content {
        gap: 20px;
    }
    .login-panel {
        position: relative;
        left: auto;
        top: auto;
        right: auto;
        transform: none;
        width: min(100%, 420px);
        margin: 0 auto;
        max-height: none;
        overflow: visible;
        padding: 24px;
    }
}

@media (max-width: 900px) {
    nav {
        justify-content: space-between;
    }
    .nav-toggle {
        display: block;
        margin-left: auto;
    }
    .login-btn {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    nav ul#mainNav {
        display: none;
        position: absolute;
        top: 72px;
        right: 20px;
        background: #ffffff;
        border: 1px solid rgba(20, 35, 59, 0.08);
        border-radius: 18px;
        padding: 16px 20px;
        flex-direction: column;
        gap: 14px;
        width: min(260px, calc(100vw - 40px));
        box-shadow: 0 24px 60px rgba(15, 45, 85, 0.12);
    }
    nav ul#mainNav.open {
        display: flex;
    }
    nav ul#mainNav a {
        color: var(--secondary);
        font-size: 1rem;
    }
    .slide-container {
        height: min(42vh, 360px);
    }
    .hero-content {
        gap: 18px;
    }
    .section {
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 54px 18px 70px;
    }
    .hero h1 {
        font-size: clamp(1.9rem, 6vw, 2.6rem);
    }
    .slide-container {
        height: min(38vh, 320px);
    }
    .section {
        padding: 32px 18px;
    }
    .feature-card {
        padding: 26px;
    }
    .form-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .card {
        margin: 24px 12px;
    }
    .form-body,
    .social-promo {
        padding: 20px;
    }
}

@media (max-width: 620px) {
    nav {
        padding: 16px 16px 18px;
    }
    .logo {
        font-size: 1.1rem;
    }
    .hero {
        padding: 42px 14px 56px;
    }
    .hero h1 {
        line-height: 1.16;
    }
    .slide-caption {
        font-size: 0.9rem;
        padding: 12px 16px;
        bottom: 16px;
    }
    .carousel-controls {
        width: calc(100% - 20px);
        inset: auto 10px 0;
    }
    .carousel-controls button {
        width: 40px;
        height: 40px;
    }
    .btn,
    .login-btn,
    .submit-btn {
        width: 100%;
    }
    .login-panel {
        padding: 20px;
        border-radius: 20px;
    }
    .login-panel h3 {
        font-size: 1.2rem;
    }
    .login-input,
    .login-submit {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    .slide-container {
        height: min(34vh, 260px);
    }
    .section h2 {
        font-size: 1.7rem;
    }
    .feature-card h3 {
        font-size: 1.2rem;
    }
    .feature-card p {
        font-size: 0.95rem;
    }
    .social-promo h3 {
        font-size: 1.25rem;
    }
}

.card {
    width: min(1000px, 100%);
    margin: 40px auto;
    background: var(--surface);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card > .hero {
    padding: 48px 24px 24px;
    text-align: center;
}

.form-body {
    padding: 32px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: start;
}

.form-panel {
    display: grid;
    gap: 18px;
}

.hero .hero {
    border-radius: 0;
}

.hero h1,
.hero h3 {
    color: var(--secondary);
}

.social-promo {
    background: #f8fbff;
    border-radius: 28px;
    padding: 28px;
    color: var(--text);
    box-shadow: 0 14px 34px rgba(15, 45, 85, 0.08);
    border: 1px solid rgba(52,152,219,0.12);
}

.social-promo h3 {
    margin-bottom: 14px;
    font-size: 1.5rem;
}

.social-promo p,
.social-promo li {
    color: var(--muted);
    line-height: 1.85;
}

.social-promo ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.social-promo li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.social-promo li::before {
    content: "🇭🇹";
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(52,152,219,0.08);
    font-size: 14px;
    margin-top: 2px;
}

.social-banner {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(52,152,219,0.12);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.back-link {
    display: inline-flex;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    padding: 12px 0;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pill {
    background: rgba(52,152,219,0.08);
    color: var(--primary);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
}

@media (max-width: 520px) {
    .hero {
        padding: 42px 16px 60px;
    }
    .form-body {
        padding: 18px;
    }
    .card {
        margin: 24px 12px;
    }
}
