/* ═══════════════════════════════════════════════════════════
   OrionEye v4.0 — Landing Page Styles
   Dark cyber theme with neon-blue accents
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary:    #0a0e17;
    --bg-secondary:  #0d1220;
    --bg-card:       #111827;
    --bg-modal:      #0f1525;
    --neon-blue:     #00d4ff;
    --neon-cyan:     #00ffd5;
    --neon-purple:   #7c3aed;
    --accent-glow:   rgba(0, 212, 255, 0.15);
    --text-primary:  #e8edf5;
    --text-secondary:#8892a4;
    --text-muted:    #4a5568;
    --border-color:  #1e293b;
    --danger:        #ff4d6a;
    --success:       #00e68a;
    --font-display:  'Orbitron', sans-serif;
    --font-body:     'Rajdhani', sans-serif;
    --font-mono:     'Share Tech Mono', monospace;
    --radius:        8px;
    --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--neon-blue); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════
   TOP NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 60px;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: background var(--transition);
}

.topnav--scrolled {
    background: rgba(10, 14, 23, 0.95);
    border-bottom-color: rgba(0, 212, 255, 0.25);
}

.topnav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topnav__logo {
    font-size: 1.4rem;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
    animation: pulse-glow 3s ease-in-out infinite;
}

.topnav__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.topnav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    padding: 4px 8px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 12px;
    transition: all var(--transition);
}

.lang-btn:hover { color: var(--text-secondary); }
.lang-btn.active {
    color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.12);
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
}

.lang-divider {
    color: var(--text-muted);
    font-size: 0.7rem;
    opacity: 0.4;
}

/* Navbar CTA → /piani (Piani & Enterprise) */
.topnav__cta {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--neon-cyan);
    background: rgba(0, 255, 213, 0.07);
    border: 1px solid rgba(0, 255, 213, 0.35);
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all var(--transition);
}
.topnav__cta:hover {
    background: rgba(0, 255, 213, 0.14);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 18px rgba(0, 255, 213, 0.25);
    transform: translateY(-1px);
}
@media (max-width: 560px) {
    .topnav__cta { font-size: 0.62rem; padding: 7px 11px; letter-spacing: 1px; }
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.5) saturate(0.8);
}

/* Dark gradient overlay for readability */
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 45%, transparent 0%, rgba(10, 14, 23, 0.65) 70%),
        linear-gradient(180deg,
            rgba(10, 14, 23, 0.4) 0%,
            rgba(10, 14, 23, 0.2) 30%,
            rgba(10, 14, 23, 0.5) 70%,
            rgba(10, 14, 23, 0.95) 100%
        );
}

/* Animated scanline effect */
.hero__scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 212, 255, 0.015) 2px,
        rgba(0, 212, 255, 0.015) 4px
    );
    pointer-events: none;
    animation: scanline-move 8s linear infinite;
}

@keyframes scanline-move {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* Hero content */
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero__badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.hero__title {
    font-family: var(--font-display);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero__title-line1 {
    display: block;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 0%, var(--neon-blue) 50%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
}

.hero__title-line2 {
    display: block;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--neon-cyan);
    letter-spacing: 6px;
    text-shadow: 0 0 20px rgba(0, 255, 213, 0.4);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* Feature ticker */
.hero__ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.hero__ticker-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neon-blue);
    letter-spacing: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero__ticker-track {
    display: flex;
    gap: 2rem;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.hero__ticker-track span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 3px 12px;
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-radius: 12px;
    flex-shrink: 0;
    transition: color 0.3s;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* CTA buttons */
.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll hint */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    animation: bounce 2s ease-in-out infinite;
}

.hero__scroll-arrow {
    font-size: 1.2rem;
    margin-top: 4px;
    color: var(--neon-blue);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--neon-blue), #0099cc);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #00e6ff, var(--neon-blue));
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn--primary:active { transform: translateY(0); }

.btn--outline {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

.btn--outline:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--neon-blue);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.btn--outline:active { transform: translateY(0); }

.btn--full {
    width: 100%;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT / DESCRIPTION SECTION
   ═══════════════════════════════════════════════════════════ */

.about {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--neon-blue);
    margin-top: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.about__desc {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
    transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--neon-green, #00ff41);
    line-height: 0;
}
.feature-card__icon svg {
    width: 34px;
    height: 34px;
}

.feature-card__title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

.feature-card__desc {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   AUTH MODAL
   ═══════════════════════════════════════════════════════════ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--bg-modal);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease-out;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-backdrop.open .modal {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
    padding: 4px;
}

.modal__close:hover { color: var(--danger); }

.modal__tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal__tab {
    flex: 1;
    background: none;
    border: none;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 10px 0;
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
}

.modal__tab:hover { color: var(--text-secondary); }

.modal__tab.active {
    color: var(--neon-blue);
    border-bottom-color: var(--neon-blue);
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form.hidden { display: none; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.form-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.form-group input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.form-error {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--danger);
    min-height: 1rem;
    letter-spacing: 0.5px;
}

.form-success {
    text-align: center;
    padding: 2rem 1rem;
}

.form-success.hidden { display: none; }

.form-success h3 {
    font-family: var(--font-display);
    color: var(--success);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.footer__logo {
    color: var(--neon-blue);
    font-size: 1rem;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__links a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer__links a:hover { color: var(--neon-blue); }

.footer__copy {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6)); }
    50%      { filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.9)); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .topnav { padding: 0 1rem; }
    .hero__content { padding: 0 1.2rem; }
    .hero__ticker { display: none; }
    .hero__cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }
    .about { padding: 3rem 1.2rem; }
    .about__features { grid-template-columns: 1fr; }
    .modal { margin: 1rem; max-width: 100%; }
    .footer__container { flex-direction: column; text-align: center; }
    .footer__links { justify-content: center; }
}

@media (max-width: 480px) {
    .hero__title-line1 { font-size: 2.2rem; }
    .hero__title-line2 { font-size: 1rem; }
    .hero__subtitle { font-size: 0.9rem; }
    .topnav__name { font-size: 0.75rem; letter-spacing: 2px; }
}
