/* HaptixAR Open — Developer Community */

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

:root {
    --bg:           #f7f6f3;
    --bg-alt:       #ffffff;
    --border:       #e2e0d9;
    --text:         #1a1a1a;
    --text-muted:   #6b6860;
    --text-light:   #9b9890;
    --accent:       #2563eb;      /* developer blue */
    --accent-light: #eff4ff;
    --mono:         'JetBrains Mono', 'Fira Mono', 'Courier New', monospace;
    --sans:         'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

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

/* ── Typography ──────────────────────────────── */

h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
}

h2 {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2rem;
}

p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

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

a:hover {
    opacity: 0.7;
}

code, .mono {
    font-family: var(--mono);
    font-size: 0.85em;
}

/* ── Layout ──────────────────────────────────── */

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Header ──────────────────────────────────── */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 246, 243, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.logo-name {
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
}

.logo-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--accent);
    background: var(--accent-light);
    padding: 0.2em 0.5em;
    border-radius: 3px;
    letter-spacing: 0.04em;
}

.header-link {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s;
}

.header-link:hover {
    color: var(--text);
    opacity: 1;
}

/* ── Hero ────────────────────────────────────── */

.hero {
    padding: 9rem 2rem 8rem;
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    max-width: 880px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    background: var(--accent-light);
    padding: 0.35em 0.75em;
    border-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.hero h1 {
    margin-bottom: 1.75rem;
    max-width: 700px;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.8;
}

/* ── Section ─────────────────────────────────── */

section {
    padding: 5.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

section:last-of-type {
    border-bottom: none;
}

.section-inner {
    max-width: 880px;
    margin: 0 auto;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.85;
}

/* ── GitHub block ────────────────────────────── */

.repo-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-top: 0.5rem;
    max-width: 520px;
    transition: border-color 0.2s;
}

.repo-block:hover {
    border-color: #c0bdb5;
}

.repo-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    fill: var(--text);
    opacity: 0.7;
}

.repo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.repo-path {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.repo-status {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

/* ── Stay Informed ───────────────────────────── */

.interest-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    max-width: 480px;
    flex-wrap: wrap;
}

.interest-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    font-family: var(--sans);
    font-size: 0.875rem;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.interest-form input[type="email"]:focus {
    border-color: var(--accent);
}

.interest-form input[type="email"]::placeholder {
    color: var(--text-light);
}

.interest-form button {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.interest-form button:hover {
    background: #1d4ed8;
}

.form-note {
    display: block;
    margin-top: 0.9rem;
    font-size: 0.72rem;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

/* ── Research block ──────────────────────────── */

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.8rem 1.25rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Footer ──────────────────────────────────── */

footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem;
}

.footer-inner {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
    opacity: 1;
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--text-light);
}

/* ── Divider ─────────────────────────────────── */

.rule {
    display: block;
    width: 1.75rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 2.5rem;
    opacity: 0.5;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 640px) {
    .hero { padding: 7rem 1.5rem 5rem; }
    section { padding: 4rem 1.5rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .repo-block { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
