/* Appltech — site styles (layered on Bootstrap 5) */
:root {
    --ink-900: #0b1020;
    --ink-800: #121a33;
    --ink-700: #1c2647;
    --ink-500: #4b587c;
    --ink-300: #9aa6c6;
    --paper: #f6f8fc;
    --surface: #ffffff;
    --line: #e3e8f2;
    --accent: #5b8cff;
    --accent-2: #8f6bff;
    --accent-3: #22d3ee;
    --success: #16a34a;
    --warning: #d97706;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --shadow-md: 0 10px 30px -12px rgba(16, 24, 40, .25);
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--paper);
    color: var(--ink-800);
    display: flex; flex-direction: column; min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { color: var(--ink-900); font-weight: 700; letter-spacing: -.02em; }
code { font-family: var(--font-mono); color: var(--accent-2); }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent-3); outline-offset: 2px; }

/* Header / nav */
.site-header {
    background: rgba(11, 16, 32, .92);
    backdrop-filter: saturate(160%) blur(10px);
    position: sticky; top: 0; z-index: 1030;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header .navbar { padding: .75rem 0; }
.site-header .nav-link { color: #c9d2ea; font-weight: 500; padding: .5rem .85rem !important; border-radius: 8px; }
.site-header .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-header .nav-link.active { color: #fff; background: rgba(91, 140, 255, .18); }
.site-header .navbar-toggler { border-color: rgba(255, 255, 255, .25); }
.lock-hint { margin-left: .2rem; opacity: .7; vertical-align: -1px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
    box-shadow: 0 6px 18px -6px rgba(91, 140, 255, .7);
}
.brand-text { font-weight: 700; font-size: 1.15rem; line-height: 1.05; display: flex; flex-direction: column; }
.brand-text small { font-weight: 500; font-size: .7rem; color: var(--ink-300); letter-spacing: .02em; }

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; border: 0; font-weight: 600; border-radius: 10px; padding: .5rem 1rem;
}
.btn-accent:hover, .btn-accent:focus { color: #fff; filter: brightness(1.08); }
.btn-outline-light-ghost { color: #e6ebf7; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; }
.btn-outline-light-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.btn-soft { background: #eef2ff; color: var(--ink-700); border-radius: 10px; font-weight: 600; border: 1px solid #dfe5fb; }
.btn-soft:hover { background: #e2e8ff; color: var(--ink-900); }

/* Hero */
.hero {
    position: relative; overflow: hidden; color: #e6ebf7;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(143, 107, 255, .35), transparent 60%),
        radial-gradient(700px 400px at 0% 110%, rgba(34, 211, 238, .18), transparent 60%),
        linear-gradient(180deg, var(--ink-900), var(--ink-800));
    padding: 6rem 0 5rem;
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.05; }
.hero .lead { color: #b9c3de; font-size: 1.2rem; max-width: 40rem; }
.gradient-text { background: linear-gradient(90deg, #8fb0ff, #c4a8ff 50%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: #a9b8ff; background: rgba(91, 140, 255, .12); border: 1px solid rgba(91, 140, 255, .3); padding: .3rem .7rem; border-radius: 999px;
}
.page-hero { background: linear-gradient(180deg, var(--ink-900), var(--ink-800)); color: #c9d2ea; padding: 3.5rem 0 3rem; }
.page-hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero .lead { color: #b9c3de; max-width: 44rem; }

/* Sections & cards */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.section-sub { color: var(--ink-500); max-width: 42rem; }
.card-soft {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 1.6rem; height: 100%;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card-soft { color: inherit; display: block; }
a.card-soft:hover, .card-soft.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cdd7f0; color: inherit; }
.card-soft h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.card-soft p { color: var(--ink-500); margin-bottom: 0; }
.icon-pill {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(91,140,255,.15), rgba(143,107,255,.15)); color: var(--accent-2); font-weight: 700;
}
.prose { max-width: 46rem; font-size: 1.05rem; line-height: 1.75; color: var(--ink-700); }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.2rem; }
.prose blockquote { border-left: 4px solid var(--accent); background: #eef3ff; padding: .75rem 1rem; border-radius: 0 10px 10px 0; color: var(--ink-700); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose pre { background: var(--ink-900); color: #e6ebf7; padding: 1rem; border-radius: 10px; }

.placeholder-note {
    border: 1px dashed #f0b45b; background: #fff8eb; color: #8a5a12; border-radius: 10px; padding: .7rem 1rem; font-size: .9rem;
}

/* Tags / badges */
.tag {
    display: inline-block; font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px;
    background: #eef2ff; color: #3b4fa8; border: 1px solid #dde4ff; margin: 0 .25rem .25rem 0;
}
.tag-sample { background: #fff4e0; color: #9a5b00; border-color: #fde2b5; }
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .6rem; border-radius: 999px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-idea { background: #f1f5f9; color: #475569; }
.status-active { background: #e8f8ee; color: var(--success); }
.status-paused { background: #fff4e0; color: var(--warning); }
.status-shipped { background: #eef2ff; color: #4338ca; }
.stack-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.stack-list li { font-family: var(--font-mono); font-size: .78rem; background: var(--ink-900); color: #cfe0ff; padding: .25rem .55rem; border-radius: 6px; }

/* Timeline (Journey) */
.timeline { position: relative; list-style: none; padding: 0 0 0 1.75rem; margin: 0; max-width: 52rem; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(var(--accent), var(--accent-2), transparent); }
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-item::before {
    content: ""; position: absolute; left: -1.75rem; top: 1.75rem; width: 16px; height: 16px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--accent);
}
.timeline-date { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-500); }

/* Forms */
.form-control, .form-select { border-radius: 10px; border-color: #d7deec; padding: .65rem .85rem; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(91, 140, 255, .2); }
.form-label { font-weight: 600; color: var(--ink-700); }
.field-validation-error, .validation-summary-errors { color: #dc2626; font-size: .875rem; }
.input-validation-error { border-color: #dc2626; }
.auth-card { max-width: 440px; margin: 0 auto; }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 0; }
.link-list .label { font-weight: 600; color: var(--ink-700); flex-shrink: 0; }
.link-list a, .link-list span { overflow-wrap: anywhere; text-align: right; }
.link-list .label { text-align: left; }

/* Footer */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.site-footer a { color: #c9d2ea; }
.site-footer a:hover { color: #fff; }
.brand-footer .brand-text { color: #fff; }
.footer-tagline { margin-top: 1rem; max-width: 26rem; }
.footer-heading { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }

@media (max-width: 991.98px) {
    .site-header .navbar-nav { padding: 1rem 0; }
    .hero { padding: 4rem 0 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
