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

:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --gradient-main: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --spotlight-color: rgba(255, 255, 255, 0.15);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

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

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Navigation */
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 32px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
}

/* Hero Section (V2) */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero Background Glow */
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: pulse-glow 8s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translateX(-50%) scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Badge */
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--accent-blue);
    margin-bottom: 24px;
    font-weight: 500;
}

/* Typography Overrides */
.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    line-height: 1.6;
}

/* Code Abstract Visual */
.code-abstract {
    margin-bottom: 40px;
    padding: 16px 24px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.window-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
}

.window-controls span:nth-child(1) {
    background-color: #ff5f56;
}

.window-controls span:nth-child(2) {
    background-color: #ffbd2e;
}

.window-controls span:nth-child(3) {
    background-color: #27c93f;
}

.code-abstract code {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #a1a1aa;
    white-space: pre;
    display: block;
}

.c-k {
    color: #c678dd;
}

/* Keyword */
.c-v {
    color: #e5c07b;
}

/* Variable */
.c-f {
    color: #61afef;
}

/* Function */
.c-s {
    color: #98c379;
}

/* String */
.c-c {
    color: #5c6370;
    font-style: italic;
}

/* Comment */

/* Buttons */
.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 110px !important;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .code-abstract {
        display: block;
        width: 100%;
        margin-bottom: 30px;
        padding: 15px;
        overflow-x: auto;
    }

    .code-abstract code {
        font-size: 0.7rem;
        white-space: pre;
        display: block;
    }

    /* Hide code on mobile to save space */
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Base Nav Styles (Desktop) */
.nav-menu {
    display: flex;
    align-items: center;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        /* Below header */
        gap: 20px;
        flex-direction: column;
        background-color: rgba(5, 5, 5, 0.98);
        /* Increased opacity */
        backdrop-filter: blur(15px);
        width: 100%;
        height: calc(100vh - 70px);
        /* Full height */
        text-align: center;
        transition: 0.3s ease-in-out;
        border-bottom: 1px solid var(--card-border);
        padding: 40px 20px;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        margin: 10px 0;
        display: block;
        font-size: 1.5rem;
        /* Larger font for mobile */
        width: 100%;
        padding: 10px;
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Offset fixed header */
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulse-glow 10s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 16px;
}

/* What We Do */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.problem-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 24px;
    transition: 0.3s;
}

.problem-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Ecosystem */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.eco-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    /* Reveal Effect Base */
    --mouse-x: -1000px;
    --mouse-y: -1000px;
    background-color: rgba(255, 255, 255, 0.01);
}

.eco-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            var(--spotlight-color),
            transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
}

.eco-card:hover::before {
    opacity: 1;
}

.eco-card p {
    min-height: 80px;
    /* Forces alignment of the lists below */
}

/* Original top highlight */
.eco-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.4s ease;
    z-index: 2;
}


.eco-card:hover::after {
    transform: scaleX(1);
}

.card-header-with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-icon {
    width: 24px;
    height: 24px;
    opacity: 0.9;
}

.product-url {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    display: block;
}

.feature-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    padding-left: 28px;
    position: relative;
    color: #e4e4e7;
    /* Lighter than text-secondary */
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Why ThinkPoint */
.features-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--card-border);
    border-radius: 16px;
}

/* Architecture */
.architecture-block {
    background: #0f0f0f;
    /* V2 color */
    border: 1px solid var(--card-border);
    border-radius: 32px;
    /* V2 radius */
    padding: 80px;
    /* V2 padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

/* Schematic grid background effect imported from V2 */
.architecture-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
}

.arch-philosophy {
    display: flex;
    /* V2 Flexbox */
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 48px;
    z-index: 2;
    position: relative;
}

.arch-item {
    background: #1c1c1c;
    /* V2 Dark BG */
    border: 1px solid #333;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--accent-blue);
    /* Using v1 var but v2 layout */
    font-family: 'Inter', monospace;
}

/* About & Footer */
.about-text {
    max-width: 800px;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-cta {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(0deg, #0a0a0a 0%, #050505 100%);
}

footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 0;
    text-align: center;
    color: #444;
    font-size: 0.8rem;
}

/* Cookie Banner */
/* Footer (V2 Polish) */
footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--card-border);
    background: #020202;
    text-align: center;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 600px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-content a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Shared Intelligence Engine Design */
.engine-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.engine-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 6px;
    font-family: 'Inter', monospace;
    /* Tech feel */
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.engine-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Subtle underlying mesh/tech visual */
.engine-item::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-purple);
}

.engine-item:nth-child(2)::before {
    background-color: var(--accent-cyan);
    box-shadow: 0 0 5px var(--accent-cyan);
}

.engine-item:nth-child(3)::before {
    background-color: var(--accent-blue);
    box-shadow: 0 0 5px var(--accent-blue);
}

/* Industry Tags */
.industry-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.industry-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    /* Lighter background on hover */
    border-color: var(--accent-blue);
    /* Blue border on hover */
    color: white;
    /* Brighter text on hover */
    transform: translateY(-2px);
    /* Slight lift */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Subtle shadow */
}

/* Secure Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.google-signin-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--accent-cyan);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.2);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: white;
}


.status-message {
    font-family: monospace;
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

/* Form Styles */
.hidden {
    display: none;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.success-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 20px;
    animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}