/* ============================================================
   The Gamma Point — Sleek, Scientific Design
   ============================================================ */

:root {
    --color-bg: #0a0e17;
    --color-bg-alt: #111827;
    --color-surface: #1a2035;
    --color-surface-hover: #232d47;
    --color-border: #2a3555;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-accent: #60a5fa;
    --color-accent-glow: rgba(96, 165, 250, 0.15);
    --color-accent-secondary: #a78bfa;
    --color-accent-tertiary: #34d399;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    --max-width: 1100px;
    --radius: 8px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent-secondary);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

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

.nav-logo-dot {
    color: var(--color-accent);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-arrow {
    color: var(--color-text-muted);
    font-size: 1rem;
    opacity: 0.5;
}

.nav-product-icon img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: block;
    transition: opacity 0.2s;
}

.nav-product-icon:hover img {
    opacity: 0.8;
}

.nav-separator {
    color: var(--color-border);
    font-size: 1.25rem;
    font-weight: 200;
    opacity: 0.6;
    user-select: none;
}

.nav-product-symbol {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.nav-product-symbol:hover {
    color: var(--color-text);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 64px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(96, 165, 250, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 80% 60%, rgba(167, 139, 250, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 20% 70%, rgba(52, 211, 153, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hero-title {
        white-space: normal;
        word-spacing: 100vw;
        font-size: clamp(3.5rem, 12vw, 5.5rem);
    }
}

.hero-title strong {
    font-weight: 600;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-equation {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--color-accent);
    opacity: 0.6;
    letter-spacing: 0.1em;
}

/* Grid line decoration */
.grid-decoration {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Section styles */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 8px 32px var(--color-accent-glow);
}

.product-card--mystery:hover {
    border-color: var(--color-accent-secondary);
    box-shadow: 0 8px 32px rgba(167, 139, 250, 0.12);
}

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.product-icon--blue {
    background: rgba(96, 165, 250, 0.12);
    color: var(--color-accent);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.product-icon--purple {
    background: rgba(167, 139, 250, 0.12);
    color: var(--color-accent-secondary);
    border: 1px solid rgba(167, 139, 250, 0.25);
}

.product-icon--green {
    background: rgba(52, 211, 153, 0.12);
    color: var(--color-accent-tertiary);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.product-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-link .arrow {
    transition: transform 0.2s;
}

.product-link:hover .arrow {
    transform: translateX(4px);
}

.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.3em 0.8em;
    border-radius: 100px;
    margin-top: 1.5rem;
}

.badge--coming-soon {
    background: rgba(167, 139, 250, 0.12);
    color: var(--color-accent-secondary);
    border: 1px solid rgba(167, 139, 250, 0.25);
}

/* Page content */
.page-wrap {
    position: relative;
    min-height: calc(100vh - 64px);
}

.page-wrap > .hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(96, 165, 250, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 80% 60%, rgba(167, 139, 250, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 20% 70%, rgba(52, 211, 153, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.page-wrap > .grid-decoration {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.page-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    position: relative;
}

.page-hero h1 {
    font-size: clamp(3.5rem, 7vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    position: relative;
}

.page-hero p {
    color: var(--color-text-muted);
    margin-top: 1rem;
    font-size: 1.1rem;
    position: relative;
}

.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.page-content p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: center;
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 3rem 0 1rem;
    letter-spacing: -0.01em;
}

/* Product detail page */
.product-detail {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    text-align: center;
}

.product-detail p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}

.product-cta:hover {
    background: #7db8fc;
    color: var(--color-bg);
    transform: translateY(-2px);
}

/* Mystery section (for under-development products) */
.mystery-visual {
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.mystery-symbol {
    font-size: clamp(1.5rem, 8vw, 4rem);
    opacity: 0.3;
    font-family: var(--font-mono);
    letter-spacing: 0.2em;
    color: var(--color-accent-secondary);
    white-space: nowrap;
}

p.mystery-text {
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 1.5rem;
    font-size: clamp(0.75rem, 2.2vw, 1.05rem);
    white-space: nowrap;
}

/* Contact form */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.form-submit {
    background: var(--color-accent);
    color: var(--color-bg);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.form-submit:hover {
    background: #7db8fc;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.language-selector {
    display: inline-block;
}

.language-selector select {
    background: var(--color-surface);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.4rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.language-selector select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.language-selector select:hover {
    border-color: var(--color-accent);
}

/* Particle dots (pure CSS decoration) */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0;
    animation: float-up 8s infinite;
}

.particle:nth-child(1) { left: 15%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 30%; animation-delay: 1.5s; animation-duration: 9s; }
.particle:nth-child(3) { left: 45%; animation-delay: 3s; animation-duration: 6s; }
.particle:nth-child(4) { left: 60%; animation-delay: 0.5s; animation-duration: 8s; }
.particle:nth-child(5) { left: 75%; animation-delay: 2s; animation-duration: 10s; }
.particle:nth-child(6) { left: 85%; animation-delay: 4s; animation-duration: 7.5s; }
.particle:nth-child(7) { left: 25%; animation-delay: 5s; animation-duration: 8.5s; }
.particle:nth-child(8) { left: 55%; animation-delay: 2.5s; animation-duration: 6.5s; }
.particle:nth-child(9) { left: 70%; animation-delay: 1s; animation-duration: 9.5s; }
.particle:nth-child(10) { left: 40%; animation-delay: 3.5s; animation-duration: 7s; }

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-20vh) scale(1.5);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
