/* --- Synapse Platform Landing Page - v2.0.0 --- */

:root {
    --bg-color: #0d1117;
    --surface-color: rgba(22, 27, 34, 0.6);
    --surface-solid: #161b22;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --primary: #58a6ff;
    --accent: #bc8cff;
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --border: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* --- Typography & Gradients --- */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
}

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

.btn-outline:hover {
    background: rgba(88, 166, 255, 0.1);
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 15px 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    gap: 32px;
}

.desktop-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
}

.desktop-nav a:hover {
    color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    padding: 180px 5% 100px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.15) 0%, rgba(13, 17, 23, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #fff;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-inline: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- General Layout --- */
.section-container {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-inline: auto;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--border);
    padding: 40px 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(88, 166, 255, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #fff;
}

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

/* --- AI Highlight Section --- */
.ai-section {
    background: radial-gradient(circle at 100% 50%, rgba(188, 140, 255, 0.08) 0%, transparent 50%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ai-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-color);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

/* --- Tech Stack Section --- */
.stack-section {
    padding: 80px 5%;
    background: var(--surface-solid);
}

.stack-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 40px auto 0;
}

.stack-tag {
    padding: 10px 20px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: background 0.3s, border-color 0.3s;
}

.stack-tag:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: var(--primary);
}

/* --- About the Architect --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 24px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
}

.about-content h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
}

.about-content h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 5%;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- CSS Animations --- */
.observe-me {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.observe-me.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero { padding: 140px 5% 80px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.05rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .desktop-nav { display: none; }
    .nav-cta { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .section-title { font-size: 2rem; }
    .ai-content { padding: 30px 20px; }
}