/* ============================================
   Anka TMS — Shared Design System
   ============================================ */

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

:root {
    --color-text: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-bg: #ffffff;
    --color-border: #e8e8ed;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --indigo: #4f46e5;
    --indigo-dark: #3730a3;
    --indigo-deep: #1e1b4b;
    --violet: #7c3aed;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --amber-warm: #fffbeb;
    --teal: #0d9488;
    --teal-light: #14b8a6;
    --cyan: #06b6d4;
    --rose: #f43f5e;
    --rose-light: #fb7185;
}

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

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- Nav ---- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--indigo);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.logo span {
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--indigo), var(--violet));
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--indigo);
}

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

/* Nav CTA button (no underline effect) */
.nav-links .nav-cta {
    padding: 7px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    color: #fff;
    border-radius: 980px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-links .nav-cta::after {
    display: none;
}

.nav-links .nav-cta:hover {
    color: #fff;
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

/* Breadcrumb nav variant */
.nav-inner .breadcrumb {
    color: var(--color-text-secondary);
    font-size: 0.82rem;
}

.nav-inner .breadcrumb span {
    margin: 0 8px;
    color: var(--color-border);
}

.nav-inner .breadcrumb a {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-inner .breadcrumb a:hover {
    color: var(--indigo);
}

/* ---- Sections ---- */
section {
    padding: 120px 24px;
}

.container {
    max-width: 720px;
    margin: 0 auto;
}

.container-wide {
    max-width: 980px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.label-teal { color: var(--teal); }
.label-amber { color: var(--amber); }
.label-violet { color: var(--violet); }
.label-indigo { color: var(--indigo); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font);
    border-radius: 980px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-hero {
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    color: #1e1b4b;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.35);
}

.btn-hero:hover {
    transform: scale(1.04) translateY(-1px);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    color: #fff;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--indigo);
    border: 1.5px solid var(--indigo);
}

.btn-outline:hover {
    background: var(--indigo);
    color: #fff;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

/* ---- Footer ---- */
footer {
    padding: 40px 24px;
    background: linear-gradient(180deg, #f8f7ff 0%, #f0eeff 100%);
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--indigo);
}

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* ---- Content pages (privacy, support, terms) ---- */
.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 116px 24px 100px;
}

.page-header {
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--indigo-dark);
    margin-bottom: 8px;
}

.page-header .updated {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.page-header p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
}

.page-section {
    margin-bottom: 36px;
}

.page-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.page-section p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.page-section a {
    color: var(--indigo);
    text-decoration: none;
}

.page-section a:hover {
    text-decoration: underline;
}

.page-section ul {
    list-style: none;
    padding: 0;
    margin-top: 8px;
}

.page-section li {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
}

.page-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--indigo);
}

.highlight-box {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border-left: 3px solid var(--indigo);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin-bottom: 36px;
}

.highlight-box p {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    section {
        padding: 80px 20px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.78rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .page-content {
        padding: 100px 20px 80px;
    }
}
