@charset "UTF-8";

/* ---------------------------------------------------------------
   T2 Software — design tokens
   Palette lifted off near-black (#020617) to a softer slate navy so
   long-form reading is comfortable while the cyan logo still reads.
   --------------------------------------------------------------- */
:root {
    --bg:            #101827;
    --surface:       #172033;
    --surface-2:     #1e293b;
    --border:        #2b3648;
    --border-strong: #3b4a63;

    --text:          #e6ecf5;
    --text-muted:    #a3b1c6;
    --text-heading:  #f8fafc;

    --primary:       #38bdf8;
    --primary-deep:  #0ea5e9;
    --secondary:     #22d3ee;

    --max-read: 68ch;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
    letter-spacing: -0.011em;
    line-height: 1.65;
}

h1, h2, h3, h4 {
    letter-spacing: -0.028em;
    line-height: 1.15;
}

img {
    background-color: transparent;
}

.object-contain {
    object-fit: contain;
}

/* ---------------------------------------------------------------
   Logo
   --------------------------------------------------------------- */
.logo-container {
    height: 44px;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.06);
}

.logo-container img,
.logo-container-footer img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.logo-container-footer {
    height: 40px;
    width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---------------------------------------------------------------
   Navigation
   --------------------------------------------------------------- */
.nav-link {
    position: relative;
    color: var(--text-muted);
    padding-bottom: 0.25rem;
    transition: color 0.25s ease;
}

.nav-link:hover {
    color: var(--text-heading);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    color: var(--text-muted);
    transition: all 0.25s ease;
    border-radius: 0.5rem;
}

.mobile-nav-link:hover {
    color: var(--text-heading);
    background-color: var(--surface-2);
}

/* ---------------------------------------------------------------
   Cards
   --------------------------------------------------------------- */
.value-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

/* ---------------------------------------------------------------
   Long-form article typography (writing / blog)
   --------------------------------------------------------------- */
.prose {
    max-width: var(--max-read);
    font-size: 1.0625rem;
    color: var(--text);
}

.prose > * + * {
    margin-top: 1.4em;
}

.prose h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-top: 2.6em;
    margin-bottom: 0.2em;
    scroll-margin-top: 6rem;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 650;
    color: var(--text-heading);
    margin-top: 2em;
    margin-bottom: 0.1em;
}

.prose p,
.prose li {
    color: var(--text);
}

.prose strong {
    color: var(--text-heading);
    font-weight: 650;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(56, 189, 248, 0.4);
    transition: text-decoration-color 0.2s ease;
}

.prose a:hover {
    text-decoration-color: var(--primary);
}

.prose ul,
.prose ol {
    padding-left: 1.4em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li + li {
    margin-top: 0.55em;
}

.prose li::marker {
    color: var(--border-strong);
}

.prose blockquote {
    border-left: 3px solid var(--primary);
    padding: 0.2em 0 0.2em 1.3em;
    color: var(--text-muted);
    font-style: italic;
}

.prose code {
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.875em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0.15em 0.4em;
    color: var(--secondary);
}

.prose pre {
    background: #0b1120;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

.prose pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text);
}

.prose hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 3em 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    display: block;
    overflow-x: auto;
}

.prose th,
.prose td {
    border: 1px solid var(--border);
    padding: 0.6rem 0.85rem;
    text-align: left;
}

.prose th {
    background: var(--surface-2);
    color: var(--text-heading);
    font-weight: 650;
}

.prose figure,
.article-figure {
    margin: 2.5em 0;
}

.prose figure img,
.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}

.prose figure svg,
.article-figure svg {
    display: block;
    width: 100%;
    height: auto;
    background: #0b1120;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.5rem;
}

.diagram-figure {
    overflow-x: auto;
}

.diagram-figure > svg {
    min-width: 520px;
}

.prose figcaption,
.article-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}

/* ---------------------------------------------------------------
   Forms
   --------------------------------------------------------------- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* ---------------------------------------------------------------
   Accessibility
   --------------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-deep);
    color: #fff;
    padding: 0.75rem 1.25rem;
    z-index: 100;
    border-radius: 0 0 6px 0;
}

.skip-link:focus {
    left: 0;
}

@media (max-width: 768px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

::selection {
    background-color: var(--primary);
    color: #08111f;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-2);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}
