:root {
    --v7-dark: #0F172A;
    --v7-blue: #3B82F6;
    --v7-accent: #6366F1;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Nav */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
    box-sizing: border-box;
}

.logo { height: 24px; filter: invert(1); }

.right-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
    opacity: 0.8;
}

.right-links a:hover { opacity: 1; }

.link-arrow {
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Hero V7 */
.hero-v7 {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, #1e293b 0%, #000000 70%);
    position: relative;
    overflow: hidden;
    padding-top: 60px; /* Added spacing from top */
}

.badge-capsule {
    background: linear-gradient(90deg, var(--v7-blue), var(--v7-accent));
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 32px; /* Increased margin */
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); /* Glowing effect */
}

.hero-text h1 {
    font-size: 96px; /* Larger font */
    line-height: 1.1;
    margin-bottom: 32px;
    font-weight: 800;
    letter-spacing: -3px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Text shadow */
}

.highlight-text {
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Underline effect for highlight */
.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--v7-blue);
    opacity: 0.3;
    z-index: -1;
    transform: skewX(-20deg);
}

.hero-text p {
    font-size: 24px; /* Larger text */
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 80px;
    line-height: 1.6;
}

/* Card Spread Visual */
.card-spread-container {
    position: relative;
    width: 800px;
    height: 400px;
    margin-top: 40px;
}

.spread-card {
    position: absolute;
    width: 200px;
    height: 280px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.spread-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-20px) scale(1.05) !important;
    border-color: var(--v7-blue);
    z-index: 10;
}

.c-icon { font-size: 40px; margin-bottom: 16px; }
.spread-card h4 { margin: 0; font-size: 18px; color: #e2e8f0; }

/* Fan Effect */
.c1 { top: 20px; left: 50px; transform: rotate(-15deg); }
.c2 { top: 40px; left: 180px; transform: rotate(-5deg); }
.c3 { top: 40px; right: 180px; transform: rotate(5deg); }
.c4 { top: 20px; right: 50px; transform: rotate(15deg); }

.center-device {
    position: absolute;
    width: 320px;
    height: 200px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.chat-bubble {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    max-width: 80%;
}

.left { background: #1e293b; align-self: flex-start; }
.right { background: var(--v7-blue); align-self: flex-end; }

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #475569;
    border-radius: 50%;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Marquee */
.marquee-strip {
    background: #111;
    color: #444;
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.marquee-content {
    display: inline-block;
    animation: scroll 20s linear infinite;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-content span { margin: 0 30px; }

@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Features V7 */
.features-v7 {
    padding: 100px 48px;
    background: #000;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    background: #0F172A;
    border: 1px solid #1E293B;
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.grid-item:hover {
    border-color: var(--v7-blue);
    background: #151e32;
}

.wide { grid-column: span 2; }
.tall { grid-row: span 2; background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%); }

.item-content h3 { font-size: 24px; margin: 0 0 8px; }
.item-content p { color: #64748B; margin: 0; font-size: 14px; }

.item-visual {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 150px;
}

.code-blocks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    align-items: flex-end;
}

.block {
    height: 12px;
    background: #334155;
    border-radius: 4px;
    width: 80%;
}
.b1 { width: 60%; background: var(--v7-accent); }
.b2 { width: 40%; }

/* Download Overlay in Hero */
.download-cta-overlay {
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

.dl-btn-v7 {
    background: var(--v7-blue);
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
    transition: 0.2s;
}

.dl-btn-v7:hover {
    background: #2563EB;
    transform: translateY(-2px);
}

.download-cta-overlay p {
    font-size: 10px;
    color: #64748B;
    margin-top: 8px;
}

@keyframes fadeIn { to { opacity: 1; } }

/* Expanded Modules */
.expanded-modules {
    max-width: 1200px;
    margin: 160px auto 0; /* Increased spacing */
}

.module-row {
    display: flex;
    align-items: center;
    gap: 100px; /* Increased gap */
    margin-bottom: 160px; /* Increased spacing */
    position: relative;
}

/* Decorative background glow for modules */
.module-row::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.module-text {
    flex: 1;
    z-index: 1;
}

.module-text h2 {
    font-size: 48px; /* Larger headings */
    margin-bottom: 32px;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.module-text p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 32px;
    line-height: 1.6;
}

.feature-list-v7 {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.f-item {
    background: #1E293B;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    color: #E2E8F0;
    border: 1px solid #334155;
    cursor: pointer;
    transition: 0.2s;
}

.f-item:hover {
    border-color: var(--v7-blue);
    background: #0F172A;
}

.module-visual {
    flex: 1;
    height: 400px;
    background: #1E293B;
    border-radius: 24px;
    border: 1px solid #334155;
    position: relative;
    overflow: hidden;
}

.visual-ai {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}

.visual-ai::before {
    content: 'AI';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    font-weight: 900;
    color: rgba(255,255,255,0.05);
}

.visual-hw {
    background: linear-gradient(135deg, #334155 0%, #1E293B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.visual-hw::after { content: '📹'; }

.visual-global {
    background: radial-gradient(circle at center, #1E40AF 0%, #0F172A 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.visual-global::after { content: '🌏'; }

.link-btn-v7 {
    color: var(--v7-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.link-btn-v7:hover {
    text-decoration: underline;
}

.visual-lc {
    background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}
.visual-lc::after { content: '🧩'; }

.visual-eco {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}
.visual-eco::after { content: '🔗'; }

/* Floating Dock */
.floating-dock {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dock-item {
    color: #94a3b8;
    transition: 0.2s;
    position: relative;
}

.dock-item:hover {
    color: #fff;
    transform: translateY(-4px);
}

.dock-item svg {
    width: 24px;
    height: 24px;
}

.dock-separator {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.1);
}

.dock-item.primary {
    color: var(--v7-blue);
}

/* Tooltip */
.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    margin-bottom: 10px;
}

.tooltip:hover::after {
    opacity: 1;
    margin-bottom: 16px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #0F172A;
    width: 640px;
    margin: 8% auto;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    border: 1px solid #1E293B;
    color: #fff;
}

.close-modal {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 28px;
    cursor: pointer;
    color: #64748B;
}

#modalText {
    color: #94a3b8;
}