/* /tracking — standalone landing page of the IGNAN Track app. Own design (owner 2026-11-13: not the site
   template); colours follow the app's dark theme (SRC/track/lib/core/theme/tokens.dart). */

:root {
    --tk-bg: #000;
    --tk-surface: #080b10;
    --tk-card: #111722;
    --tk-border: #1c2431;
    --tk-accent: #2997ff;
    --tk-accent-2: #5ee0ff;
    --tk-text: #fff;
    --tk-text-2: #929aa7;
    --tk-muted: #5f6775;
    --tk-ok: #34c77b;
    --tk-warn: #f5b83d;
    --tk-radius: 20px;
    --tk-font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --tk-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body.tk {
    margin: 0;
    background: var(--tk-bg);
    color: var(--tk-text);
    font-family: var(--tk-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.tk a {
    color: inherit;
    text-decoration: none;
}

.tk-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ------------------------------------------------------------------ background */

.tk-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 600px at 85% -10%, rgba(41, 151, 255, 0.22), transparent 60%),
        radial-gradient(700px 500px at -10% 40%, rgba(94, 224, 255, 0.10), transparent 60%),
        linear-gradient(180deg, #02040a 0%, #000 60%);
}

.tk-glow::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

/* ------------------------------------------------------------------ top bar */

.tk-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(0, 0, 0, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tk-bar .tk-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

.tk-logo {
    font-family: var(--tk-font);
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.tk-logo b {
    font-weight: 700;
}

.tk-logo span {
    font-weight: 300;
    color: var(--tk-accent);
}

.tk-bar-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.875rem;
    color: var(--tk-text-2);
}

.tk-bar-links a:hover {
    color: var(--tk-text);
}

.tk-bar-signin {
    padding: 6px 16px;
    border: 1px solid var(--tk-border);
    border-radius: 999px;
    color: var(--tk-text);
    font-weight: 600;
}

.tk-bar-signin:hover {
    border-color: var(--tk-accent);
}

.tk-lang {
    display: inline-flex;
    border: 1px solid var(--tk-border);
    border-radius: 999px;
    overflow: hidden;
}

.tk-lang a {
    padding: 4px 10px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.tk-lang a.is-on {
    background: var(--tk-accent);
    color: #fff;
}

/* ------------------------------------------------------------------ buttons */

.tk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    font: 600 1rem var(--tk-font);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tk-btn svg {
    width: 20px;
    height: 20px;
}

.tk-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--tk-accent), #1366d6);
    box-shadow: 0 10px 30px rgba(41, 151, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tk-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(41, 151, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tk-btn-primary[disabled] {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

.tk-btn-ghost {
    color: var(--tk-text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--tk-border);
}

.tk-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ------------------------------------------------------------------ hero */

.tk-hero {
    padding: 72px 0 96px;
}

.tk-hero .tk-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 56px;
}

.tk-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(41, 151, 255, 0.35);
    border-radius: 999px;
    background: rgba(41, 151, 255, 0.08);
    color: var(--tk-accent-2);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.tk-pill i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tk-ok);
    box-shadow: 0 0 10px var(--tk-ok);
    animation: tk-blink 2s infinite;
}

.tk-hero h1 {
    margin: 22px 0 18px;
    font: 700 clamp(2.4rem, 5.4vw, 4.2rem)/1.05 var(--tk-font);
    letter-spacing: -0.035em;
}

.tk-hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--tk-accent), var(--tk-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tk-lead {
    max-width: 540px;
    margin: 0 0 32px;
    color: var(--tk-text-2);
    font-size: 1.125rem;
}

.tk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 34px;
    color: var(--tk-muted);
    font-size: 0.85rem;
}

.tk-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tk-meta svg {
    width: 16px;
    height: 16px;
    color: var(--tk-accent);
}

/* ------------------------------------------------------------------ phone illustration */

.tk-device {
    position: relative;
    display: flex;
    justify-content: center;
}

.tk-device::before {
    content: "";
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    top: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.45), transparent 65%);
    filter: blur(30px);
}

.tk-phone {
    position: relative;
    width: min(320px, 82vw);
    aspect-ratio: 9 / 19;
    padding: 12px;
    border-radius: 44px;
    background: linear-gradient(160deg, #2a3240, #0b0e14 40%, #1a202b);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: tk-float 7s ease-in-out infinite;
}

.tk-screen {
    position: relative;
    height: 100%;
    border-radius: 34px;
    background: #000;
    overflow: hidden;
    padding: 34px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tk-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    border-radius: 50%;
    background: #05070b;
}

.tk-app-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--tk-font);
    font-size: 0.95rem;
}

.tk-online {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--tk-ok);
    font-size: 0.7rem;
    font-weight: 600;
}

.tk-online::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.tk-gauge {
    position: relative;
    margin-top: 4px;
}

.tk-gauge svg {
    display: block;
    width: 100%;
    height: auto;
}

.tk-gauge-track {
    fill: none;
    stroke: #1c2431;
    stroke-width: 10;
    stroke-linecap: round;
}

.tk-gauge-fill {
    fill: none;
    stroke: url(#tkGrad);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 476;
    stroke-dashoffset: 476;
    filter: drop-shadow(0 0 6px rgba(41, 151, 255, 0.8));
    animation: tk-speed 9s ease-in-out infinite;
}

.tk-gauge-value {
    position: absolute;
    left: 0;
    right: 0;
    top: 44%;
    text-align: center;
    font-family: var(--tk-font);
}

.tk-gauge-value b {
    display: block;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

.tk-gauge-value small {
    color: var(--tk-accent);
    font-size: 0.8rem;
}

.tk-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tk-chip {
    padding: 9px 10px;
    border: 1px solid var(--tk-border);
    border-radius: 14px;
    background: var(--tk-card);
    font-size: 0.68rem;
    color: var(--tk-text-2);
}

.tk-chip b {
    display: block;
    color: var(--tk-text);
    font: 600 0.9rem var(--tk-font);
}

.tk-map {
    position: relative;
    flex: 1;
    min-height: 90px;
    border: 1px solid var(--tk-border);
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 22px 22px,
        #070a10;
}

.tk-map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tk-route {
    fill: none;
    stroke: var(--tk-accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    filter: drop-shadow(0 0 4px rgba(41, 151, 255, 0.9));
    animation: tk-draw 9s ease-in-out infinite;
}

.tk-route-start {
    fill: var(--tk-ok);
}

.tk-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 90, 95, 0.08);
    border: 1px solid rgba(255, 90, 95, 0.3);
    font-size: 0.72rem;
}

.tk-status svg {
    width: 34px;
    height: 14px;
    color: #ff5a5f;
    animation: tk-blink 1.4s infinite;
}

/* ------------------------------------------------------------------ sections */

.tk-section {
    padding: 96px 0;
}

.tk-head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

.tk-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--tk-accent);
    font: 600 0.8rem var(--tk-font);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tk-head h2,
.tk-dl h2 {
    margin: 0;
    font: 700 clamp(1.9rem, 3.6vw, 2.8rem)/1.15 var(--tk-font);
    letter-spacing: -0.03em;
}

.tk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tk-card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius);
    background: linear-gradient(180deg, rgba(17, 23, 34, 0.9), rgba(8, 11, 16, 0.9));
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tk-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(41, 151, 255, 0.6), transparent 40%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tk-card:hover {
    transform: translateY(-4px);
}

.tk-card:hover::before {
    opacity: 1;
}

.tk-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: rgba(41, 151, 255, 0.12);
    color: var(--tk-accent);
}

.tk-icon svg {
    width: 24px;
    height: 24px;
}

.tk-card h3 {
    margin: 0 0 8px;
    font: 600 1.15rem var(--tk-font);
}

.tk-card p {
    margin: 0;
    color: var(--tk-text-2);
    font-size: 0.95rem;
}

/* steps */

.tk-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    counter-reset: tkstep;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tk-steps li {
    position: relative;
    padding: 28px;
    border-radius: var(--tk-radius);
    border: 1px dashed var(--tk-border);
    counter-increment: tkstep;
    color: var(--tk-text-2);
}

.tk-steps li::before {
    content: "0" counter(tkstep);
    display: block;
    margin-bottom: 14px;
    font: 700 2.4rem/1 var(--tk-font);
    background: linear-gradient(180deg, var(--tk-accent), rgba(41, 151, 255, 0.15));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tk-steps strong {
    display: block;
    margin-bottom: 6px;
    color: var(--tk-text);
    font: 600 1.15rem var(--tk-font);
}

/* download */

.tk-dl {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 40px;
    align-items: center;
    padding: 56px;
    border-radius: 32px;
    border: 1px solid rgba(41, 151, 255, 0.35);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(41, 151, 255, 0.25), transparent 70%),
        linear-gradient(180deg, #0b1220, #05080e);
    overflow: hidden;
}

.tk-dl p {
    margin: 14px 0 0;
    color: var(--tk-text-2);
}

.tk-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.tk-specs li {
    padding: 7px 14px;
    border: 1px solid var(--tk-border);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.85rem;
    color: var(--tk-text-2);
}

.tk-specs b {
    color: var(--tk-text);
    font-weight: 600;
}

.tk-dl-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--tk-border);
}

.tk-dl-box form,
.tk-dl-box .tk-btn {
    width: 100%;
}

.tk-dl-box small {
    color: var(--tk-muted);
    font-size: 0.8rem;
    text-align: center;
}

.tk-alert {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(245, 184, 61, 0.4);
    background: rgba(245, 184, 61, 0.1);
    color: var(--tk-warn);
    font-size: 0.875rem;
}

/* ------------------------------------------------------------------ footer */

.tk-foot {
    padding: 40px 0 56px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--tk-muted);
    font-size: 0.85rem;
}

.tk-foot .tk-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

.tk-foot nav {
    display: flex;
    gap: 20px;
}

.tk-foot a:hover {
    color: var(--tk-text);
}

/* ------------------------------------------------------------------ reveal & motion */

.tk-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tk-reveal.is-in {
    opacity: 1;
    transform: none;
}

@keyframes tk-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-14px) rotate(-1deg); }
}

@keyframes tk-speed {
    0%, 8% { stroke-dashoffset: 476; }
    40%, 70% { stroke-dashoffset: 286; }
    100% { stroke-dashoffset: 476; }
}

@keyframes tk-draw {
    0%, 8% { stroke-dashoffset: 420; }
    70%, 90% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 420; }
}

@keyframes tk-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .tk-phone,
    .tk-gauge-fill,
    .tk-route,
    .tk-pill i,
    .tk-status svg {
        animation: none;
    }

    .tk-gauge-fill { stroke-dashoffset: 286; }
    .tk-route { stroke-dashoffset: 0; }

    .tk-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 960px) {
    .tk-hero .tk-wrap,
    .tk-dl {
        grid-template-columns: minmax(0, 1fr);
    }

    .tk-hero {
        padding: 48px 0 72px;
        text-align: center;
    }

    .tk-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .tk-actions,
    .tk-meta {
        justify-content: center;
    }

    .tk-grid,
    .tk-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tk-dl {
        padding: 36px 28px;
    }
}

@media (max-width: 620px) {
    .tk-wrap {
        padding: 0 16px;
    }

    .tk-bar-home {
        display: none;
    }

    .tk-grid,
    .tk-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .tk-section {
        padding: 72px 0;
    }

    .tk-btn {
        width: 100%;
    }
}
