:root {
    --primary-bg: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary-blue: #2563eb;
    --dark-blue: #1e3a8a;
    --accent-cyan: #06b6d4;

    --gradient-text: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-btn: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animation */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.globe-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #bfdbfe 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.globe-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #e0f2fe 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -50px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: slideUp 0.8s ease-out forwards;
}

.badge {
    background: #eff6ff;
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* Input Form */
.input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 480px;
}

.input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--text-main);
}

.cta-button {
    background: var(--gradient-btn);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.cta-button.small {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-left: 1rem;
}

/* Offer Badge */
.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    /* Amber/Gold tint */
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
    box-shadow: 0 4px 15px -3px rgba(251, 191, 36, 0.15);
    animation: fadeIn 1s ease-out 0.5s backwards;
}

.offer-icon {
    font-size: 1rem;
}

.highlight-gold {
    color: #b45309;
    /* Darker amber/gold for readability */
    font-weight: 700;
}

/* Info Card */
.info-card {
    background: white;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-width: 480px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e2e8f0;
}

.info-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 400;
}

.info-body {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.glass-card {
    width: 380px;
    height: 480px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    position: relative;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: floatCard 6s ease-in-out infinite;
}

.glass-card:hover {
    transform: rotateY(0) rotateX(0);
}

.card-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e2e8f0;
}

.skeleton-lines .line {
    height: 10px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.line.short {
    width: 100px;
}

.line.long {
    width: 160px;
}

.card-body {
    text-align: center;
    padding: 1rem 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid #eff6ff;
    border-top-color: var(--primary-blue);
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.score-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stats-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.stat-item {
    width: 40px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
}

.stat-item:first-child {
    background: var(--primary-blue);
    width: 60px;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: floatBadge 4s ease-in-out infinite;
}

.badge-1 {
    top: 40px;
    right: -40px;
}

.badge-2 {
    bottom: 60px;
    left: -30px;
    animation-delay: 1s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatCard {

    0%,
    100% {
        transform: rotateY(-10deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: rotateY(-10deg) rotateX(5deg) translateY(-15px);
    }
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Features */
.features-section {
    padding: 4rem 5%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Timeline Section */
.timeline-section {
    padding: 6rem 5%;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-title {
    text-align: center;
    margin-bottom: 5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Vertical Central Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(37, 99, 235, 0.3) 15%,
            rgba(37, 99, 235, 0.3) 85%,
            transparent 100%);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.timeline-step.reverse {
    flex-direction: row-reverse;
}

.step-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-circle {
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.3s ease;
}

.marker-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.4);
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}

/* Content Panel */
.step-content {
    width: 45%;
    background: #ffffff;
    /* Solid white for better contrast */
    border: 1px solid rgba(226, 232, 240, 0.8);
    /* Clearly defined border */
    padding: 2rem;
    border-radius: 1.5rem;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    /* Stronger shadow */
}

.timeline-step:nth-child(odd) .step-content {
    margin-right: auto;
}

.timeline-step:nth-child(even) .step-content {
    margin-left: auto;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
}

.step-content:hover+.step-marker .marker-circle {
    transform: scale(1.5);
}

.step-number {
    position: absolute;
    top: -1.5rem;
    font-family: monospace;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(30, 58, 138, 0.4);
    /* Dark Navy Blue with higher opacity */
    left: 1rem;
    line-height: 1;
    z-index: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Skipped Step Styling */
.skipped-step h3,
.skipped-step p {
    text-decoration: line-through;
    opacity: 0.5;
}

.skipped-step .step-visual {
    opacity: 0.5;
    filter: grayscale(0.8);
}

.free-stamp {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(34, 197, 94, 0.9);
    /* Green success color */
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 8px;
    border: 3px double white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
    white-space: nowrap;
}

/* Byteboarding Visuals */
.step-visual {
    background: #f1f5f9;
    padding: 0;
    border-radius: 12px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
}

/* Visual 1: Input */
.byte-input {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    color: #64748b;
    border: 1px solid #e2e8f0;
    font-family: monospace;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Visual 2: Card */
.byte-card {
    width: 140px;
    height: 80px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.byte-chip {
    width: 20px;
    height: 14px;
    background: #fbbf24;
    border-radius: 4px;
    position: absolute;
    top: 15px;
    left: 15px;
}

.byte-strip {
    width: 40px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: absolute;
    bottom: 15px;
    left: 15px;
}

/* Visual 3: Doc */
.byte-doc {
    width: 80px;
    height: 100px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px 4px 0 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 8px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.byte-line {
    height: 6px;
    background: #e2e8f0;
    border-radius: 2px;
}

.width-50 {
    width: 50%;
}

.width-80 {
    width: 80%;
}

.width-60 {
    width: 60%;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 968px) {
    .navbar {
        padding: 1rem;
    }

    .hero-section {
        flex-direction: column;
        padding: 6rem 1.5rem 2rem;
        /* Reduced side padding */
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        margin: 0 auto;
        width: 100%;
    }

    .input-group {
        margin: 0 auto 1rem;
        width: 100%;
        flex-direction: column;
    }

    .input-group input {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
        /* Smaller font */
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-visual {
        display: none;
        /* Hide complex visual on mobile */
    }

    .info-card {
        margin: 0 auto 2rem;
    }

    .offer-badge {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
        padding: 0.75rem;
    }

    .features-section {
        grid-template-columns: 1fr;
    }
}

/* Timeline Mobile */
@media (max-width: 768px) {
    .timeline-section {
        padding: 4rem 1.5rem;
    }

    .timeline-line {
        left: 20px;
        transform: translateX(0);
    }

    .timeline-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-left: 40px;
        margin-bottom: 3rem;
    }

    .timeline-step.reverse {
        flex-direction: column;
    }

    .step-marker {
        left: 20px;
        transform: translateX(-50%);
        top: 0;
        /* Aligned to top */
    }

    .step-content {
        width: 100%;
        margin: 0 !important;
        padding: 1.5rem;
    }

    .step-number {
        font-size: 3rem;
        top: -1rem;
    }
}

/* Small Mobile Override */
@media (max-width: 400px) {
    .hero-title {
        font-size: 2rem;
    }

    .navbar .nav-links {
        display: none;
        /* Hide links on very small screens to save space */
    }
}