@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-1: #7DD3FC;
    --primary-2: #38BDF8;
    --dark-1: #67C3D0;
    --dark-2: #2563EB;

    --soft-bg-1: #E0F2FE;
    --soft-bg-2: #F0F9FF;

    --bg-light: #f8fafc;
    --bg-neutral: #eef2f3;

    --text-1: #0f172a;
    --text-2: #475569;
    --text-on-dark: #ffffff;

    --white: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.16);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 18px;

    --section-space: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-1);
    background:
        url("https://grainy-gradients.vercel.app/noise.svg"),
        linear-gradient(180deg, var(--bg-light) 0%, var(--bg-neutral) 100%);
    background-size: 220px 220px, auto;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-1);
}

p,
li,
a,
span {
    color: var(--text-2);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.84);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px) saturate(0.92);
    padding: 0.9rem 0;
    transition: box-shadow 0.28s ease;
}

.header.scrolled {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-left {
    gap: 2rem;
}

.nav-right {
    gap: 0.7rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--dark-2);
}

.logo-text {
    font-size: 1.35rem;
    color: var(--text-1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    justify-self: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-2);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.24s ease, opacity 0.24s ease;
}

.nav-menu a:hover {
    color: var(--text-1);
    opacity: 0.92;
}

.nav-socials {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-1);
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-icon:hover {
    transform: translateY(-1px);
    opacity: 0.74;
}

.nav-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.btn-header,
.btn-cto,
.btn-back {
    border-radius: 11px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    font-weight: 700;
    border: 1px solid var(--border-strong);
    cursor: pointer;
    transition: transform 0.26s ease, box-shadow 0.26s ease, background 0.26s ease, color 0.26s ease;
}

.btn-cto {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-1);
    padding: 0.62rem 1rem;
}

.btn-cto:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.btn-header {
    background: linear-gradient(140deg, var(--primary-2), var(--dark-2));
    color: var(--text-on-dark);
    padding: 0.62rem 1rem;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.btn-back {
    background: var(--white);
    color: var(--text-1);
    padding: 0.62rem 1rem;
}

.btn-back:hover {
    background: var(--soft-bg-2);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4.9rem;
    background: linear-gradient(
        180deg,
        #93c5fd 0%,
        #3b82f6 100%
    );
    filter: saturate(0.85) brightness(0.95);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    background-size: 220px 220px;
    opacity: 0.2;
    filter: saturate(0.9) brightness(0.96);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: 10%;
    top: 20%;
    background: radial-gradient(circle, rgba(37,99,235,0.25), transparent);
    filter: blur(80px);
}

.hero-glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(90px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 2;
}

.glow-1 {
    width: 340px;
    height: 340px;
    background: rgba(125, 211, 252, 0.86);
    top: 1rem;
    left: -5rem;
    animation: floaty 8s ease-in-out infinite;
}

.glow-2 {
    width: 290px;
    height: 290px;
    background: rgba(56, 189, 248, 0.72);
    right: 2rem;
    bottom: 1.5rem;
    animation: floaty 9s ease-in-out infinite reverse;
}

.glow-3 {
    width: 240px;
    height: 240px;
    background: rgba(103, 195, 208, 0.7);
    right: 24%;
    top: 20%;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.8rem;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-badge {
    width: fit-content;
    padding: 0.44rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-1);
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.04;
    max-width: 13ch;
    color: #0f172a;
}

.hero-highlight {
    background: linear-gradient(90deg, #2563EB, #1D4ED8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.05rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.45;
    max-width: 38ch;
}

.hero-cta-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.45rem;
}

.btn-primary {
    background: linear-gradient(140deg, #38BDF8, #2563EB);
    color: var(--text-on-dark);
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    font-size: 0.94rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    justify-content: center;
    width: fit-content;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
    transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
    filter: brightness(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-1);
    border: 1px solid rgba(15, 23, 42, 0.26);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.24s ease, background 0.24s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--white);
}

.hero-context {
    display: none;
}

.hero-proof {
    margin-top: 0.35rem;
    display: grid;
    gap: 0.4rem;
}

.hero-proof p {
    font-size: 0.9rem;
    color: #12386d;
    font-weight: 600;
    line-height: 1.35;
}

.hero-right {
    position: relative;
}

.hero-right::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: 12%;
    top: 8%;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 70%);
    filter: blur(24px);
    z-index: 0;
}

.demo-card {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow:
      0 40px 100px rgba(0,0,0,0.18),
      0 10px 30px rgba(37,99,235,0.15);
    animation: float-card 6s ease-in-out infinite;
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.hero .btn-primary {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    font-weight: 600;
    box-shadow: 0 15px 40px rgba(37,99,235,0.45);
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 60px rgba(37,99,235,0.6);
}

.demo-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.34);
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.demo-header p {
    font-weight: 700;
    color: var(--text-1);
}

.demo-header span {
    font-size: 0.8rem;
    color: #1d4ed8;
    font-weight: 600;
}

.demo-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-label {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--text-2);
    margin-bottom: 0.2rem;
}

.demo-score {
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 800;
    color: var(--text-1);
}

.demo-pill {
    border-radius: 9999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    color: var(--text-1);
    font-weight: 600;
}

.demo-progress {
    margin-top: 0.85rem;
    height: 10px;
    border-radius: 9999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.1);
}

.demo-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38BDF8, #2563EB);
    transition: width 1.2s ease;
}

.demo-metrics {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.metric-item {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem;
}

.metric-value {
    color: var(--text-1);
    font-size: 1.18rem;
    font-weight: 700;
}

.demo-skill-block,
.demo-suggestions {
    margin-top: 0.95rem;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.6rem;
    gap: 0.7rem 0.6rem;
    align-items: center;
}

.skill-chips span {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.88);
    color: #1e3a8a;
    border-radius: 9999px;
    margin: 0.28rem 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.34rem 0.54rem;
    line-height: 1.1;
    white-space: nowrap;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.demo-suggestions ul {
    list-style: none;
    display: grid;
    gap: 0.32rem;
    font-size: 0.84rem;
    color: var(--text-2);
}

.improve-note {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    color: #1d4ed8;
    font-weight: 700;
}

/* Workflow */
.workflow {
    padding: var(--section-space) 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.workflow-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.workflow-panel {
    min-height: 590px;
    padding: 2.3rem 2rem 1.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.workflow-panel:nth-child(2) {
    background: var(--soft-bg-2);
}

.workflow-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.34);
}

.workflow-topline {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.3rem;
}

.workflow-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: var(--text-2);
}

.workflow-step {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-2);
}

.workflow-panel h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--text-1);
}

.workflow-panel p {
    color: var(--text-2);
    line-height: 1.5;
    max-width: 34ch;
    font-size: 1rem;
}

.workflow-btn {
    margin-top: 1.4rem;
    width: fit-content;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text-1);
    padding: 0.78rem 1.5rem;
    border-radius: 11px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.workflow-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(140deg, #38BDF8, #2563EB);
    color: var(--text-on-dark);
}

.workflow-visual {
    margin-top: auto;
    height: 270px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.workflow-glow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    width: 260px;
    height: 120px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.32), rgba(56, 189, 248, 0.22) 42%, transparent 75%);
    filter: blur(20px);
}

/* Parse */
.resume-doc {
    position: relative;
    width: 210px;
    height: 150px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff, #f6f8fa);
    overflow: hidden;
    margin-bottom: 18px;
}

.scan-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 14px;
    background: linear-gradient(90deg, rgba(103, 195, 208, 0), rgba(125, 211, 252, 0.45), rgba(103, 195, 208, 0));
    top: 0;
    animation: parse-scan 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-play-state: paused;
}

.parse-line {
    position: absolute;
    left: 18px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.14);
    width: 160px;
    animation: parse-highlight 2.8s ease-out infinite;
    animation-play-state: paused;
}

.line-1 { top: 24px; width: 145px; animation-delay: 0.2s; }
.line-2 { top: 42px; width: 172px; animation-delay: 0.45s; }
.line-3 { top: 60px; width: 135px; animation-delay: 0.7s; }
.line-4 { top: 78px; width: 165px; animation-delay: 0.95s; }
.line-5 { top: 96px; width: 120px; animation-delay: 1.2s; }

/* Extract */
.extract-visual {
    align-items: center;
}

.extract-box {
    position: absolute;
    width: 90px;
    height: 124px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff, #f7f9fb);
    top: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.extract-box p {
    margin-top: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--text-2);
    font-weight: 700;
}

.resume-box { left: 40px; }
.jd-box { right: 40px; }

.keyword-flow {
    position: absolute;
    top: 170px;
    left: 0;
    right: 0;
    height: 110px;
}

.keyword-chip {
    position: absolute;
    left: 48px;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.32rem 0.55rem;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: var(--text-2);
    animation: chip-move 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-play-state: paused;
}

.chip-a { top: 0px; }
.chip-b { top: 34px; animation-delay: 0.4s; }
.chip-c { top: 68px; animation-delay: 0.8s; }

.keyword-chip.match {
    --chip-end-bg: rgba(125, 211, 252, 0.32);
    --chip-end-color: #1d4ed8;
}

.keyword-chip.missing {
    --chip-end-bg: rgba(15, 23, 42, 0.08);
    --chip-end-color: var(--text-2);
}

/* Index */
.index-visual {
    align-items: center;
}

.priority-list {
    width: 250px;
    height: 160px;
    position: relative;
    margin-top: 30px;
    margin-bottom: 0px;
}

.priority-item {
    position: absolute;
    left: 0;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f8fafc;
    padding: 0.62rem 0.68rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-2);
    animation: priority-shift 4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-play-state: paused;
}

.item-1 { top: 8px; animation-delay: 0s; }
.item-2 { top: 58px; animation-delay: 0.12s; }
.item-3 { top: 108px; animation-delay: 0.24s; }

.workflow-panel.play .scan-bar,
.workflow-panel.play .parse-line,
.workflow-panel.play .keyword-chip,
.workflow-panel.play .priority-item {
    animation-play-state: running;
}

/* Features / Bento */
.features {
    background: linear-gradient(180deg, var(--soft-bg-2) 0%, var(--soft-bg-1) 100%);
    padding: var(--section-space) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 2.7rem;
    text-align: center;
    margin-bottom: 0.85rem;
    color: var(--text-1);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-2);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.65;
}

.resume-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(170px, auto));
    gap: 1rem;
}

.feature-tile {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.2rem 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.28s ease, border-color 0.28s ease;
    overflow: visible;
    position: relative;
}

.feature-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.34);
}

.tile-kicker {
    font-size: 12px;
    letter-spacing: 0.11em;
    font-weight: 700;
    color: var(--text-2);
}

.feature-tile h3 {
    font-size: 19px;
    line-height: 1.25;
    color: var(--text-1);
}

.feature-tile p {
    color: var(--text-2);
    line-height: 1.45;
    font-size: 15px;
}

.tile-featured {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    background: #ffffff;
}

.tile-match {
    grid-column: 3 / span 2;
    grid-row: 1;
    background: var(--soft-bg-2);
}

.tile-fixes {
    grid-column: 3;
    grid-row: 2 / span 2;
}

.tile-skills {
    grid-column: 4;
    grid-row: 2;
    background: #f8fafc;
}

.tile-ats {
    grid-column: 4;
    grid-row: 3;
    background: #f8fafc;
}

.tile-rebuild {
    grid-column: 1 / span 2;
    grid-row: 3;
}

.audit-mini-ui {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.audit-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text-1);
    font-size: 14px;
    padding: 0.45rem 0.6rem;
}

.audit-step span {
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.2);
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.audit-progress-wrap {
    margin-top: auto;
}

.audit-progress-track,
.ats-meter-track {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.audit-progress-fill,
.ats-meter-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38BDF8, #2563EB);
    transition: width 1.15s ease;
}

.audit-progress-text,
.ats-meter-value {
    margin-top: 0.45rem;
    font-size: 0.84rem;
    color: var(--text-2);
}

.audit-progress-text strong,
.ats-meter-value strong {
    color: var(--text-1);
}

.match-network {
    margin-top: auto;
    height: 96px;
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    background: #f8fafc;
}

.network-link {
    position: absolute;
    height: 1px;
    background: rgba(15, 23, 42, 0.24);
    transform-origin: left center;
}

.link-a { width: 110px; left: 28px; top: 28px; transform: rotate(12deg); }
.link-b { width: 96px; left: 72px; top: 58px; transform: rotate(-16deg); }
.link-c { width: 90px; left: 126px; top: 38px; transform: rotate(20deg); }

.network-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2563EB;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.24);
    animation: float-dot 3.8s ease-in-out infinite;
    animation-play-state: paused;
}

.dot-a { left: 26px; top: 22px; }
.dot-b { left: 116px; top: 34px; animation-delay: 0.4s; }
.dot-c { left: 172px; top: 26px; animation-delay: 0.8s; }
.dot-d { left: 92px; top: 64px; animation-delay: 1.1s; }

.fix-list {
    margin-top: auto;
    display: grid;
    gap: 0.45rem;
}

.fix-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
    padding: 0.45rem 0.55rem;
    font-size: 14px;
    color: var(--text-1);
    animation: rank-shift 4s ease-in-out infinite;
    animation-play-state: paused;
}

.fix-item:nth-child(2) { animation-delay: 0.22s; }
.fix-item:nth-child(3) { animation-delay: 0.42s; }

.skill-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.skill-tags span {
    border: 1px solid rgba(37, 99, 235, 0.26);
    background: rgba(56, 189, 248, 0.14);
    border-radius: 999px;
    padding: 0.28rem 0.5rem;
    font-size: 0.75rem;
    color: #1d4ed8;
}

.typing-shell {
    margin-top: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
    min-height: 48px;
    padding: 0.55rem 0.65rem;
    color: var(--text-1);
    font-size: 14px;
    line-height: 1.45;
    display: flex;
    align-items: center;
}

.typing-caret {
    width: 1px;
    height: 16px;
    background: var(--text-1);
    margin-left: 2px;
    animation: typing-caret 0.9s steps(1, end) infinite;
}

#resumeBentoSection.play .network-dot,
#resumeBentoSection.play .fix-item {
    animation-play-state: running;
}

/* Testimonials */
.testimonials {
    background: var(--bg-light);
    padding: var(--section-space) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonial-carousel {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
}

.testimonial-viewport {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.45s ease;
}

.testimonial-card {
    min-width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.5rem;
}

.testimonial-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-2);
    margin-bottom: 1.15rem;
}

.testimonial-card h4 {
    font-size: 1.02rem;
    color: var(--text-1);
    margin-bottom: 0.2rem;
}

.testimonial-card span {
    color: var(--text-2);
    font-size: 0.92rem;
}

.carousel-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-1);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
    transform: translateY(-1px);
    background: var(--soft-bg-2);
}

.carousel-dots {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dot.active {
    background: #2563EB;
    transform: scale(1.12);
}

/* CTA */
.cta {
    background:
        linear-gradient(135deg, #67C3D0 0%, #2563EB 100%),
        url("https://grainy-gradients.vercel.app/noise.svg");
    background-size: cover, 220px 220px;
    padding: var(--section-space) 0;
    text-align: center;
}

.cta-title {
    font-size: 2.6rem;
    color: var(--text-on-dark);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn-cta {
    background: var(--white);
    color: var(--text-1);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn-cta:hover {
    background: var(--soft-bg-2);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

/* Contact */
.contact-section {
    padding: var(--section-space) 0;
    background: linear-gradient(180deg, var(--soft-bg-2) 0%, var(--soft-bg-1) 100%);
    border-top: 1px solid var(--border);
}

.contact-card {
    max-width: 860px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    color: var(--text-2);
    margin-bottom: 1.25rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-1);
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Footer */
.footer {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 2.2rem 1.5rem 5.2rem;
    min-height: 400px;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    background-size: 220px 220px;
    opacity: 0.16;
    pointer-events: none;
}

.footer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 190px;
    background: radial-gradient(circle at 22% 80%, rgba(125, 211, 252, 0.24), transparent 40%),
        radial-gradient(circle at 80% 75%, rgba(56, 189, 248, 0.2), transparent 38%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.6rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-brand h2 {
    font-size: 3.3rem;
    line-height: 0.96;
    margin-bottom: 0.15rem;
    color: var(--text-1);
}

.footer-subbrand {
    color: var(--text-2);
    font-size: 1.4rem;
    font-weight: 500;
}

.footer-subbrand-link {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(120deg, #475569 0%, #2563EB 52%, #0f172a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: opacity 0.2s ease;
}

.footer-subbrand-link:hover {
    opacity: 0.75;
}

.footer-connect {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-social-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-social-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.footer-social-icon:hover {
    transform: translateY(-2px);
    background: var(--white);
    border-color: rgba(37, 99, 235, 0.35);
}

.footer-mail {
    text-decoration: none;
    color: var(--text-1);
    font-size: 1.04rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    transition: opacity 0.2s ease;
}

.footer-mail svg {
    width: 1.06rem;
    height: 1.06rem;
}

.footer-mail:hover {
    opacity: 0.68;
}

.footer-bottom {
    max-width: 1200px;
    width: calc(100% - 3rem);
    margin: 0;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(15, 23, 42, 0.15);
    color: var(--text-2);
    font-size: 0.88rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.1rem;
    z-index: 1;
    text-align: left;
}

.footer-watermark {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 52px;
    font-family: 'Inter', sans-serif;
    font-size: clamp(4.8rem, 14vw, 11.2rem);
    line-height: 0.9;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.14);
    letter-spacing: -0.03em;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

/* Scroll Reveal */
.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Analyze Page */
.main-content {
    min-height: calc(100vh - 320px);
    padding: 4rem 0;
    background: var(--bg-light);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.page-subtitle {
    font-size: 1.06rem;
    color: var(--text-2);
}

.upload-container {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.upload-card,
.jd-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.upload-card:hover,
.jd-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.34);
}

.upload-zone {
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.24s ease;
    background: var(--soft-bg-2);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: rgba(37, 99, 235, 0.45);
    background: var(--soft-bg-1);
}

.upload-zone.file-selected {
    border-color: rgba(37, 99, 235, 0.52);
    background: rgba(56, 189, 248, 0.14);
}

.upload-label {
    cursor: pointer;
    display: block;
}

.upload-icon,
.file-icon {
    width: 3rem;
    height: 3rem;
    color: var(--text-2);
    margin: 0 auto 0.75rem;
    display: block;
}

.upload-text {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 0.5rem;
}

.upload-hint,
.file-size {
    font-size: 0.93rem;
    color: var(--text-2);
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.file-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-1);
}

.jd-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.94rem;
    font-family: inherit;
    resize: vertical;
    min-height: 180px;
    color: var(--text-1);
    background: var(--white);
}

.jd-textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.btn-analyze {
    background: linear-gradient(140deg, #38BDF8, #2563EB);
    color: var(--text-on-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.94rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
    width: auto;
    display: block;
    margin: 0 auto;
    text-align: center;
}

.btn-analyze:hover:not(:disabled) {
    filter: brightness(1.03);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.btn-analyze:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.error-message {
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid var(--border);
    color: var(--text-1);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.loading-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-2);
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(15, 23, 42, 0.12);
    border-top-color: #2563EB;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto 1rem;
}

/* Results */
.results-container {
    max-width: 1000px;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.score-card,
.skills-card,
.insight-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.3rem;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.score-card:hover,
.skills-card:hover,
.insight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.34);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.score-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
}

.circular-chart {
    position: relative;
    width: 220px;
    height: 220px;
}

.circular-chart svg {
    transform: rotate(-90deg);
}

.score-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-1);
}

.score-status {
    font-size: 0.875rem;
    color: var(--text-2);
    margin-top: 0.5rem;
}

.metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-box {
    background: var(--soft-bg-2);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.25rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-2);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-1);
}

.skills-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skills-header,
.insight-header {
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
    color: var(--text-1);
}

.skills-header svg,
.insight-header svg {
    width: 1.5rem;
    height: 1.5rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.skill-tag {
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

.skill-tag.green {
    background: rgba(56, 189, 248, 0.16);
    color: #1d4ed8;
}

.skill-tag.orange {
    background: rgba(125, 211, 252, 0.2);
    color: #1e3a8a;
}

.insight-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.94rem;
    color: var(--text-2);
    line-height: 1.5;
}

.checkmark {
    color: #2563EB;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* Motion */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes parse-scan {
    0%, 10% { top: -14px; opacity: 0; }
    20%, 85% { opacity: 1; }
    90%, 100% { top: 152px; opacity: 0; }
}

@keyframes parse-highlight {
    0%, 15% { background: rgba(15, 23, 42, 0.14); box-shadow: none; }
    25%, 35% { background: rgba(125, 211, 252, 0.52); box-shadow: 0 0 14px rgba(56, 189, 248, 0.36); }
    45%, 100% { background: rgba(15, 23, 42, 0.14); box-shadow: none; }
}

@keyframes chip-move {
    0% {
        transform: translateX(0);
        background: #f8fafc;
        color: var(--text-2);
        opacity: 0.65;
    }
    35% { opacity: 1; }
    60% {
        transform: translateX(122px);
        background: var(--chip-end-bg, #f8fafc);
        color: var(--chip-end-color, var(--text-2));
        opacity: 1;
    }
    100% {
        transform: translateX(122px);
        background: var(--chip-end-bg, #f8fafc);
        color: var(--chip-end-color, var(--text-2));
        opacity: 0.72;
    }
}

@keyframes priority-shift {
    0%, 18% {
        transform: translateY(0) scale(1);
        background: #f8fafc;
    }
    30%, 52% {
        transform: translateY(-50px) scale(1.01);
        background: rgba(125, 211, 252, 0.24);
    }
    66%, 100% {
        transform: translateY(0) scale(1);
        background: #f8fafc;
    }
}

@keyframes float-dot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes rank-shift {
    0%, 20%, 100% {
        transform: translateY(0);
        border-color: var(--border);
    }
    35%, 58% {
        transform: translateY(-5px);
        border-color: rgba(37, 99, 235, 0.32);
    }
}

@keyframes typing-caret {
    0%, 45% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 968px) {
    .nav-menu,
    .nav-socials {
        display: none;
    }

    .nav-left,
    .nav-right {
        gap: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .workflow-panel {
        min-height: 500px;
        padding: 2rem 1.4rem 1.4rem;
    }

    .workflow-panel h3 {
        font-size: 2rem;
    }

    .resume-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .tile-featured,
    .tile-match,
    .tile-fixes,
    .tile-skills,
    .tile-ats,
    .tile-rebuild {
        grid-column: auto;
        grid-row: auto;
        min-height: 200px;
    }

    .testimonial-carousel {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        display: none;
    }

    .score-layout,
    .skills-row {
        grid-template-columns: 1fr;
    }

    .circular-chart {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding-top: 4.4rem;
        padding-bottom: 3.8rem;
    }

    .hero-title {
        font-size: 2.08rem;
    }

    .hero-cta-row {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .demo-metrics {
        grid-template-columns: 1fr;
    }

    .resume-bento {
        grid-template-columns: 1fr;
    }

    .features,
    .workflow,
    .testimonials,
    .cta,
    .contact-section {
        padding-top: 3.8rem;
        padding-bottom: 3.8rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .form-row,
    .footer-container {
        grid-template-columns: 1fr;
        display: grid;
        text-align: left;
        justify-items: start;
    }

    .footer-connect {
        margin-top: 0.5rem;
        align-items: flex-start;
    }

    .footer {
        padding-top: 2rem;
        min-height: 340px;
        padding-bottom: 4.5rem;
    }

    .footer-brand h2 {
        font-size: 2.4rem;
    }

    .footer-subbrand {
        font-size: 1.05rem;
    }

    .footer-watermark {
        position: static;
        margin-top: 0.5rem;
        font-size: 3rem;
        text-align: left;
        color: rgba(15, 23, 42, 0.14);
        transform: none;
    }

    .footer-bottom {
        width: calc(100% - 2rem);
        bottom: 0.65rem;
    }

    .btn-header {
        padding: 0.55rem 0.85rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {

    * {
        box-sizing: border-box !important;
    }

    body {
        overflow-x: hidden !important;
    }

    /* Kill any full-viewport-height sections */
    section, .section {
        min-height: unset !important;
        height: auto !important;
        padding: 48px 20px !important;
    }
}

@media (max-width: 767px) {

    nav, header {
        padding: 12px 20px !important;
    }

    /* Hide desktop nav links */
    nav ul,
    nav .nav-links,
    nav [class*="links"],
    nav [class*="menu"] {
        display: none !important;
    }

    /* Show hamburger if it exists, or add one */
    nav [class*="hamburger"],
    nav [class*="mobile-menu"],
    nav [class*="toggle"] {
        display: block !important;
    }

    /* Keep logo + CTA button visible */
    nav [class*="logo"],
    nav [class*="cta"],
    nav .btn-primary {
        display: flex !important;
    }

    nav .btn-primary,
    nav [class*="try"] {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 767px) {

    /* Stack hero layout vertically */
    .hero,
    section.hero,
    #hero {
        flex-direction: column !important;
        padding: 40px 20px 48px !important;
        gap: 32px !important;
        min-height: unset !important;
        height: auto !important;
    }

    /* Left content — full width */
    .hero [class*="left"],
    .hero [class*="content"],
    .hero [class*="text"] {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    /* Headline */
    .hero h1 {
        font-size: clamp(28px, 8vw, 40px) !important;
        line-height: 1.15 !important;
        margin-bottom: 16px !important;
    }

    /* Subtext */
    .hero p,
    .hero [class*="description"],
    .hero [class*="subtext"] {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 24px !important;
    }

    /* Buttons — stack vertically */
    .hero [class*="buttons"],
    .hero [class*="cta-group"],
    .hero [class*="actions"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .hero a, 
    .hero button {
        width: 100% !important;
        max-width: 320px !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }

    /* Social proof bullets — center them */
    .hero [class*="proof"],
    .hero [class*="stats"],
    .hero [class*="social"] {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        font-size: 13px !important;
    }

    /* Right card — full width, no overlap */
    .hero [class*="card"],
    .hero [class*="preview"],
    .hero [class*="panel"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        position: relative !important;
        right: unset !important;
        top: unset !important;
        transform: none !important;
        padding: 20px !important;
    }

    /* Kill hero glow — too heavy on mobile */
    .hero::after {
        display: none !important;
    }

    /* Kill hero animation if it causes overflow */
    .hero [class*="animation"],
    .hero [class*="lottie"],
    .hero canvas {
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 767px) {

    /* Section wrapper */
    [class*="bento"],
    [class*="features"],
    [class*="grid-section"] {
        padding: 48px 20px !important;
    }

    /* Section headline */
    [class*="bento"] h2,
    [class*="features"] h2 {
        font-size: clamp(22px, 6vw, 30px) !important;
        text-align: center !important;
        margin-bottom: 8px !important;
    }

    [class*="bento"] p,
    [class*="features"] > p {
        font-size: 14px !important;
        text-align: center !important;
        margin-bottom: 32px !important;
    }

    /* KILL desktop grid — single column */
    [class*="bento-grid"],
    [class*="features-grid"],
    [class*="card-grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        grid-template-columns: unset !important;
        grid-template-rows: unset !important;
    }

    /* Reset ALL card grid placement */
    [class*="bento-grid"] > *,
    [class*="features-grid"] > *,
    [class*="card-grid"] > * {
        grid-column: unset !important;
        grid-row: unset !important;
        width: 100% !important;
    }

    /* Card base */
    [class*="bento"] .card,
    [class*="features"] .card,
    [class*="bento-grid"] > div,
    [class*="features-grid"] > div {
        width: 100% !important;
        padding: 20px !important;
        border-radius: 12px !important;
        height: auto !important;
        min-height: unset !important;
    }

    /* Card label */
    [class*="card"] [class*="label"],
    [class*="card"] [class*="eyebrow"] {
        font-size: 10px !important;
        margin-bottom: 6px !important;
    }

    /* Card title */
    [class*="card"] h3,
    [class*="card"] h2 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
    }

    /* Card description */
    [class*="card"] p {
        font-size: 13px !important;
        line-height: 1.6 !important;
        color: #64748b !important;
    }

    /* Fix item pills in Actionable Fixes */
    [class*="fix-item"],
    [class*="action-item"],
    [class*="suggestion"] {
        font-size: 13px !important;
        padding: 10px 14px !important;
        width: 100% !important;
    }

    /* Skill tags in Skill Coverage */
    [class*="skill-tag"],
    [class*="tag"],
    [class*="pill"] {
        font-size: 11px !important;
        padding: 4px 10px !important;
    }

    /* ATS score number */
    [class*="ats"] [class*="score"],
    [class*="score-number"] {
        font-size: 28px !important;
    }
}

@media (max-width: 767px) {

    /* Any section with a grid of cards */
    [class*="testimonial"],
    [class*="pricing"],
    [class*="steps"],
    [class*="how-it-works"] {
        padding: 48px 20px !important;
    }

    /* Force single column on all card grids */
    [class*="testimonial"] [class*="grid"],
    [class*="pricing"] [class*="grid"],
    [class*="steps"] [class*="grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        grid-template-columns: unset !important;
    }

    [class*="testimonial"] [class*="card"],
    [class*="pricing"] [class*="card"],
    [class*="steps"] [class*="card"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Section headlines */
    section h2 {
        font-size: clamp(22px, 6vw, 30px) !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }

    section p {
        font-size: 14px !important;
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    :root {
        --section-space: 40px !important;
    }

    body {
        overflow-x: hidden !important;
    }

    section, .section {
        min-height: unset !important;
        height: auto !important;
        padding: 40px 20px !important;
    }

    .container {
        padding: 0 20px !important;
    }

    /* Navigation */
    .header {
        padding: 12px 0 !important;
    }

    .header .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    .nav-menu {
        display: none !important;
    }

    .nav-socials {
        gap: 0.25rem !important;
    }

    .nav-icon {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }

    .btn-header {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }

    /* Hero */
    .hero {
        padding: 40px 0 48px !important;
        height: auto !important;
        min-height: unset !important;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        text-align: center !important;
    }

    .hero-left {
        align-items: center !important;
    }

    .hero-title {
        font-size: 32px !important;
        line-height: 1.15 !important;
        max-width: 20ch !important;
    }

    .hero-description {
        font-size: 15px !important;
        line-height: 1.55 !important;
        max-width: 40ch !important;
    }

    .hero-cta-row {
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .hero-cta-row button,
    .hero-cta-row a {
        width: 100% !important;
        max-width: 320px !important;
        justify-content: center !important;
    }

    .hero-right {
        width: 100% !important;
    }

    /* Hide hero demo card on mobile */
    .hero-right {
        display: none !important;
    }

    /* Right demo card */
    .demo-card {
        width: 100% !important;
        max-width: 540px !important;
        margin: 0 auto !important;
        height: auto !important;
        min-height: unset !important;
        padding: 16px !important;
        animation: none !important;
    }

    .demo-score {
        font-size: 1.95rem !important;
    }

    .demo-label {
        font-size: 0.74rem !important;
    }

    .metric-value {
        font-size: 1.05rem !important;
    }

    .demo-metrics {
        grid-template-columns: 1fr !important;
    }

    .skill-chips {
        justify-content: center !important;
    }

/* Workflow - Auto Loop Carousel on Mobile */
  .workflow {
    padding: var(--section-space) 0 !important;
    overflow-x: hidden !important; /* Hide scrollbar for carousel */
  }

  .workflow-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    padding: 0 16px !important;
    grid-template-columns: unset !important;
    width: max-content !important;
    animation: wf-carousel 15s linear infinite !important;
  }

  .workflow-grid:hover {
    animation-play-state: paused !important;
  }

  @keyframes wf-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 8px)); }
  }

  .workflow-panel {
    width: 320px !important;
    min-width: 320px !important;
    margin-bottom: 0 !important;
    min-height: 480px !important;
    height: auto !important;
    padding: 24px !important;
  }

  .workflow-visual {
    height: 250px !important;
    min-height: 250px !important;
    display: flex !important;
    justify-content: center !important;
    transform: scale(0.95);
    transform-origin: top center;
  }

    /* Bento / Features */
    .features {
        padding: var(--section-space) 0 !important;
    }

    .section-title {
        font-size: clamp(22px, 6vw, 30px) !important;
        line-height: 1.2 !important;
    }

    .section-subtitle {
        font-size: 14px !important;
        line-height: 1.55 !important;
        margin-bottom: 24px !important;
    }

    .resume-bento {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .tile-featured {
    grid-column: 1 / span 2 !important;
    grid-row: 1 !important;
  }

  .tile-match {
    grid-column: 1 / span 2 !important;
    grid-row: 2 !important;
  }

  .tile-fixes {
    grid-column: 1 !important;
    grid-row: 3 / span 2 !important;
  }

  .tile-skills {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  .tile-ats {
    grid-column: 2 !important;
    grid-row: 4 !important;
  }

  .tile-rebuild {
    grid-column: 1 / span 2 !important;
    grid-row: 5 !important;
  }

  .feature-tile {
    width: 100% !important;
    height: 100% !important;
    min-height: unset !important;
    padding: 16px !important;
  }

  /* Compact content to fit the mobile grid without overly long cards */
  .feature-tile > p:not(.ats-meter-value):not(.audit-progress-text) {
    display: none !important;
  }
  
  .audit-mini-ui {
    display: none !important;
  }

  .fix-list .fix-item:nth-child(n+3) {
    display: none !important;
  }

  .feature-tile h3 {
    font-size: 16px !important;
    margin-bottom: 4px !important;
  }

  .tile-kicker {
    font-size: 11px !important;
  }

    /* CTA / Contact / Testimonials */
    .testimonials,
    .cta,
    .contact-section {
        padding: var(--section-space) 0 !important;
    }

    .cta-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .cta-description {
        font-size: 1rem !important;
        line-height: 1.55 !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    /* Footer */
    .footer {
        padding: 40px 20px 64px !important;
        min-height: unset !important;
        height: auto !important;
    }

    .footer-container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 20px !important;
    }

    .footer-connect {
        align-items: center !important;
        gap: 16px !important;
    }

    .footer-mail {
        justify-content: center !important;
    }

    .footer-socials {
        justify-content: center !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
    }

    .footer-social-icon {
        width: 2.2rem !important;
        height: 2.2rem !important;
    }

    .footer-bottom {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 24px !important;
        padding-top: 18px !important;
        border-top: 1px solid var(--border) !important;
    }

    .footer-watermark {
        position: static !important;
        transform: none !important;
        text-align: center !important;
        margin-top: 24px !important;
        white-space: nowrap !important;
        font-size: 15vw !important; /* Full edge to edge based on viewport */
        display: block !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* Analyze page */
    .main-content {
        min-height: unset !important;
        padding: 40px 0 !important;
    }

    .page-header {
        margin-bottom: 24px !important;
        padding: 0 20px !important;
    }

    .page-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .page-subtitle {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .upload-container {
        width: 100% !important;
        padding: 0 20px !important;
        gap: 16px !important;
    }

    .upload-card,
    .jd-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .upload-zone {
        height: auto !important;
        min-height: 180px !important;
        padding: 20px !important;
    }

    .jd-textarea {
        width: 100% !important;
        min-height: 180px !important;
    }

    .btn-analyze {
        width: 100% !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {

    section, .section {
        padding: 64px 32px !important;
    }

    .hero h1 {
        font-size: clamp(32px, 5vw, 48px) !important;
    }

    /* Bento — 2 column on tablet */
    [class*="bento-grid"],
    [class*="features-grid"],
    [class*="card-grid"] {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: unset !important;
    }

    /* Reset individual card placements for 2-col */
    [class*="bento-grid"] > *,
    [class*="features-grid"] > * {
        grid-column: unset !important;
        grid-row: unset !important;
    }

    /* Let Core Workflow span full width on tablet */
    [class*="bento-grid"] > *:first-child {
        grid-column: 1 / -1 !important;
    }

    .hero {
        flex-direction: column !important;
        gap: 40px !important;
        padding: 64px 32px !important;
    }

    .hero [class*="card"],
    .hero [class*="preview"] {
        width: 100% !important;
        max-width: 540px !important;
        margin: 0 auto !important;
    }
}

@media (min-width: 769px) {
  .workflow-panel.dup {
    display: none;
  }
}

