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

:root {
    --primary: #2563eb;
    --black: #000000;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-600: #4b5563;

    /* Bold Typographic Scale */
    --h1: clamp(3.5rem, 9vw, 6.5rem);
    --h2: clamp(2.5rem, 7vw, 4.5rem);
    --h3: clamp(1.8rem, 5vw, 3rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* THE FIX: Keeps padding inside the width */
}

html,
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.5;
    overflow-x: hidden;
    /* THE FIX: Prevents right-side overflow */
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    /* Perfectly equal side margins */
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    font-size: 1rem;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 80px;
    text-align: center;
}

h1 {
    font-size: var(--h1);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -4px;
    margin-bottom: 32px;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--gray-600);
    max-width: 850px;
    margin: 0 auto 48px;
    font-weight: 500;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.25rem;
    border: none;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- Grid & Cards --- */
.section {
    padding: 100px 0;
}

.grid {
    display: grid;
    /* This prevents the cards from being wider than the mobile screen */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 32px;
}

.card {
    padding: 48px;
    border-radius: 32px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: 0.4s;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.04);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--gray-50);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 64px;
    margin-bottom: 32px;
    /* Ensure consistent emoji sizing */
    text-align: center;
}

/* Ensure emojis inside icon-box are consistently sized */
.icon-box::before {
    display: inline-block;
    width: 100%;
    height: 100%;
}

/* Icon class for consistent sizing with icon-box */
.icon {
    width: 64px;
    height: 64px;
    background: var(--gray-50);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 64px;
    margin-bottom: 32px;
    text-align: center;
}

/* Highlighted card with special styling */
.highlighted-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border: 2px solid var(--primary);
    position: relative;
}

.highlighted-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), #3b82f6, #60a5fa);
    border-radius: 32px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.highlighted-card:hover::before {
    opacity: 0.1;
}

.highlighted-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.15);
}

.card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.card p {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 1.1rem;
}

/* --- Split Section (AI & Code) --- */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.code-window {
    background: #0d0d0d;
    border-radius: 24px;
    padding: 32px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.code-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    background: #333;
}

.code-content {
    margin-top: 24px;
    font-family: 'Courier New', monospace;
    color: #6366f1;
    font-weight: 600;
    word-break: break-all;
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero {
        padding-top: 120px;
    }

    .card {
        padding: 32px;
    }

    /* Slightly less padding for small screens */

    h2 {
        font-size: 2.5rem;
    }
}

/* Fix for Safari Mobile spacing */
.mobile-toggle {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
}

/* --- AI Co-Pilot Section --- */
.ai-copilot-section {
    padding: 80px 40px;
    background: var(--black);
    color: var(--white);
    border-radius: 48px;
    margin: 40px 16px;
}

.section-title-xl {
    font-size: var(--h2);
    font-weight: 900;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -2px;
}

.grid-three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 32px;
}

.dark-card {
    padding: 32px;
    border: 1px solid #1f1f1f;
    border-radius: 16px;
    background: #111111;
    transition: transform 0.3s, border-color 0.3s;
}

.dark-card:hover {
    transform: translateY(-4px);
    border-color: #333333;
}

.dark-card-title {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.dark-card-text {
    font-size: 1.25rem;
    color: #9ca3af;
    font-weight: 700;
    line-height: 1.6;
}

/* --- Web3 Suite Features Section --- */
.feature-card {
    padding: 40px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 8px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.feature-card.border-blue {
    border-left-color: #2563eb;
}

.feature-card.border-red {
    border-left-color: #ef4444;
}

.feature-card.border-green {
    border-left-color: #22c55e;
}

.feature-card-title {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.feature-card-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-600);
    line-height: 1.6;
}

.feature-card-text.italic {
    font-style: italic;
}

/* --- Drag and Drop UI Builder Section --- */
.bg-white {
    background: var(--white);
}

.section-title-lg {
    font-size: var(--h3);
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 24px;
    line-height: 1.5;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.checkmark {
    color: #22c55e;
    margin-right: 12px;
    font-size: 1.5rem;
}

.mockup-placeholder {
    background: var(--gray-100);
    min-height: 384px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px dashed #d1d5db;
    overflow: hidden;
    position: relative;
}

/* Remove border when image is present */
.mockup-placeholder:has(.mockup-image) {
    border: none;
    background: transparent;
}

/* Responsive image styling */
.mockup-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 24px;
}

.mockup-text {
    color: #9ca3af;
    font-weight: 700;
    font-size: 1.25rem;
    font-style: italic;
}

/* --- Built-in Indexing Section --- */
.bg-light {
    background: #f9fafb;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 64px;
}

.white-card {
    background: var(--white);
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.white-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.white-card-title {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.white-card-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    line-height: 1.5;
}

/* --- Final CTA Section --- */
.cta-section {
    padding: 96px 40px;
    text-align: center;
}

.cta-content {
    max-width: 1200px;
}

.cta-title {
    font-size: var(--h2);
    font-weight: 900;
    margin-bottom: 40px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.cta-description {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-600);
    margin-bottom: 48px;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: var(--primary);
    padding: 24px 64px;
    border-radius: 16px;
    font-size: 1.875rem;
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.3);
}

.footer-text {
    margin-top: 80px;
    color: #9ca3af;
    font-weight: 700;
    font-size: 1.125rem;
}

/* --- Mobile Responsive Adjustments --- */
@media (max-width: 768px) {
    .ai-copilot-section {
        padding: 60px 24px;
        border-radius: 32px;
        margin: 40px 8px;
    }

    .section-title-xl {
        font-size: 2.5rem;
        margin-bottom: 32px;
    }

    .dark-card-title,
    .feature-card-title {
        font-size: 1.5rem;
    }

    .dark-card-text,
    .feature-card-text {
        font-size: 1rem;
    }

    .section-description {
        font-size: 1.125rem;
    }

    .checklist-item {
        font-size: 1rem;
    }

    .mockup-placeholder {
        min-height: 256px;
    }

    .mockup-image {
        border-radius: 16px;
    }

    .mockup-text {
        font-size: 1rem;
    }

    .white-card-title {
        font-size: 1.75rem;
    }

    .white-card-text {
        font-size: 1.125rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .cta-description {
        font-size: 1.125rem;
    }

    .btn-cta {
        padding: 20px 48px;
        font-size: 1.5rem;
    }

    .grid-two {
        gap: 32px;
    }
}

/* ============================================================================
   COMING SOON PAGE STYLES
   ============================================================================
   These styles are specifically for the coming-soon.html page.
   They create a premium dark-themed landing page with animated background,
   countdown timer, and glassmorphism effects.
   ============================================================================ */

/* --- Coming Soon Page Container --- */
/* Main container that holds all coming soon page content */
.coming-soon-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Allow it to grow if content is taller */
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    /* More padding for mobile */
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--white);
    overflow-x: hidden;
    /* Prevent horizontal scroll only */
}

/* --- Content Container --- */
/* Centers and styles the main content (logo, title, countdown, button) */
.coming-soon-container .content {
    position: relative;
    z-index: 10;
    /* Ensures content appears above background animation */
    text-align: center;
    max-width: 900px;
    width: 100%;
}

/* --- Logo Styling --- */
/* Animated logo at the top of the coming soon page */
.coming-soon-container .logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
    /* Slides down on page load */
}

/* --- Title Styling --- */
/* Large "COMING SOON" text with gradient effect */
.coming-soon-container .title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    /* Responsive sizing */
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -4px;
    margin-bottom: 32px;
    /* Gradient text effect: white to blue */
    background: linear-gradient(135deg, var(--white) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s both;
    /* Slides up with delay */
}

/* --- Subtitle Styling --- */
/* Description text below the title */
.coming-soon-container .subtitle {
    font-size: clamp(1.125rem, 3vw, 1.75rem);
    color: #9ca3af;
    /* Light gray */
    max-width: 700px;
    margin: 0 auto 80px;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.4s both;
    /* Slides up with longer delay */
}

/* --- Countdown Timer Container --- */
/* Grid layout for countdown timer boxes */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 equal columns */
    gap: 24px;
    margin-bottom: 80px;
    animation: fadeInUp 1s ease-out 0.6s both;
    /* Slides up with even longer delay */
}

/* --- Individual Countdown Box --- */
/* Each box showing days/hours/minutes/seconds */
.countdown-item {
    background: rgba(255, 255, 255, 0.05);
    /* Semi-transparent white */
    backdrop-filter: blur(10px);
    /* Glassmorphism blur effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px 24px;
    transition: all 0.3s ease;
}

/* Hover effect for countdown boxes */
.countdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    /* Slightly more opaque */
    border-color: var(--primary);
    /* Blue border */
    transform: translateY(-4px);
    /* Lifts up slightly */
}

/* --- Countdown Number --- */
/* The large number in each countdown box */
.countdown-value {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--primary);
    /* Blue color */
    line-height: 1;
    margin-bottom: 12px;
}

/* --- Countdown Label --- */
/* The text label (Days, Hours, Minutes, Seconds) */
.countdown-label {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    /* Light gray */
    letter-spacing: 1px;
}

/* --- Back to Home Button --- */
/* Button that navigates back to the main page */
.back-button {
    display: inline-block;
    background: var(--white);
    color: var(--black);
    padding: 18px 40px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fadeInUp 1s ease-out 0.8s both;
    /* Slides up last */
}

/* Hover effect for back button */
.back-button:hover {
    transform: translateY(-4px);
    /* Lifts up */
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
    background: var(--primary);
    /* Changes to blue */
    color: var(--white);
    /* Text changes to white */
}

/* --- Animated Background Container --- */
/* Container for floating animated circles */
.background-animation {
    position: fixed;
    /* Fixed so it stays in place while scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    /* Behind the content */
    pointer-events: none;
    /* Allows clicking through to elements below if needed */
}

/* --- Animated Circle Base Style --- */
/* Floating gradient circles in the background */
.circle {
    position: absolute;
    border-radius: 50%;
    /* Makes it circular */
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    /* Semi-transparent */
    animation: float 20s infinite ease-in-out;
    /* Continuous floating animation */
}

/* First circle - top left */
.circle-1 {
    width: 500px;
    height: 500px;
    top: -250px;
    /* Partially off-screen */
    left: -250px;
    animation-delay: 0s;
    /* Starts immediately */
}

/* Second circle - bottom right */
.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    /* Partially off-screen */
    right: -200px;
    animation-delay: 5s;
    /* Starts after 5 seconds */
}

/* Third circle - center */
.circle-3 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centers the circle */
    animation-delay: 10s;
    /* Starts after 10 seconds */
}

/* --- ANIMATIONS FOR COMING SOON PAGE --- */

/* Fade in from top animation (for logo) */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
        /* Starts above */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        /* Ends in place */
    }
}

/* Fade in from bottom animation (for title, subtitle, countdown, button) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        /* Starts below */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        /* Ends in place */
    }
}

/* Floating animation for background circles */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        /* Starting position */
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
        /* Moves up-right and grows */
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
        /* Moves down-left and shrinks */
    }
}

/* --- Mobile Responsive for Coming Soon Page --- */
@media (max-width: 768px) {

    /* Countdown: 2x2 grid instead of 4 columns */
    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 60px;
    }

    /* Smaller countdown box padding */
    .countdown-item {
        padding: 24px 16px;
    }

    /* Smaller logo */
    .coming-soon-container .logo {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    /* Less spacing below subtitle */
    .coming-soon-container .subtitle {
        margin-bottom: 60px;
    }

    /* Smaller back button */
    .back-button {
        padding: 16px 32px;
        font-size: 1rem;
    }

    /* Smaller background circles */
    .circle-1,
    .circle-2,
    .circle-3 {
        width: 300px;
        height: 300px;
    }
}