/* ========================================
   INSTALLO.CH - Global Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Satoshi:wght@400;500;700;900&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-light: #fafafa;
    --text-dark: #fafafa;
    --text-light: #0a0a0a;
    --accent: #ff3c00;
    --accent-hover: #ff5722;
    --accent-blue: #0066ff;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --gray-dark: #141414;
    --gray-medium: #1f1f1f;
    --gray-light: #f5f5f5;
    --border-dark: rgba(255,255,255,0.08);
    --border-light: rgba(0,0,0,0.08);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-dark);
    line-height: 1.6;
    cursor: none;
    overflow-x: hidden;
}

body.light-mode {
    background: var(--bg-light);
    color: var(--text-light);
}

/* Selection */
::selection {
    background: var(--accent);
    color: white;
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 100000;
    transition: 
        width 0.25s var(--transition-slow),
        height 0.25s var(--transition-slow),
        background 0.2s ease,
        border-radius 0.25s ease,
        border-color 0.2s ease,
        transform 0.1s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: scale(0);
}

/* Cursor States */
.cursor.hover-link {
    width: 50px;
    height: 50px;
    border-width: 2px;
    background: rgba(255, 60, 0, 0.1);
}

.cursor.hover-link::before {
    opacity: 1;
    transform: scale(1);
}

.cursor.hover-button {
    width: 70px;
    height: 70px;
    border-color: white;
    background: var(--accent);
}

.cursor.hover-card {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    border-color: var(--accent-blue);
    background: rgba(0, 102, 255, 0.1);
}

.cursor.hover-input {
    width: 4px;
    height: 30px;
    border-radius: 2px;
    border-color: var(--accent);
    background: var(--accent);
    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.cursor.hover-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border-color: white;
    background: transparent;
}

.cursor.hover-image::after {
    content: '👁';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
}

/* Cursor Label */
.cursor-label {
    position: fixed;
    pointer-events: none;
    z-index: 100001;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translate(-50%, 30px);
    white-space: nowrap;
}

.cursor-label.visible {
    opacity: 1;
}

/* Hide cursor on mobile */
@media (max-width: 768px) {
    .cursor, .cursor-label { display: none !important; }
    body { cursor: auto; }
}

/* ========================================
   NAVIGATION
   ======================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
}

nav.scrolled {
    padding: 1rem 4rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dark);
}

body.light-mode nav.scrolled {
    background: rgba(250, 250, 250, 0.85);
    border-bottom-color: var(--border-light);
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(-10deg) scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-blue));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a.active {
    opacity: 1;
}

.nav-links a.active::before {
    transform: scaleX(1);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gray-medium);
    border: 1px solid var(--border-dark);
    padding: 0.7rem 1.4rem;
    border-radius: 100px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    color: inherit;
    cursor: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.light-mode .theme-toggle {
    background: white;
    border-color: var(--border-light);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-toggle span {
    position: relative;
    z-index: 1;
}

.theme-toggle:hover {
    color: white;
    border-color: transparent;
    transform: scale(1.05);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: none;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 2.2rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s ease;
    cursor: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 60, 0, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 60, 0, 0.4);
}

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

body.light-mode .btn-secondary {
    border-color: var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 60, 0, 0.05);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: var(--gray-dark);
    border: 1px solid var(--border-dark);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

body.light-mode .card {
    background: white;
    border-color: var(--border-light);
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-blue), var(--accent-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 60, 0, 0.2);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Scale In */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Slide In */
.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    75% { transform: translateY(10px) rotate(-1deg); }
}

.float {
    animation: float 6s ease-in-out infinite;
}

.float-delay-1 { animation-delay: -1.5s; }
.float-delay-2 { animation-delay: -3s; }
.float-delay-3 { animation-delay: -4.5s; }

/* Pulse Glow */
@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Gradient Shift */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

/* ========================================
   SECTION STYLES
   ======================================== */

.section {
    padding: 7rem 4rem;
    position: relative;
}

.section-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.section-tag::before {
    content: '';
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.section-description {
    font-size: 1.15rem;
    opacity: 0.6;
    line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    padding: 5rem 4rem 3rem;
    border-top: 1px solid var(--border-dark);
    background: var(--gray-dark);
}

body.light-mode footer {
    border-top-color: var(--border-light);
    background: var(--gray-light);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    opacity: 0.6;
    margin-top: 1rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.5;
    font-size: 0.9rem;
}

body.light-mode .footer-bottom {
    border-top-color: var(--border-light);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .section {
        padding: 4rem 1.5rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
