/*══════════════════════════════════════════
  NOTIQO DESIGN SYSTEM v2.0
  Shared variables, reset, typography,
  buttons, animations, header, footer
══════════════════════════════════════════*/

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

:root {
    --primary: #6C3AED;
    --primary-light: #8B5CF6;
    --primary-dark: #5B21B6;
    --secondary: #06B6D4;
    --accent: #F59E0B;
    --bg: #FAFAFE;
    --bg-alt: #F3F0FF;
    --bg-dark: #0F0A1F;
    --text: #1E1B2E;
    --text-sec: #6B7280;
    --text-light: #9CA3AF;
    --white: #FFF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --grad-hero: linear-gradient(135deg, #6C3AED 0%, #8B5CF6 50%, #06B6D4 100%);
    --grad-card: linear-gradient(145deg, #F3F0FF 0%, #EDE9FE 100%);
    --grad-dark: linear-gradient(135deg, #0F0A1F 0%, #1E1045 50%, #0F0A1F 100%);
    --sh-sm: 0 1px 3px rgba(108, 58, 237, .08);
    --sh-md: 0 4px 20px rgba(108, 58, 237, .1);
    --sh-lg: 0 8px 40px rgba(108, 58, 237, .15);
    --sh-glow: 0 0 40px rgba(108, 58, 237, .25);
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-d: 'Space Grotesk', 'Inter', sans-serif;
    --ease: 0.3s cubic-bezier(.4, 0, .2, 1);
    --green: #10B981;
    --red: #EF4444;
    --yellow: #F59E0B;
    --blue: #3B82F6;
    --cyan: #06B6D4;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden
}

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

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

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

/* MOB-010: Responsive image hints for mobile bandwidth */
@media (max-width: 768px) {
    img:not([width]) {
        content-visibility: auto
    }
}

ul {
    list-style: none
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

.section {
    padding: 100px 0
}

/* TYPOGRAPHY */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px
}

.section-title {
    font-family: var(--font-d);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-sec);
    max-width: 560px;
    line-height: 1.7
}

.section-header {
    text-align: center;
    margin-bottom: 56px
}

.section-header .section-subtitle {
    margin: 0 auto
}

.gradient-text {
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    padding: 14px 32px;
    transition: var(--ease);
    position: relative;
    overflow: hidden
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(108, 58, 237, .35)
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 58, 237, .4)
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, .1), transparent);
    transform: translateX(-100%);
    transition: .6s
}

.btn-primary:hover::after {
    transform: translateX(100%)
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary)
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px)
}

.btn-ghost {
    background: rgba(108, 58, 237, .08);
    color: var(--primary)
}

.btn-ghost:hover {
    background: rgba(108, 58, 237, .15)
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--sh-md)
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-lg)
}

.btn-sm {
    padding: 10px 22px;
    font-size: 14px
}

.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(108, 58, 237, .1);
    color: var(--primary)
}

/* SCROLL REVEAL */
/* Fallback: content visible by default, hidden only when JS is loaded */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .7s ease, transform .7s ease
}

.js-reveal-ready .reveal {
    opacity: 0;
    transform: translateY(30px)
}

.js-reveal-ready .reveal.visible,
.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

.reveal-d1 {
    transition-delay: .1s
}

.reveal-d2 {
    transition-delay: .2s
}

.reveal-d3 {
    transition-delay: .3s
}

.reveal-d4 {
    transition-delay: .4s
}

/* ANIMATIONS */
@keyframes float {
    0%, 100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-14px)
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg)
    }
    50% {
        transform: translateY(-8px) rotate(1deg)
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1)
    }
    50% {
        opacity: .5;
        transform: scale(1.5)
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: .4;
        transform: scale(1)
    }
    50% {
        opacity: .7;
        transform: scale(1.1)
    }
}

@keyframes rotateGlow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg)
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0
    }
    100% {
        background-position: 200% 0
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(.85)
    }
    to {
        opacity: 1;
        transform: scale(1)
    }
}

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

@keyframes tiltFloat {
    0%, 100% {
        transform: perspective(600px) rotateY(-2deg) rotateX(1deg) translateY(0)
    }
    50% {
        transform: perspective(600px) rotateY(2deg) rotateX(-1deg) translateY(-10px)
    }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* STATUE IMAGE SHARED */
.statue-img {
    border-radius: var(--r-xl);
    transition: transform .6s cubic-bezier(.4, 0, .2, 1), box-shadow .6s ease;
    will-change: transform
}

.statue-img:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 20px 60px rgba(108, 58, 237, .25)
}

.glow-ring {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(108, 58, 237, .15), rgba(6, 182, 212, .1), rgba(139, 92, 246, .15), rgba(108, 58, 237, .1));
    animation: rotateGlow 8s linear infinite;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: .3;
    animation: float 3s ease-in-out infinite;
    pointer-events: none
}

/* MATH GRID BACKGROUND */
.math-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: linear-gradient(rgba(108, 58, 237, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(108, 58, 237, .05) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 0, 0, .35) 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 0, 0, .35) 0%, transparent 75%)
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--ease)
}

.header.scrolled {
    background: rgba(250, 250, 254, .85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 58, 237, .08);
    padding: 10px 0
}

.header.header-solid {
    background: rgba(250, 250, 254, .9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 58, 237, .08);
    padding: 12px 0
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    font-family: var(--font-d);
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -.5px
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sec);
    transition: var(--ease);
    position: relative;
    padding: 10px 0;
    min-height: 44px;
    display: flex;
    align-items: center
}

.nav a:hover, .nav a.active {
    color: var(--primary)
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--ease);
    border-radius: 2px
}

.nav a:hover::after, .nav a.active::after {
    width: 100%
}

.lang-switch {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    margin-left: 4px
}

.lang-switch button {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    background: transparent;
    color: var(--text-sec);
    transition: var(--ease);
    letter-spacing: .5px;
    border: none;
    cursor: pointer;
    line-height: 1;
    min-width: 44px;
    min-height: 44px
}

.lang-switch button.active {
    background: var(--primary);
    color: var(--white)
}

.lang-switch button:not(.active):hover {
    background: rgba(108, 58, 237, .06);
    color: var(--primary)
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.header .btn {
    padding: 10px 24px;
    font-size: 14px
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 8px
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--ease)
}

.nav-mobile-auth {
    display: flex;
    gap: 10px;
    width: 100%;
    padding-bottom: 3rem;
}

.nav-mobile-auth .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 12px
}

.nav-mobile-auth .btn-primary {
    color: #fff
}

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    justify-content: center
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 500;
    transition: var(--ease)
}

.breadcrumb a:hover {
    color: var(--primary-dark)
}

.breadcrumb svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0
}

/* FOOTER */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 30px;
    color: rgba(255, 255, 255, .6)
}

.footer-grid {
    display: grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px
}

.footer-brand .logo {
    margin-bottom: 12px;
    color: var(--primary-light)
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 16px
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .5);
    transition: var(--ease)
}

.footer-socials a:hover {
    background: rgba(108, 58, 237, .2);
    color: var(--primary-light)
}

.footer-socials a svg {
    width: 18px;
    height: 18px
}

.footer-col h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, .5);
    padding: 4px 0;
    transition: var(--ease)
}

.footer-col a:hover {
    color: var(--primary-light)
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px
}

.footer-bottom a {
    color: rgba(255, 255, 255, .4);
    transition: var(--ease)
}

.footer-bottom a:hover {
    color: var(--primary-light)
}

/* RESPONSIVE - SHARED */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns:1fr 1fr
    }
}

/* Mobile nav drawer — lives outside header on body level */
.nav-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 360px;
    height: 100%;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--sh-lg);
    gap: 12px;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto
}

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

.nav-mobile .nav-header {
    display: flex;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-light)
}

.nav-mobile .nav-logo img {
    height: 24px;
    width: auto
}

.nav-mobile .nav-close {
    display: flex;
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: var(--r-sm);
    z-index: 1
}

.nav-mobile .nav-close:hover {
    background: var(--bg-alt)
}

.nav-mobile .nav-close svg {
    width: 22px;
    height: 22px;
    stroke: var(--text);
    stroke-width: 2
}

.nav-mobile a {
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(0,0,0,.05)
}

.nav-mobile a:last-of-type {
    border-bottom: none
}

.nav-mobile .nav-inline-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,.05)
}

.nav-mobile .nav-lang-btn {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    padding: 2px 0;
    transition: var(--ease)
}

.nav-mobile .nav-lang-btn.active {
    color: var(--primary);
    font-weight: 600
}

.nav-mobile .nav-lang-sep {
    color: var(--border);
    font-size: 13px
}

.nav-mobile .nav-mobile-extras {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 12px;
    margin-top: 16px;
    border-top: 1px solid var(--border-light);
    width: 100%
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease
}

.nav-overlay.active {
    display: block;
    opacity: 1
}

body.nav-open-body {
    overflow: hidden
}

/* Hide mobile nav on desktop */
@media (min-width: 1025px) {
    .nav-mobile,
    .nav-overlay {
        display: none !important
    }
}

@media (max-width: 1024px) {
    .nav-desktop {
        display: none
    }

    .menu-toggle {
        display: flex
    }

    .header-actions .lang-switch {
        display: none
    }

    .header-actions .btn-secondary {
        display: none
    }

    .header-actions .btn-primary.btn-sm {
        display: none
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px
    }
}

/* MOB-007: Compact header in landscape on phones */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 6px 0
    }

    .header.scrolled,
    .header.header-solid {
        padding: 4px 0
    }

    .nav.open {
        max-height: 60vh;
        overflow-y: auto
    }
}

/* MOB-011: Minimum font size on mobile */
@media (max-width: 768px) {
    body {
        font-size: 15px
    }

    .nav.open a {
        font-size: 15px
    }

    p, li, span, td, th, blockquote, label {
        font-size: max(14px, inherit)
    }
}

.btn-secondary{
    border: 2px solid #6C3AED!important;
}

/* ── Breadcrumbs ── */
.bc-nav { margin-bottom: 20px; }
.bc-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    flex-wrap: wrap;
}
.bc-item a {
    color: var(--primary);
    font-weight: 500;
    transition: var(--ease);
    text-decoration: none;
}
.bc-item a:hover { text-decoration: underline; }
.bc-current span {
    color: var(--text-sec);
    font-weight: 400;
}
.bc-sep {
    display: flex;
    align-items: center;
    color: var(--text-sec);
    opacity: .5;
}
.bc-sep svg { flex-shrink: 0; }
@media (max-width: 640px) {
    .bc-list { font-size: 12px; gap: 4px; }
    .bc-sep svg { width: 12px; height: 12px; }
}
