/* ==========================================================================
   RoyalBit - Stealth Mode Website Styles
   ========================================================================== */

/* CSS Variables for theming */
:root {
    --color-primary: #FF6B35;        /* Orange from logo */
    --color-secondary: #004E89;      /* Dark blue from logo */
    --color-accent-1: #00A8E8;       /* Light blue */
    --color-accent-2: #1BC98E;       /* Green */
    --color-accent-3: #E63946;       /* Rose/Pink */
    --color-bg-dark: #0A1628;        /* Deep navy background */
    --color-bg-darker: #050B14;      /* Even darker for contrast */
    --color-text-primary: #FFFFFF;
    --color-text-muted: #A0AEC0;
    --color-text-highlight: #FFD700; /* Gold for emphasis */

    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;

    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ==========================================================================
   Language Toggle
   ========================================================================== */

.lang-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.lang-toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.lang-toggle-btn:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-toggle-btn.active {
    color: var(--color-primary);
    background: rgba(255, 107, 53, 0.15);
}

.lang-separator {
    color: var(--color-text-muted);
    opacity: 0.3;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .lang-toggle {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .lang-toggle-btn {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ==========================================================================
   Animated Background
   ========================================================================== */

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 50%, #0D1B2A 100%);
}

/* Geometric Shapes */
.shape {
    position: absolute;
    opacity: 0.08;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(60px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--color-secondary);
    top: 30%;
    right: -150px;
    animation-delay: 3s;
    animation-duration: 30s;
}

.shape-3 {
    width: 600px;
    height: 600px;
    background: var(--color-accent-1);
    bottom: -200px;
    left: 20%;
    animation-delay: 5s;
    animation-duration: 35s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: var(--color-accent-2);
    bottom: 10%;
    right: 10%;
    animation-delay: 7s;
    animation-duration: 28s;
}

/* Network Nodes */
.network-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.3;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    animation: pulse 3s infinite ease-in-out;
}

.node-1 { top: 10%; left: 15%; animation-delay: 0s; }
.node-2 { top: 25%; left: 75%; animation-delay: 0.5s; background: var(--color-accent-1); }
.node-3 { top: 45%; left: 25%; animation-delay: 1s; background: var(--color-accent-2); }
.node-4 { top: 60%; left: 80%; animation-delay: 1.5s; background: var(--color-accent-3); }
.node-5 { top: 75%; left: 40%; animation-delay: 2s; background: var(--color-secondary); }
.node-6 { top: 35%; left: 50%; animation-delay: 2.5s; background: var(--color-primary); }
.node-7 { top: 20%; right: 20%; animation-delay: 3s; background: var(--color-accent-1); }
.node-8 { bottom: 20%; left: 60%; animation-delay: 3.5s; background: var(--color-accent-2); }
.node-9 { top: 50%; right: 15%; animation-delay: 4s; background: var(--color-accent-3); }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -50px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, -80px) rotate(180deg);
    }
    75% {
        transform: translate(50px, -30px) rotate(270deg);
    }
}

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

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    position: relative;
}

.hero {
    text-align: center;
}

/* ==========================================================================
   Logo
   ========================================================================== */

.logo {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.logo img {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 10px 40px rgba(255, 107, 53, 0.3));
    transition: var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.05) rotate(5deg);
}

/* ==========================================================================
   Typography
   ========================================================================== */

.tagline {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.value-prop {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.highlight {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2em;
}

.highlight-muted {
    color: var(--color-text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}

.relaunch-badge {
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 50px;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

/* ==========================================================================
   Countdown Timer
   ========================================================================== */

.countdown-container {
    margin: 4rem 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.countdown-label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.countdown-number {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--color-primary);
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.countdown-unit {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.countdown-separator {
    font-size: 3rem;
    color: var(--color-text-muted);
    opacity: 0.3;
    font-weight: 300;
}

/* ==========================================================================
   Location & Social Proof
   ========================================================================== */

.location {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin: 2rem 0;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.social-proof {
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--color-text-muted);
    animation: fadeInUp 1s ease-out 1.2s both;
}

.checkmark {
    color: var(--color-accent-2);
    font-size: 1.2em;
    margin-right: 0.5rem;
}

#waitlist-count {
    color: var(--color-primary);
    font-weight: 700;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.cta-button,
.cta-button-secondary {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-bounce);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 1s both;
}

.cta-button {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-3) 100%);
    color: var(--color-text-primary);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 60px rgba(255, 107, 53, 0.6);
}

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

.cta-button-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   Scroll Indicator
   ========================================================================== */

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1s ease-out 1.5s both;
}

.scroll-indicator span {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    font-size: 2rem;
    color: var(--color-primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==========================================================================
   Story Section
   ========================================================================== */

.story {
    min-height: auto;
    padding: 6rem 0;
}

.story-text {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    text-align: center;
    color: var(--color-text-muted);
    margin: 2rem auto;
    max-width: 800px;
}

.pain-points {
    max-width: 700px;
    margin: 4rem auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    backdrop-filter: blur(10px);
}

.pain-points h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.pain-points ul {
    list-style: none;
}

.pain-points li {
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    position: relative;
    padding-left: 2rem;
}

.pain-points li:last-child {
    border-bottom: none;
}

.pain-points li:before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--color-accent-3);
    font-weight: bold;
}

.solution-text {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    text-align: center;
    color: var(--color-text-primary);
    margin: 3rem 0;
    font-weight: 600;
}

/* ==========================================================================
   Waitlist Section (Instagram CTA)
   ========================================================================== */

.waitlist {
    min-height: auto;
    padding: 6rem 0;
}

.waitlist-subtext {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.instagram-cta {
    max-width: 500px;
    margin: 3rem auto;
    text-align: center;
}

.instagram-message {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.instagram-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary);
    transition: var(--transition-smooth);
}

.instagram-link:hover {
    color: var(--color-text-primary);
    border-bottom-color: var(--color-text-primary);
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.3rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%);
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-bounce);
    box-shadow: 0 10px 30px rgba(131, 58, 180, 0.4);
}

.instagram-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(131, 58, 180, 0.6);
}

.instagram-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
    min-height: auto;
    padding: 6rem 0;
    text-align: center;
}

.about-content {
    max-width: 700px;
    margin: 3rem auto;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.about-content p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.company-history {
    font-size: 1rem !important;
    color: var(--color-text-primary) !important;
    font-weight: 600 !important;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.launch-info {
    font-size: 1.1rem !important;
    color: var(--color-primary) !important;
    font-weight: 600 !important;
    padding: 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    margin-top: 2rem !important;
}

.contact {
    margin: 3rem 0;
}

.contact p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.contact a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
}

.contact a:hover {
    border-bottom-color: var(--color-primary);
}

.contact-info {
    margin: 3rem 0;
    text-align: center;
}

.instagram-handle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.instagram-handle a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary);
    transition: var(--transition-smooth);
}

.instagram-handle a:hover {
    color: var(--color-text-primary);
    border-bottom-color: var(--color-text-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--color-bg-darker);
}

.footer p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    section {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .logo img {
        width: 150px;
        height: 150px;
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-item {
        min-width: 80px;
    }

    .countdown-separator {
        font-size: 2rem;
    }

    .pain-points {
        padding: 2rem 1.5rem;
    }

    .pain-points li {
        font-size: 1rem;
    }

    .scroll-indicator {
        bottom: 2rem;
    }

    /* Hide background shapes on mobile for performance */
    .shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .countdown-item {
        min-width: 70px;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }

    .social-links {
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .background-animation,
    .scroll-indicator,
    .cta-button,
    .waitlist-form {
        display: none;
    }
}
