/* ============================================================
   Cogent Keys LLC — styles.css
   Theme: dark navy / charcoal + cyan accent
   ============================================================ */

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

:root {
    --bg:           #080e1a;
    --bg-alt:       #0c1322;
    --surface:      #0f1829;
    --surface-hi:   #141f33;
    --border:       #1a2640;
    --border-hi:    #243552;

    --accent:       #00c8ff;
    --accent-dim:   rgba(0, 200, 255, 0.12);
    --accent-glow:  rgba(0, 200, 255, 0.22);

    --text-primary:   #e8eeff;
    --text-secondary: #7a8db3;
    --text-muted:     #3e506e;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius:   8px;
    --radius-sm: 5px;
    --transition: 0.2s ease;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

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

/* ── Layout ── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ── Typography helpers ── */
.label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background var(--transition), box-shadow var(--transition),
                border-color var(--transition), color var(--transition);
}

.btn--primary {
    background: var(--accent);
    color: #050b16;
}
.btn--primary:hover {
    background: #33d4ff;
    box-shadow: 0 0 28px var(--accent-glow);
}

.btn--ghost {
    background: transparent;
    border: 1px solid var(--border-hi);
    color: var(--text-secondary);
}
.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(8, 14, 26, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.nav--scrolled {
    background: rgba(8, 14, 26, 0.97);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav__logo {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}
.nav__logo span { color: var(--accent); }

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

.nav__links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color var(--transition);
}
.nav__links a:hover { color: var(--text-primary); }

.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    line-height: 0;
}
.nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 128px 0 88px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0, 200, 255, 0.07) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 85% 90%, rgba(0, 60, 140, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    max-width: 820px;
}

.hero__heading {
    font-size: clamp(2.6rem, 6.5vw, 4.75rem);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    margin-bottom: 26px;
}
.hero__heading span { color: var(--accent); }

.hero__sub {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 44px;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Sections ── */
.section {
    padding: 104px 0;
}
.section--alt {
    background: var(--bg-alt);
}

.section__header {
    margin-bottom: 68px;
}
.section__header h2 {
    font-size: clamp(1.875rem, 3.75vw, 2.875rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

/* ── About ── */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about__text p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 22px;
}
.about__text p:last-child { margin-bottom: 0; }

.about__pillars {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.pillar {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.pillar__icon {
    color: var(--accent);
    font-size: 0.75rem;
    margin-top: 5px;
    flex-shrink: 0;
    opacity: 0.8;
}

.pillar h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.pillar p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ── Products ── */
.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.product-card:hover:not(.product-card--soon) {
    border-color: rgba(0, 200, 255, 0.3);
    box-shadow: 0 6px 40px rgba(0, 200, 255, 0.07);
}

.product-card--soon {
    opacity: 0.6;
}

.product-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-card__monogram {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 200, 255, 0.2);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card__monogram--dim {
    background: rgba(255,255,255,0.04);
    border-color: var(--border);
    color: var(--text-muted);
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tag--live {
    background: rgba(0, 200, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 200, 255, 0.22);
}
.tag--soon {
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

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

.product-card__link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 4px;
    transition: opacity var(--transition);
}
.product-card__link:hover { opacity: 0.7; }
.product-card__link--muted {
    color: var(--text-muted);
    cursor: default;
}
.product-card__link--muted:hover { opacity: 1; }

/* ── Services ── */
.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 72px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px 40px;
}

.service-card__num {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 18px;
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.78;
    margin-bottom: 28px;
}

.service-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.service-card__list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-left: 22px;
    position: relative;
}
.service-card__list li::before {
    content: '\2014';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.services__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    padding-top: 16px;
}
.services__cta p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* ── Contact ── */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.contact-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.contact-block__sub {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.contact-block__details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition);
}
a.contact-item:hover { color: var(--accent); }

.contact-item__icon {
    color: var(--accent);
    font-size: 0.9375rem;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.75;
}

.contact-block__apps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
}
.app-contact:hover { border-color: var(--border-hi); }

.app-contact__name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.app-contact__email {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity var(--transition);
}
.app-contact__email:hover { opacity: 0.7; }

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 52px 0;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer__brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 8px;
}

.footer__nav {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition);
}
.footer__nav a:hover { color: var(--text-primary); }

.footer__copy {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .about__grid,
    .services__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .service-card { padding: 36px 28px; }
}

@media (max-width: 640px) {
    .nav__links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(8, 14, 26, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 8px 0 16px;
    }
    .nav__links.open { display: flex; }
    .nav__links li a {
        display: block;
        padding: 14px 28px;
        font-size: 1rem;
    }
    .nav__hamburger { display: flex; }

    .hero { padding: 100px 0 72px; }
    .section { padding: 80px 0; }
    .section__header { margin-bottom: 48px; }

    .hero__actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }

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

    .footer__nav { gap: 24px; }
}

@media (max-width: 400px) {
    .container { padding: 0 20px; }
}
