/* ============================================
   Cambridge AI Technologies — Styles
   ============================================ */

:root {
    --bg: #0A0A0A;
    --bg-dark: #050505;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --accent: #F59E0B;
    --accent-light: #FBBF24;
    --accent-glow: rgba(245, 158, 11, 0.15);
    --text: #FFFFFF;
    --text-muted: #999999;
    --text-dim: #666666;
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   Container
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo img {
    height: 56px;
    width: auto;
}

.accent {
    color: var(--accent);
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.nav-cta {
    padding: 10px 24px !important;
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--accent) !important;
    color: var(--bg) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.97);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin: 24px 0;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('hero1.jpg') center center / cover no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.4) 40%, rgba(10, 10, 10, 0.6) 70%, var(--bg) 100%),
        radial-gradient(ellipse at 50% 50%, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
    max-width: 900px;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 10vw, 120px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 36px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--text);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Hero Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s ease forwards;
}

.reveal-1 { animation-delay: 0.2s; }
.reveal-2 { animation-delay: 0.5s; }
.reveal-3 { animation-delay: 0.8s; }
.reveal-4 { animation-delay: 1.1s; }

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 120px 0;
}

.section--dark {
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
}

.section-body {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 20px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-grid--reverse .section-text {
    order: 2;
}

.section-grid--reverse .section-image {
    order: 1;
}

/* Image Placeholders */
.image-placeholder {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.placeholder-graphic {
    width: 70%;
    opacity: 0.6;
}

.placeholder-graphic svg {
    width: 100%;
    height: auto;
}

/* Tech Visual */
.image-placeholder--tech {
    background: transparent;
    border: none;
}

.tech-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: techSpin 20s linear infinite;
}

.tech-ring--1 {
    width: 80%;
    height: 80%;
    opacity: 0.15;
    animation-duration: 25s;
}

.tech-ring--2 {
    width: 55%;
    height: 55%;
    opacity: 0.25;
    animation-duration: 18s;
    animation-direction: reverse;
    border-style: dashed;
}

.tech-ring--3 {
    width: 30%;
    height: 30%;
    opacity: 0.4;
    animation-duration: 12s;
}

.tech-core {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent), 0 0 60px rgba(245, 158, 11, 0.3);
}

@keyframes techSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Stats
   ============================================ */

.stats {
    padding: 60px 0;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    white-space: nowrap;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
}

/* ============================================
   Solutions Grid
   ============================================ */

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 32px;
    transition: all 0.4s ease;
}

.solution-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-4px);
}

.solution-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.solution-icon svg {
    width: 100%;
    height: 100%;
}

.solution-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

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

/* ============================================
   Feature List
   ============================================ */

.feature-list {
    list-style: none;
    margin-top: 32px;
}

.feature-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-marker {
    width: 3px;
    min-height: 100%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-list strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-list p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   Insights
   ============================================ */

.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.insight-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-4px);
}

.insight-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.insight-card--featured .insight-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.insight-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-card--featured .insight-image {
    aspect-ratio: auto;
    min-height: 280px;
}

.insight-placeholder {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.insight-content {
    padding: 28px;
}

.insight-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.insight-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.insight-card--featured h3 {
    font-size: 1.6rem;
}

.insight-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.insight-link {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    transition: color 0.3s ease;
    margin-top: auto;
    display: block;
}

.insight-card:hover .insight-link {
    color: var(--accent-light);
}

/* ============================================
   Team
   ============================================ */

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.team-card {
    text-align: center;
    max-width: 240px;
}

.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.team-card:hover .team-photo {
    border-color: rgba(245, 158, 11, 0.3);
}

.team-initials {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    opacity: 0.7;
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.team-bio {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-top: 10px;
}

/* ============================================
   CTA / Contact
   ============================================ */

.section--cta {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 60%),
        var(--bg);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    outline: none;
}

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

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

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ============================================
   Scroll Animations
   ============================================ */

.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .section-grid,
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .section-grid--reverse {
        direction: ltr;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .insight-card--featured {
        grid-template-columns: 1fr;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 80px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-title {
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .animate-up {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .tech-ring {
        animation: none;
    }

    .scroll-line {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}
