/* NullPoint Design System - Dark/Cyan Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --color-bg: #0B0C10;
    --color-surface: #1F2833;
    --color-primary: #66FCF1;
    /* Neon Cyan */
    --color-secondary: #45A29E;
    /* Muted Cyan */
    --color-text: #C5C6C7;
    --color-white: #FFFFFF;

    --font-main: 'Outfit', sans-serif;

    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor support */
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--color-primary);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    z-index: 9999;
}

.cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(102, 252, 241, 0.1);
    border-color: var(--color-secondary);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-white);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition-fast);
    position: relative;
    display: inline-block;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header/Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: var(--spacing-md) 0;
    z-index: 1000;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 252, 241, 0.1);
}

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

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
    text-shadow: 0 0 8px rgba(102, 252, 241, 0.6);
}

.logo-container img {
    display: none;
    /* Ensure image is gone if present, though HTML replaced it */
}

/* CSS Logo Construction */
.logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    flex-direction: row;
    /* Text first, then Mark */
}

.logo-mark {
    width: 32px;
    height: 32px;
    border: 3px solid #6C7C88;
    /* Greyish Ring */
    border-radius: 50%;
    position: relative;
    transform: rotate(45deg);
    /* Leaning Right */
    transition: all var(--transition-medium);
}

/* The diagonal cut */
.logo-mark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 4px;
    background-color: #6C7C88;
    /* Same Grey */
    transform: translate(-50%, -50%) rotate(90deg);
    /* Relative cut */
    z-index: 1;
}

/* The glowing dot */
.logo-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #00E5FF;
    /* Bright Blue */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00E5FF, 0 0 20px #00E5FF;
    z-index: 2;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.accent-text {
    color: #00E5FF;
    /* Blue O */
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.logo-link:hover .logo-mark {
    border-color: #8D9DA9;
    /* Lighter Grey on hover */
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.logo-link:hover .logo-mark::before {
    background-color: #8D9DA9;
}

.logo-link:hover .logo-mark::after {
    box-shadow: 0 0 15px #00E5FF, 0 0 30px #00E5FF;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Hero Section */
.hero {
    height: 100vh;
    text-align: center;
    position: relative;
    padding-top: 60px;
    /* Offset for fixed header */
}

.hero-logo-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto var(--spacing-lg);
    border-radius: 50%;
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.3);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

.tagline {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 1px;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.1);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.6);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: rgba(69, 162, 158, 0.1);
    color: var(--color-white);
}

/* Services Page Styles */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: rgba(31, 40, 51, 0.5);
    border: 1px solid rgba(102, 252, 241, 0.1);
    padding: var(--spacing-lg);
    border-radius: 8px;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(102, 252, 241, 0.15);
    background: rgba(31, 40, 51, 0.8);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--color-text);
    font-size: 0.95rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(11, 12, 16, 0.9);
}

footer p {
    color: var(--color-secondary);
    font-size: 0.9rem;
}


/* Contact Page Styles */
.contact-section {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(31, 40, 51, 0.5);
    padding: var(--spacing-lg);
    border-radius: 8px;
    border: 1px solid rgba(102, 252, 241, 0.1);
    margin-top: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(11, 12, 16, 0.8);
    border: 1px solid var(--color-secondary);
    border-radius: 4px;
    color: var(--color-white);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .cursor {
        display: none;
        /* Hide custom cursor on touch devices */
    }

    .nav-links {
        display: none;
        /* TODO: Mobile Menu */
    }
}

/* Tool UI Improvements */
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.label-row label {
    margin-bottom: 0;
    /* Override default */
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    /* cursor: pointer; removed */
}

.icon-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(102, 252, 241, 0.1);
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(11, 12, 16, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(102, 252, 241, 0.1);
}

.form-group .checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    /* cursor: pointer; removed */
    font-size: 0.9rem;
    color: var(--color-text);
    user-select: none;
    margin-bottom: 0;
    /* Reset margin from specific label rule */
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    /* cursor: pointer; removed */
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    min-width: 18px;
    background-color: transparent;
    border: 1px solid var(--color-secondary);
    border-radius: 3px;
    position: relative;
    transition: all 0.2s;
    display: block;
    flex-shrink: 0;
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(102, 252, 241, 0.2);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid var(--color-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Stats Container */
.stats-container {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(69, 162, 158, 0.1);
    border-radius: 4px;
    border-left: 3px solid var(--color-primary);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 0.9rem;
    color: var(--color-white);
}

.stat-item b {
    color: var(--color-primary);
    margin-right: 4px;
}

.btn-toggle {
    background: none;
    border: none;
    color: var(--color-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
}

.btn-toggle:hover {
    color: var(--color-primary);
}

.btn-toggle i {
    transition: transform 0.3s ease;
}

.btn-toggle.active i {
    transform: rotate(180deg);
}

/* LLM Launch Pad */
.llm-launch-pad {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.launch-label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.launch-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-llm {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    border: 1px solid rgba(102, 252, 241, 0.2);
    border-radius: 4px;
    background: rgba(31, 40, 51, 0.6);
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-llm:hover {
    background: rgba(102, 252, 241, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Dropdown */
.dropdown {
    position: relative;
    flex: 1;
    min-width: 120px;
}

.dropdown-toggle {
    width: 100%;
}

.dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background: #1F2833;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    z-index: 100;
    margin-bottom: 5px;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(102, 252, 241, 0.1);
    color: var(--color-primary);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* Custom Tooltip */
[data-tooltip] {
    position: relative;
}

/* Tooltip Text */
[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    /* more clearance */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    /* Start slightly down for anim */
    background: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(8px);
    /* Glass effect */
    color: var(--color-white);
    /* White text for better read */
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(102, 252, 241, 0.3);
    font-size: 0.8rem;
    line-height: 1.4;
    /* Better spacing */
    white-space: normal;
    /* Allow wrapping */
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bouncy pop */
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    width: max-content;
    max-width: 320px;
    /* Widen for list items */
    text-align: center;
}

/* Tooltip Arrow */
[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    /* Just below text */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-top-color: rgba(102, 252, 241, 0.3);
    /* Match border */
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    /* Pop up to final pos */
}

/* Specific highlight for constraints inside tooltip if needed */
[data-tooltip]::before b {
    color: var(--color-primary);
}