/* ============================================
   iLinkBot Landing Page - Styles
   ============================================ */

/* ----- Scroll Snap Container ----- */
html.landing-page {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-y: scroll;
}

html.landing-page body {
    overflow-x: hidden;
}

/* ----- Sections ----- */
.landing-section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 24px 60px;
}

.section-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ----- Reveal Animations ----- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   HEADER
   ============================================ */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-header.scrolled {
    background: rgba(252, 250, 248, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 24px rgba(45, 42, 38, 0.04);
}

.header-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--swiss-text);
    user-select: none;
}

.header-brand .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--swiss-accent);
    border-radius: 50%;
    margin-left: 2px;
    vertical-align: super;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

.header-login .btn {
    font-size: 14px;
    padding: 9px 20px;
}

/* ============================================
   SECTION 1 - HERO
   ============================================ */
.hero-section {
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--swiss-text);
}

.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--swiss-muted);
    max-width: 580px;
    margin: 0 auto 48px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 14px 36px;
    font-size: 16px;
}

/* Scroll Down Arrow */
.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    z-index: 2;
}

.scroll-arrow span {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--swiss-muted);
    border-bottom: 2px solid var(--swiss-muted);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
    opacity: 0.5;
}

.scroll-arrow span:nth-child(2) {
    animation-delay: 0.15s;
    opacity: 0.3;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* Floating Orbs (Toned down for Swiss Style) */
.orb-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.4;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    animation: orbFloat 30s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--swiss-accent);
    top: -10%;
    left: -10%;
    animation-duration: 40s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #E8956E;
    top: 50%;
    right: -10%;
    animation-duration: 35s;
    animation-delay: -5s;
}

.orb-3 {
    display: none;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* ============================================
   SECTION 2 - CORE FEATURES
   ============================================ */
.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--swiss-muted);
    font-size: 16px;
    margin-bottom: 56px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 36px 32px;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(45, 42, 38, 0.05);
    border-color: rgba(140, 133, 123, 0.3);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.feature-desc {
    font-size: 15px;
    color: var(--swiss-muted);
    line-height: 1.7;
}

/* ============================================
   SECTION 3 - ADVANCED FEATURES
   ============================================ */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.adv-card {
    padding: 28px 24px;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.adv-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(45, 42, 38, 0.05);
    border-color: rgba(140, 133, 123, 0.3);
}

.adv-card:nth-child(even) {
    transform: translateY(20px);
}

.adv-card:nth-child(even):hover {
    transform: translateY(16px);
}

.adv-icon {
    font-size: 28px;
    margin-bottom: 14px;
    display: block;
}

.adv-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.adv-desc {
    font-size: 14px;
    color: var(--swiss-muted);
    line-height: 1.65;
}

/* ============================================
   SECTION 4 - HOW IT WORKS (STEPS)
   ============================================ */
.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: relative;
}

.step-item {
    flex: 1;
    max-width: 260px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 32px rgba(45, 42, 38, 0.06);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-item:hover .step-circle {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(45, 42, 38, 0.08);
    border-color: var(--swiss-accent);
}

.step-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--swiss-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--swiss-muted);
    line-height: 1.6;
}

/* Connector Lines */
.step-connector {
    position: absolute;
    top: 44px;
    left: calc(50% + 56px);
    width: calc(100% - 112px);
    height: 2px;
    z-index: 0;
}

.step-connector::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--swiss-border);
}

.step-connector .connector-dot {
    display: none;
}

/* ============================================
   SECTION 5 - CONTACT + CTA
   ============================================ */
.contact-section .section-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 56px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-card {
    padding: 28px 36px;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 280px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(45, 42, 38, 0.07);
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--swiss-bg);
    border: 1px solid var(--swiss-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--swiss-text);
}

.contact-label {
    font-size: 13px;
    color: var(--swiss-muted);
    margin-bottom: 2px;
    font-weight: 500;
}

.contact-value {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    user-select: all;
}

.cta-card {
    width: 100%;
    max-width: 640px;
    padding: 56px 40px;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 0;
}

.cta-card > * {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.cta-subtitle {
    color: var(--swiss-muted);
    font-size: 16px;
    margin-bottom: 32px;
}

.cta-card .btn {
    padding: 16px 44px;
    font-size: 17px;
}

/* ============================================
   FOOTER
   ============================================ */
.landing-footer {
    text-align: center;
    padding: 24px;
    color: var(--swiss-muted);
    font-size: 13px;
    border-top: 1px solid var(--swiss-border);
    background: var(--swiss-bg);
}

.footer-ipv6-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(140, 133, 123, 0.06);
    border: 1px solid rgba(140, 133, 123, 0.12);
    color: var(--swiss-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
}

.footer-ipv6-badge:hover {
    background: rgba(140, 133, 123, 0.1);
    border-color: rgba(140, 133, 123, 0.2);
}

.ipv6-icon {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .landing-section {
        padding: 80px 20px 40px;
    }

    .landing-header {
        padding: 0 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .adv-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .adv-card:nth-child(even) {
        transform: translateY(0);
    }

    .adv-card:nth-child(even):hover {
        transform: translateY(-3px);
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .step-connector {
        display: none;
    }

    .step-item {
        max-width: 100%;
    }

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

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .contact-cards {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contact-card {
        width: 100%;
        max-width: 360px;
        min-width: auto;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .feature-card {
        padding: 28px 24px;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .scroll-arrow {
        bottom: 24px;
    }

    .orb-1 { width: 250px; height: 250px; }
    .orb-2 { width: 200px; height: 200px; }
    .orb-3 { width: 160px; height: 160px; }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 26px;
    }

    .step-circle {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }

    .step-connector {
        display: none;
    }
}

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .orb,
    .hero-title,
    .scroll-arrow span,
    .header-brand .dot,
    .connector-dot {
        animation: none !important;
    }

    html.landing-page {
        scroll-behavior: auto;
    }
}
