/* ============================================================
   Trackara Education — Marketing Site
   Aesthetic: Atoks-inspired dark theme
   - Inter Tight for headings (tight letter-spacing)
   - Flat, minimal cards (no glows, 14px radius)
   - Generous whitespace (120px section padding)
   - Teal used sparingly as true accent
   ============================================================ */

/* --- Google Fonts import for Inter Tight --- */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
    --primary:        #17afa5;
    --primary-dark:   #0d8b82;
    --primary-light:  #1fc4b8;
    --primary-subtle: rgba(23, 175, 165, 0.06);
    --primary-border: rgba(23, 175, 165, 0.2);

    --bg:        #0a0a0a;
    --bg-2:      #0f0f0f;
    --bg-3:      #141414;
    --bg-card:   #161616;
    --bg-raised: #1c1c1c;

    --border:    #1f1f1f;
    --border-2:  #2a2a2a;

    --text-1:    #f0f0f0;
    --text-2:    #909090;
    --text-3:    #555555;

    --green:  #10b981;
    --orange: #f59e0b;
    --red:    #ef4444;
    --blue:   #3b82f6;

    --radius-sm:  8px;
    --radius:     14px;
    --radius-lg:  20px;
    --radius-btn: 10px;

    --section-pad: 120px;
    --container:   1240px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    color: var(--text-1);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-1);
}

h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-1);
}

.heading-xl {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.0;
}

.heading-lg {
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.heading-md {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.heading-sm {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.body-lg { font-size: 18px; line-height: 1.7; color: var(--text-2); }
.body-md { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.body-sm { font-size: 14px; line-height: 1.65; color: var(--text-2); }
.caption  { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }

.accent { color: var(--primary); }

/* --- Layout --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

.section { padding: var(--section-pad) 0; }
.section-sm { padding: 80px 0; }
.section-lg { padding: 160px 0; }

/* --- Header --- */
.edu-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 68px;
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.edu-header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    border-color: var(--border-2);
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-text {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-1);
}
.logo-accent { color: var(--primary); }
.edu-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-subtle);
    border: 1px solid var(--primary-border);
    padding: 3px 8px;
    border-radius: 5px;
}
.edu-badge-sm {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-subtle);
    border: 1px solid var(--primary-border);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.header-actions { gap: 8px; }

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--primary);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 11px 24px;
    border-radius: var(--radius-btn);
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    touch-action: manipulation;
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: transparent;
    color: var(--text-2);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 11px 24px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--border-2);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    touch-action: manipulation;
}
.btn-secondary:hover {
    border-color: var(--text-3);
    color: var(--text-1);
    transform: translateY(-1px);
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}
.btn-ghost:hover { gap: 10px; }
.btn-sm  { padding: 8px 16px; font-size: 13px; }
.btn-lg  { padding: 15px 32px; font-size: 16px; letter-spacing: -0.02em; }

/* --- Nav Links --- */
.nav-link-dark {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
    touch-action: manipulation;
}
.nav-link-dark:hover { color: var(--text-1); background: rgba(255,255,255,0.04); }
.nav-link-dark.active { color: var(--text-1); }

/* --- Hamburger --- */
.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: 8px;
    color: var(--text-2);
    cursor: pointer;
    font-size: 15px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.hamburger-btn:hover { border-color: var(--text-3); color: var(--text-1); }

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100dvh;
    background: var(--bg-3);
    border-left: 1px solid var(--border-2);
    z-index: 2000;
    padding: 80px 24px 32px;
    overflow-y: auto;
    transition: right 0.28s ease;
}
.mobile-menu.active { right: 0; }
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    z-index: 1999;
    transition: all 0.28s ease;
    backdrop-filter: blur(4px);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-close-btn {
    position: absolute;
    top: 18px; right: 18px;
    background: none;
    border: 1px solid var(--border-2);
    border-radius: 8px;
    width: 32px; height: 32px;
    color: var(--text-3);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.mobile-close-btn:hover { color: var(--text-1); border-color: var(--text-3); }
.mobile-logo {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-1);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 24px;
}
.mobile-nav .nav-link-dark { width: 100%; height: 44px; }
.mobile-ctas {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-ctas .btn-primary,
.mobile-ctas .btn-secondary { justify-content: center; width: 100%; }

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.card:hover { border-color: var(--border-2); background: var(--bg-raised); }
.card-feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.25s ease;
}
.card-feature:hover { border-color: var(--primary-border); }
.card-accent {
    background: var(--bg-card);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius);
    padding: 32px;
}

/* --- Divider line --- */
.divider { border: none; border-top: 1px solid var(--border); }

/* --- Pill tag --- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
}

/* --- Check list --- */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.5;
}
.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* --- Step number --- */
.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Inter Tight', 'Inter', sans-serif;
}

/* --- Grad callout --- */
.grad-callout {
    background: var(--bg-card);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-lg);
    padding: 72px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.grad-callout::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--primary);
}

/* --- Forms --- */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 7px;
    letter-spacing: -0.01em;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.15s ease;
    appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--primary); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-3); }
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23555' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.form-select option { background: var(--bg-3); }

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}
.footer-brand {}
.footer-logo {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-1);
    margin-bottom: 12px;
}
.footer-tagline {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.65;
    max-width: 260px;
    margin-bottom: 16px;
}
.footer-link-muted {
    font-size: 13px;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.15s ease;
}
.footer-link-muted:hover { color: var(--primary); }
.footer-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
    font-size: 14px;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.15s ease;
}
.footer-link:hover { color: var(--text-1); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p,
.footer-bottom a {
    font-size: 13px;
    color: var(--text-3);
    text-decoration: none;
}
.footer-bottom a:hover { color: var(--text-2); }

/* --- Animations --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    :root { --section-pad: 96px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root { --section-pad: 72px; --container: 100%; }
    .container { padding: 0 20px; }
    .desktop-nav { display: none; }
    .hamburger-btn { display: flex; }
    .heading-xl { font-size: clamp(36px, 10vw, 48px); }
    .heading-lg { font-size: clamp(28px, 7vw, 40px); }
    .grad-callout { padding: 48px 24px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .btn-lg { padding: 13px 24px; font-size: 15px; }
}

/* ============================================================
   TRUST BAR — signal strip below hero
   Usage: <div class="trust-bar"><div class="trust-bar-inner">...
   ============================================================ */
.trust-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
    overflow: hidden;
}
.trust-bar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.trust-bar-inner::-webkit-scrollbar { display: none; }
.trust-signal {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 24px;
    border-right: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.01em;
}
.trust-signal:first-child { padding-left: 0; }
.trust-signal:last-child  { border-right: none; }
.trust-signal i {
    font-size: 11px;
    color: var(--primary);
}
.trust-signal strong {
    color: var(--text-2);
    font-weight: 600;
}
@media (max-width: 768px) {
    .trust-bar-inner { gap: 0; padding: 0 20px; }
    .trust-signal { padding: 0 16px; font-size: 11px; }
}

/* ============================================================
   DEVICE FRAME — wraps screenshots in a browser chrome
   Usage: <div class="device-frame"><img ...></div>
   ============================================================ */
.device-frame {
    background: var(--bg-raised);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    overflow: hidden;
}
.device-frame-bar {
    height: 32px;
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 6px;
    flex-shrink: 0;
}
.device-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-2);
    flex-shrink: 0;
}
.device-url-bar {
    flex: 1;
    height: 18px;
    background: var(--bg-raised);
    border-radius: 4px;
    margin: 0 10px;
    border: 1px solid var(--border);
}
.device-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* phone variant */
.device-frame-phone {
    background: var(--bg-raised);
    border: 1px solid var(--border-2);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}
.device-frame-phone-bar {
    height: 24px;
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.device-notch {
    width: 60px;
    height: 14px;
    background: var(--bg);
    border-radius: 0 0 10px 10px;
}
.device-frame-phone img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   TIMELINE / IMPLEMENTATION STEPS
   Usage: .timeline-wrap > .timeline-step (repeat)
   ============================================================ */
.timeline-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.timeline-wrap::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: var(--border-2);
    z-index: 0;
}
.timeline-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 0;
    position: relative;
    z-index: 1;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-3);
    font-family: 'Inter Tight', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}
.timeline-num.active {
    background: var(--primary-subtle);
    border-color: var(--primary-border);
    color: var(--primary);
}
.timeline-content {}
.timeline-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 4px;
}
.timeline-title {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-1);
    margin-bottom: 6px;
}
.timeline-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-3);
}

/* ============================================================
   STAT ROW — outcome metrics
   ============================================================ */
.stat-row {
    display: grid;
    gap: 1px;
    background: var(--border);
}
.stat-cell {
    background: var(--bg-card);
    padding: 32px 28px;
}
.stat-cell-value {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-1);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-cell-label {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.5;
}

/* ============================================================
   QUOTE / TESTIMONIAL
   ============================================================ */
.quote-block {
    padding: 32px;
    border-left: 2px solid var(--primary);
    background: var(--bg-card);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-2);
    font-style: italic;
    margin-bottom: 16px;
}
.quote-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
}
.quote-role {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}

/* ============================================================
   COMPLIANCE / SECURITY BADGES
   ============================================================ */
.compliance-grid {
    display: grid;
    gap: 1px;
    background: var(--border);
}
.compliance-cell {
    background: var(--bg-card);
    padding: 28px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.compliance-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-subtle);
    border: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--primary);
    flex-shrink: 0;
}
.compliance-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}
.compliance-desc {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.55;
}

/* ============================================================
   HIGHLIGHT BOX (already used in features.html — formalized)
   ============================================================ */
.highlight-box {
    background: var(--primary-subtle);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-2);
    margin-top: 24px;
}
.highlight-box strong { color: var(--primary); }
