/* ============================================================
   IMMILEARN — SINGLE-PAGE WEBSITE
   Luxury black & smoke-white theme
   Fonts: Space Grotesk (display) · Manrope (body)
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
    /* Backgrounds — deep blacks, never flat #000 */
    --bg-deep: #050505;
    --bg-base: #0b0b0b;
    --bg-raised: #101010;
    --bg-card: #151515;
    --bg-card-hover: #1b1b1b;

    /* Text — soft whites, never pure #fff */
    --text-primary: #f5f5f5;
    --text-secondary: #d6d6d6;
    --text-tertiary: #b8b8b8;
    --text-muted: #999999;

    /* Borders */
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);

    /* Type */
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Manrope", sans-serif;

    /* Fluid type scale */
    --fs-hero: clamp(2.4rem, 6vw, 4.5rem);
    --fs-h2: clamp(1.8rem, 4vw, 2.9rem);
    --fs-h3: clamp(1.25rem, 2.2vw, 1.6rem);
    --fs-body: clamp(0.98rem, 1.1vw, 1.06rem);
    --fs-small: 0.875rem;

    /* Layout */
    --max-width: 1280px;
    --section-pad: clamp(4.5rem, 9vw, 8rem);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.55s;

    /* Shadows */
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.45);
    --shadow-lift: 0 18px 50px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
    /* offset for sticky header */
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--text-secondary);
    background-color: var(--bg-deep);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.25s var(--ease-out);
}

a:hover {
    color: var(--text-secondary);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Visible keyboard focus */
:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 3px;
    border-radius: 3px;
}

::selection {
    background: rgba(255, 255, 255, 0.9);
    color: #0b0b0b;
}

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

.container-narrow {
    width: min(100% - 3rem, 880px);
}

/* ------------------------------------------------------------
   3. GLOBAL DECOR — scroll progress & mouse glow
   ------------------------------------------------------------ */
.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #f5f5f5, #999999);
    z-index: 1001;
}

.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.045) 0%, transparent 65%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* ------------------------------------------------------------
   4. HEADER / NAVIGATION
   ------------------------------------------------------------ */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
        backdrop-filter 0.35s var(--ease-out);
}

/* Solid dark bar once scrolled */
.header.scrolled {
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border-soft);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

/* Animated underline hover + active state */
.nav-link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-tertiary);
    padding-block: 0.4rem;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.5px;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

/* ------------------------------------------------------------
   5. MOBILE MENU
   ------------------------------------------------------------ */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
    z-index: 1100;
}

.mobile-overlay.open {
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(320px, 85vw);
    background: var(--bg-raised);
    border-left: 1px solid var(--border-soft);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 1101;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.mobile-close {
    background: none;
    border: 0;
    color: var(--text-primary);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-link {
    display: block;
    padding: 0.85rem 0.75rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: background 0.25s, color 0.25s;
}

.mobile-link:hover,
.mobile-link.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    text-align: center;
    background: var(--bg-deep);
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* Faint architectural grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
}

/* Floating soft orbs (parallax targets) */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: float 9s ease-in-out infinite alternate;
}

.hero-orb-1 {
    width: 420px;
    height: 420px;
    top: 12%;
    left: 8%;
    background: rgba(255, 255, 255, 0.05);
}

.hero-orb-2 {
    width: 340px;
    height: 340px;
    bottom: 10%;
    right: 10%;
    background: rgba(255, 255, 255, 0.04);
    animation-delay: -4s;
}

@keyframes float {
    from {
        transform: translateY(-18px);
    }

    to {
        transform: translateY(18px);
    }
}

.hero-inner {
    padding-block: 8rem 6rem;
}

.hero-eyebrow {
    display: inline-block;
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.75rem;
}

.hero-title {
    font-size: var(--fs-hero);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-title-accent {
    background: linear-gradient(120deg, #f8f8f8 20%, #999999 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    max-width: 46rem;
    margin-inline: auto;
    color: var(--text-tertiary);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animated scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 44px;
    border: 1.5px solid var(--border-strong);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-indicator-line {
    width: 2px;
    height: 10px;
    background: var(--text-tertiary);
    border-radius: 2px;
    animation: scrollNudge 1.8s ease-in-out infinite;
}

@keyframes scrollNudge {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    70% {
        transform: translateY(12px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

/* ------------------------------------------------------------
   7. BUTTONS
   ------------------------------------------------------------ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.9rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
        background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-primary {
    background: var(--text-primary);
    color: #0b0b0b;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 245, 245, 0.15);
    color: #050505;
}

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

.btn-ghost:hover {
    border-color: var(--text-tertiary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

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

.btn-arrow {
    transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* JS-injected ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    transform: scale(0);
    animation: ripple 0.6s ease-out forwards;
    pointer-events: none;
}

.btn-ghost .ripple {
    background: rgba(255, 255, 255, 0.12);
}

@keyframes ripple {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

/* ------------------------------------------------------------
   8. SECTIONS — shared scaffolding
   ------------------------------------------------------------ */
.section {
    padding-block: var(--section-pad);
    background: var(--bg-deep);
}

/* Alternating tone for rhythm */
.section-alt {
    background: var(--bg-base);
    border-block: 1px solid var(--border-soft);
}

.section-head {
    max-width: 46rem;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-eyebrow {
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--text-tertiary);
}

/* ------------------------------------------------------------
   9. ABOUT
   ------------------------------------------------------------ */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.about-story p {
    margin-bottom: 1.25rem;
}

.about-achievements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.achieve-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
}

.achieve-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

.achieve-icon {
    font-size: 1.6rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.achieve-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.achieve-card p {
    font-size: 0.92rem;
    color: var(--text-tertiary);
}

/* Global presence strip */
.global-presence {
    margin-top: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
}

.global-copy {
    max-width: 40rem;
}

.global-copy h3 {
    font-size: var(--fs-h3);
    margin-bottom: 0.65rem;
}

.global-copy p {
    color: var(--text-tertiary);
}

.global-flags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.flag-chip {
    background: var(--bg-raised);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* ------------------------------------------------------------
   10. PRODUCTS
   ------------------------------------------------------------ */
.product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
        border-color 0.4s;
    overflow: hidden;
}

/* Animated border sheen on hover */
.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.25), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.12));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.45s var(--ease-out);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: var(--border-strong);
}

.product-card:hover::before {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--text-primary);
    color: #0b0b0b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
}

.product-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.product-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--bg-raised);
    border: 1px solid var(--border-soft);
    padding: 8px;
}

.product-name {
    font-size: var(--fs-h3);
    margin-bottom: 0.25rem;
}

.product-tag {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.product-desc {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    max-width: 68rem;
}

.product-subhead {
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Feature lists as two-column grid on wide screens */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 0.7rem 1.75rem;
    margin-bottom: 1.75rem;
}

.feature-grid li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.feature-grid li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* Studio nested block */
.studio-block {
    background: var(--bg-raised);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-block: 0.5rem 1.75rem;
}

.product-note {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ------------------------------------------------------------
   11. TEAM
   ------------------------------------------------------------ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.75rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
        border-color 0.4s;
}

/* Elevation + soft glow */
.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lift), 0 0 40px rgba(255, 255, 255, 0.05);
}

.team-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-raised);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(35%);
    transition: transform 0.6s var(--ease-out), filter 0.6s;
}

.team-card:hover .team-photo img {
    transform: scale(1.06);
    filter: grayscale(0%);
}

.team-info {
    padding: 1.35rem 1.25rem 1.5rem;
}

.team-name {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.team-exrole {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.team-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--text-tertiary);
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.team-social a:hover {
    background: var(--text-primary);
    color: #0b0b0b;
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.team-social svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ------------------------------------------------------------
   12. CONTACT
   ------------------------------------------------------------ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-company {
    font-size: var(--fs-h3);
    margin-bottom: 1.75rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: 1.15rem;
}

.contact-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--text-primary);
}

.map-placeholder {
    margin-top: 1.5rem;
    height: 180px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        var(--bg-card);
    background-size: 28px 28px, 28px 28px, auto;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

/* Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    box-shadow: var(--shadow-card);
}

.form-field {
    margin-bottom: 1.35rem;
}

.form-field label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: var(--bg-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--text-tertiary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.form-field input.invalid,
.form-field textarea.invalid {
    border-color: #e0716f;
}

.form-error {
    color: #e0716f;
    font-size: 0.82rem;
    margin-top: 0.4rem;
}

.form-success {
    margin-top: 1rem;
    color: #9ed8a4;
    font-size: 0.92rem;
    text-align: center;
}

/* ------------------------------------------------------------
   13. PRIVACY
   ------------------------------------------------------------ */
.privacy-intro p {
    margin-bottom: 1.5rem;
}

.privacy-intro a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notice-box {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-left: 3px solid var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.notice-box h4 {
    margin-bottom: 0.6rem;
}

.notice-box p {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

/* Accordion via styled <details> */
.policy-item {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

.policy-item[open] {
    border-color: var(--border-strong);
}

.policy-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.15rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding-right: 3rem;
    transition: background 0.25s;
}

.policy-item summary::-webkit-details-marker {
    display: none;
}

.policy-item summary::after {
    content: "+";
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: transform 0.3s var(--ease-out);
}

.policy-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.policy-item summary:hover {
    background: var(--bg-card-hover);
}

.policy-body {
    padding: 0.25rem 1.5rem 1.5rem;
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.policy-body h4 {
    font-size: 0.95rem;
    margin: 1.25rem 0 0.5rem;
}

.policy-body h4:first-child {
    margin-top: 0;
}

.policy-body p {
    margin-bottom: 0.85rem;
}

.policy-body ul {
    margin: 0 0 1rem;
}

.policy-body li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.4rem;
}

.policy-body li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.policy-body a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

/* ------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------ */
.footer {
    background: var(--bg-base);
    border-top: 1px solid var(--border-soft);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-tagline {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer h4 {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.6rem;
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.footer-links a,
.footer-contact a {
    color: var(--text-tertiary);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-soft);
    padding-block: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ------------------------------------------------------------
   15. BACK TO TOP
   ------------------------------------------------------------ */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out),
        visibility 0.35s, background 0.3s;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--text-primary);
    color: #0b0b0b;
}

/* ------------------------------------------------------------
   16. SCROLL REVEAL ANIMATIONS
   ------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------ */

/* ≤1200px */
@media (max-width: 1200px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ≤992px */
@media (max-width: 992px) {
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ≤768px */
@media (max-width: 768px) {
    .about-achievements {
        grid-template-columns: 1fr 1fr;
    }

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

/* ≤576px */
@media (max-width: 576px) {
    .about-achievements {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .product-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
}

/* ≤360px */
@media (max-width: 360px) {
    .container,
    .container-narrow {
        width: calc(100% - 2rem);
    }

    .brand-name {
        font-size: 1rem;
    }
}

/* Ultra-wide ≥1440px — a touch more breathing room */
@media (min-width: 1440px) {
    :root {
        --section-pad: clamp(6rem, 8vw, 9rem);
    }
}

/* ------------------------------------------------------------
   18. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

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

    .mouse-glow,
    .scroll-indicator {
        display: none;
    }
}
