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

:root {
    --bg: #ffffff;
    --surface: #f8fafa;
    --fg: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --accent: #0d9488;
    --accent-light: #14b8a6;
    --accent-dark: #0f766e;
    --gradient-start: #0d9488;
    --gradient-end: #0891b2;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--fg);
    font-size: 17px;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 48px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-dark);
}

/* ============ HEADER / NAV ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--fg);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--fg);
}

.site-nav {
    display: flex;
    gap: 40px;
}

.site-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease;
    position: relative;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--fg);
}

.site-nav a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.header-cta {
    padding: 10px 24px;
    background: var(--accent);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.header-cta:hover {
    background: var(--accent-dark);
    color: #ffffff !important;
}

/* ============ HERO ============ */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.03) 0%, rgba(8, 145, 178, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    position: relative;
}

.hero-content {
    flex: 1;
    padding-top: 24px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 20px;
    padding: 6px 14px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 4px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 28px;
    color: var(--fg);
    letter-spacing: -0.03em;
}

.hero-text {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 500px;
}

.hero-author {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
}

.hero-author-info strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 2px;
}

.hero-author-info span {
    color: var(--muted);
    font-size: 14px;
}

.hero-photo {
    flex: 0 0 340px;
    position: relative;
}

.hero-photo::before {
    content: "";
    position: absolute;
    top: -16px;
    right: -16px;
    bottom: 16px;
    left: 16px;
    background: rgba(13, 148, 136, 0.12);
    border-radius: 12px;
    z-index: -1;
}

.hero-photo img {
    width: 100%;
    filter: grayscale(100%);
    border-radius: 8px;
    position: relative;
}

/* ============ WHAT IS ============ */
.what-is {
    padding: 100px 0;
}

.what-is h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.what-is p {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 640px;
    color: var(--muted);
}

.what-is ul {
    list-style: none;
    margin: 28px 0 32px;
}

.what-is li {
    font-size: 17px;
    padding-left: 28px;
    position: relative;
    margin-bottom: 14px;
    color: var(--fg);
}

.what-is li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
    transform: rotate(45deg);
}

.what-is > .container > a {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 6px;
    transition: all 0.15s ease;
}

.what-is > .container > a:hover {
    background: rgba(13, 148, 136, 0.15);
}

.what-is > .container > a::after {
    content: "→";
    transition: transform 0.15s ease;
}

.what-is > .container > a:hover::after {
    transform: translateX(4px);
}

/* ============ SERVICES ============ */
.services {
    padding: 0;
    background: linear-gradient(180deg, var(--surface) 0%, rgba(13, 148, 136, 0.04) 100%);
}

.services-header {
    text-align: center;
    padding: 80px 48px 48px;
    max-width: 1120px;
    margin: 0 auto;
}

.services-header h2 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 48px 80px;
    gap: 24px;
}

.service-card {
    background: var(--bg);
    padding: 36px 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.service-card:hover {
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.2);
    transform: translateY(-4px);
}

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

.service-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--fg);
}

.service-card .subtitle {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 24px;
}

.service-card ul {
    list-style: none;
    margin-bottom: 24px;
}

.service-card li {
    font-size: 15px;
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
    line-height: 1.55;
    color: var(--fg);
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.service-card .note {
    font-size: 14px;
    padding: 16px;
    background: rgba(13, 148, 136, 0.05);
    border-radius: 8px;
    line-height: 1.55;
    color: var(--muted);
}

/* ============ STEPS ============ */
.steps {
    padding: 100px 0;
    background: var(--bg);
}

.steps h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 72px;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.steps-container {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    padding-left: 56px;
}

.steps-container::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
    border-radius: 1px;
}

.step-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 48px;
    position: relative;
}

.step-row:last-child {
    margin-bottom: 0;
}

.step-left {
    flex: 1;
    padding: 0;
    text-align: left;
}

.step-right {
    display: none;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    flex-shrink: 0;
    position: absolute;
    left: -56px;
    top: 0;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.step-row h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--fg);
}

.step-row p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.65;
    max-width: 480px;
}

/* ============ CTA BUTTON ============ */
.cta-button {
    text-align: center;
    padding: 24px 0 100px;
}

.btn {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent);
    color: #ffffff;
}

/* ============ ABOUT ============ */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.03) 0%, rgba(8, 145, 178, 0.03) 100%);
}

.about h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.about p {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 16px;
    max-width: 640px;
    color: var(--muted);
}

.about ul {
    list-style: none;
    margin: 28px 0 32px;
}

.about li {
    font-size: 17px;
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
    color: var(--fg);
}

.about li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
    transform: rotate(45deg);
}

.about > .container > a {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 6px;
    transition: all 0.15s ease;
}

.about > .container > a:hover {
    background: rgba(13, 148, 136, 0.15);
}

.about > .container > a::after {
    content: "→";
    transition: transform 0.15s ease;
}

.about > .container > a:hover::after {
    transform: translateX(4px);
}

/* ============ SKILLS ============ */
.skills {
    padding: 100px 0;
    background: var(--surface);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.skills-block {
    background: var(--bg);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.skills-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.skills-block h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    color: var(--accent);
}

.skills-block ul {
    list-style: none;
}

.skills-block li {
    font-size: 15px;
    padding-left: 24px;
    position: relative;
    margin-bottom: 14px;
    line-height: 1.5;
    color: var(--fg);
}

.skills-block li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* ============ CTA SECTION ============ */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--fg) 0%, #1e293b 100%);
    color: #ffffff;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #ffffff;
    letter-spacing: -0.02em;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.cta-section .btn {
    background: #ffffff;
    color: var(--fg);
}

.cta-section .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--fg);
}

/* ============ FOOTER ============ */
footer {
    background: var(--fg);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0;
    text-align: center;
}

footer p {
    margin-bottom: 8px;
    font-size: 15px;
}

footer a {
    color: var(--accent-light);
    font-weight: 500;
}

footer a:hover {
    color: #ffffff;
}

/* ============ TRACKING PAGE ============ */
.tracking-intro {
    padding: 100px 0 80px;
}

.tracking-intro h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--fg);
    letter-spacing: -0.03em;
}

.tracking-intro p {
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 680px;
    color: var(--muted);
}

.tracking-intro .highlight {
    color: var(--accent);
    font-weight: 600;
    font-size: 20px;
    margin: 36px 0;
}

/* Tracking Hero */
.tracking-hero {
    background: linear-gradient(135deg, var(--fg) 0%, #1e293b 100%);
    color: #ffffff;
}

.tracking-hero-overlay {
    padding: 100px 0;
}

.tracking-hero h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.02em;
}

.tracking-hero p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-wrap: balance;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
}

/* Diagnostic Session */
.diagnostic-session {
    padding: 100px 0;
    text-align: center;
}

.diagnostic-image {
    max-width: 480px;
    margin: 0 auto 48px;
}

.diagnostic-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.diagnostic-session h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.diagnostic-session p {
    font-size: 17px;
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 32px;
    color: var(--muted);
}

/* Problems Section */
.problems {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--surface) 0%, rgba(13, 148, 136, 0.04) 100%);
}

.problems h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.problems-subtitle {
    text-align: center;
    font-size: 17px;
    margin-bottom: 56px;
    color: var(--muted);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.problem-card {
    background: var(--bg);
    padding: 36px 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.problem-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--fg);
}

.problem-card ul {
    list-style: none;
}

.problem-card li {
    font-size: 15px;
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.55;
    color: var(--muted);
}

.problem-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    background: var(--muted);
    border-radius: 50%;
}

/* How Tracker Works */
.how-tracker-works {
    padding: 100px 0;
}

.how-tracker-works h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.how-tracker-works p {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 680px;
    color: var(--muted);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    text-align: center;
    background: var(--surface);
}

.contact-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.contact-section > .container > p {
    font-size: 17px;
    margin-bottom: 32px;
    color: var(--muted);
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.contact-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

/* ============ CAREER PAGE ============ */
.career-hero-section {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.03) 0%, rgba(8, 145, 178, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.career-hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.career-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 4px;
}

.career-hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--fg);
    letter-spacing: -0.03em;
    position: relative;
}

.career-subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.career-page {
    padding: 80px 0 100px;
}

.career-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

/* Вертикальная линия timeline */
.career-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
    border-radius: 1px;
}

.career-item {
    margin-bottom: 48px;
    position: relative;
    display: flex;
    gap: 24px;
}

.career-item:last-child {
    margin-bottom: 0;
}

/* Маркер на линии */
.career-marker {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--bg);
    border: 3px solid var(--accent);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.2s ease;
}

.career-item:first-child .career-marker {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4);
}

.career-item:hover .career-marker {
    transform: scale(1.15);
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.3);
}

.career-content {
    flex: 1;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.career-item:last-child .career-content {
    border-bottom: none;
    padding-bottom: 0;
}

.career-date {
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.career-role {
    font-size: 20px;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 4px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.career-company {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.career-company a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.career-company a:hover {
    color: var(--accent-dark);
}

.career-item ul {
    list-style: none;
    margin: 0;
}

.career-item li {
    font-size: 15px;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--muted);
}

.career-item li:last-child {
    margin-bottom: 0;
}

.career-item li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animated elements - initial state */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for cards */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Hero entrance animation */
.tracking-intro h1,
.tracking-intro p,
.career-hero-section h1,
.career-hero-section p {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.tracking-intro p:nth-of-type(1) { animation-delay: 0.1s; }
.tracking-intro p:nth-of-type(2) { animation-delay: 0.15s; }
.tracking-intro p:nth-of-type(3) { animation-delay: 0.2s; }
.tracking-intro p:nth-of-type(4) { animation-delay: 0.25s; }
.tracking-intro p:nth-of-type(5) { animation-delay: 0.3s; }

/* Enhanced button transitions */
.btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* Problem card hover enhancements */
.problem-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.2);
}

.problem-number {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-card:hover .problem-number {
    transform: scale(1.1);
}

/* Contact icon pulse effect */
.contact-icon {
    position: relative;
}

.contact-icon::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.8);
}

.contact-icon:hover::before {
    opacity: 0.2;
    transform: scale(1);
}

/* Career timeline marker animation */
.career-marker {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.career-item:hover .career-marker {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
}

/* Smooth section reveal */
.tracking-hero-overlay,
.diagnostic-session,
.problems,
.how-tracker-works,
.contact-section {
    position: relative;
}

/* Link underline animation */
.career-company a {
    position: relative;
}

.career-company a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.career-company a:hover::after {
    width: 100%;
}

/* Nav link smooth transitions */
.site-nav a::after {
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform: scaleX(0);
    opacity: 0;
}

.site-nav a:hover::after,
.site-nav a.active::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Header CTA glow effect */
.header-cta {
    position: relative;
    overflow: hidden;
}

.header-cta::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.header-cta:hover::before {
    width: 200px;
    height: 200px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
    .container {
        padding: 0 24px;
    }

    /* Header */
    .site-header .container {
        height: 64px;
    }

    .site-nav {
        gap: 24px;
    }

    .site-nav a {
        font-size: 14px;
    }

    .header-cta {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Hero */
    .hero {
        padding: 60px 0 50px;
    }

    .hero::before {
        display: none;
    }

    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-photo {
        width: 200px;
        flex: none;
        margin: 0 auto 40px;
    }

    .hero-photo::before {
        display: none;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero h1 br {
        display: none;
    }

    .hero-text {
        font-size: 17px;
        margin: 0 auto;
    }

    .hero-author {
        justify-content: center;
        margin-top: 36px;
        padding-top: 24px;
    }

    /* What is */
    .what-is {
        padding: 72px 0;
    }

    .what-is h2 {
        font-size: 28px;
    }

    /* Services */
    .services-header {
        padding: 60px 24px 36px;
    }

    .services-header h2 {
        font-size: 18px;
    }

    .services-header h2 br {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 24px 60px;
    }

    .service-card {
        padding: 32px 28px;
    }

    /* Steps */
    .steps {
        padding: 72px 0;
    }

    .steps h2 {
        font-size: 28px;
        margin-bottom: 48px;
    }

    .steps-container {
        padding-left: 48px;
    }

    .steps-container::before {
        left: 13px;
    }

    .step-number {
        left: -48px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* CTA Button */
    .cta-button {
        padding: 16px 0 72px;
    }

    .btn {
        padding: 16px 36px;
        font-size: 15px;
    }

    /* About */
    .about {
        padding: 72px 0;
    }

    .about h2 {
        font-size: 28px;
    }

    /* Skills */
    .skills {
        padding: 72px 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .skills-block {
        padding: 32px;
    }

    /* CTA Section */
    .cta-section {
        padding: 72px 24px;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .cta-section h2 br {
        display: none;
    }

    /* Footer */
    footer {
        padding: 36px 24px;
    }

    footer p {
        font-size: 14px;
    }

    /* Tracking Page Mobile */
    .tracking-intro {
        padding: 60px 0;
    }

    .tracking-intro h1 {
        font-size: 32px;
    }

    .tracking-intro p {
        font-size: 17px;
    }

    .tracking-intro .highlight {
        font-size: 18px;
    }

    .tracking-hero-overlay {
        padding: 72px 0;
    }

    .tracking-hero h2 {
        font-size: 28px;
    }

    .tracking-hero p {
        font-size: 17px;
    }

    .diagnostic-session {
        padding: 72px 0;
    }

    .diagnostic-session h2 {
        font-size: 28px;
    }

    .problems {
        padding: 72px 0;
    }

    .problems h2 {
        font-size: 28px;
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    .how-tracker-works {
        padding: 72px 0;
    }

    .how-tracker-works h2 {
        font-size: 28px;
    }

    .contact-section {
        padding: 60px 24px;
    }

    .contact-section h2 {
        font-size: 24px;
    }

    .contact-icons {
        gap: 12px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
    }

    /* Career Page Mobile */
    .career-hero-section {
        padding: 60px 0 48px;
    }

    .career-hero-section::before {
        display: none;
    }

    .career-hero-section h1 {
        font-size: 32px;
    }

    .career-subtitle {
        font-size: 16px;
    }

    .career-page {
        padding: 48px 0 60px;
    }

    .career-timeline {
        padding-left: 28px;
    }

    .career-timeline::before {
        left: 5px;
    }

    .career-marker {
        left: -28px;
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .career-item {
        margin-bottom: 32px;
    }

    .career-content {
        padding-bottom: 32px;
    }

    .career-role {
        font-size: 18px;
    }

    .career-company {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .career-item li {
        font-size: 14px;
        padding-left: 16px;
        margin-bottom: 6px;
    }

    .career-item li::before {
        width: 5px;
        height: 5px;
        top: 8px;
    }
}
