/* Homepage refresh for carlophis.com */
:root {
    --home-ink: #17201d;
    --home-coral: #ff6b35;
    --home-coral-dark: #e65322;
    --home-mint: #c8f3df;
    --home-cream: #fff8ec;
}

body { overflow-x: hidden; }

header {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    border-bottom-color: color-mix(in srgb, var(--border) 70%, transparent);
}

.header-inner { height: 72px; }

.logo { gap: .75rem; letter-spacing: -.02em; }
.logo-icon {
    width: 40px; height: 40px; border-radius: 13px;
    background: var(--home-coral);
    box-shadow: 0 8px 24px rgba(255,107,53,.26);
    transform: rotate(-4deg);
}
.logo > span { display: flex; flex-direction: column; line-height: 1.05; }
.logo small {
    margin-top: .23rem; color: var(--text-muted); font-size: .57rem;
    font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

.nav-links { gap: .6rem; }
.nav-links a { padding: .55rem .75rem; font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--home-coral); background: transparent; }
.theme-btn, .menu-btn { border-radius: 12px; }

.hero {
    position: relative; padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(4rem, 7vw, 6.5rem);
    text-align: left; overflow: hidden; border-bottom: 0;
    background:
        linear-gradient(115deg, color-mix(in srgb, var(--home-cream) 82%, var(--bg)) 0%, var(--bg) 64%);
}
[data-theme="dark"] .hero {
    background: linear-gradient(115deg, #161d1b 0%, var(--bg) 68%);
}

.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(color-mix(in srgb, var(--text) 12%, transparent) .7px, transparent .7px);
    background-size: 17px 17px; mask-image: linear-gradient(to right, #000, transparent 57%);
    opacity: .35;
}

.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-orb-one {
    width: 260px; height: 260px; right: -80px; top: -80px;
    background: color-mix(in srgb, var(--home-mint) 48%, transparent);
}
.hero-orb-two {
    width: 120px; height: 120px; left: 42%; bottom: -72px;
    background: color-mix(in srgb, var(--home-coral) 17%, transparent);
}

.hero-grid {
    position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .82fr);
    gap: clamp(3rem, 8vw, 7rem); align-items: center;
}

.eyebrow {
    display: flex; align-items: center; gap: .6rem; margin-bottom: 1.35rem;
    color: var(--text-secondary); font-size: .77rem; font-weight: 700;
    letter-spacing: .11em; text-transform: uppercase;
}
.eyebrow span { width: 28px; height: 2px; background: var(--home-coral); }

.hero h1 {
    max-width: 720px; margin: 0 0 1.45rem; color: var(--text);
    font-size: clamp(3.35rem, 7.1vw, 6.85rem); line-height: .91; letter-spacing: -.068em;
    font-weight: 800;
}
.hero h1 span {
    background: linear-gradient(100deg, var(--home-coral), #f4933c);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
    max-width: 630px; margin: 0 0 1.8rem; color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.75;
}

.hero .search-box { max-width: 620px; margin: 0; }
.hero .search-box input {
    min-height: 62px; padding: 1rem 4.2rem 1rem 3.2rem; border: 1px solid var(--border);
    border-radius: 18px; background: var(--surface); box-shadow: 0 14px 44px rgba(30,39,35,.1);
    font-family: inherit; font-weight: 500;
}
.hero .search-box input:focus { border-color: var(--home-coral); box-shadow: 0 0 0 4px rgba(255,107,53,.12), 0 14px 44px rgba(30,39,35,.1); }
.hero .search-box i { left: 1.25rem; color: var(--home-coral); }
.search-box kbd {
    position: absolute; right: 1.15rem; top: 50%; transform: translateY(-50%);
    min-width: 30px; height: 30px; display: grid; place-items: center;
    border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 8px;
    color: var(--text-muted); background: var(--surface-hover); font: 600 .8rem/1 inherit;
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.15rem; margin-top: 1.35rem; }
.hero-primary {
    display: inline-flex; align-items: center; gap: .65rem; padding: .77rem 1.05rem;
    border-radius: 12px; color: #fff; background: var(--home-ink); font-size: .88rem; font-weight: 700;
}
[data-theme="dark"] .hero-primary { color: var(--home-ink); background: var(--home-mint); }
.hero-primary:hover { color: #fff; transform: translateY(-2px); }
[data-theme="dark"] .hero-primary:hover { color: var(--home-ink); }
.hero-actions > span { color: var(--text-muted); font-size: .84rem; font-weight: 500; }
.hero-actions > span i { margin-right: .4rem; color: #25a36f; }

.hero-preview {
    position: relative; border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
    border-radius: 25px; background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 35px 90px rgba(32,42,38,.17); overflow: hidden;
    transform: rotate(1.2deg);
}
.hero-preview::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    border: 1px solid rgba(255,255,255,.6); border-radius: inherit;
}
.preview-topbar {
    display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 1rem;
    border-bottom: 1px solid var(--border); background: var(--surface-hover);
}
.preview-topbar > span { width: 8px; height: 8px; border-radius: 50%; background: #ff8160; }
.preview-topbar > span:nth-child(2) { background: #f5be4f; }
.preview-topbar > span:nth-child(3) { background: #56c68a; }
.preview-topbar em { margin-left: auto; color: var(--text-muted); font-size: .65rem; font-style: normal; letter-spacing: .08em; }
.preview-body { padding: 1.35rem; }
.preview-intro { display: flex; flex-direction: column; margin: .2rem 0 1rem; }
.preview-intro span { color: var(--home-coral); font-size: .63rem; font-weight: 800; letter-spacing: .15em; }
.preview-intro strong { margin-top: .2rem; font-size: 1.1rem; letter-spacing: -.02em; }
.preview-tool {
    display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: .85rem;
    margin-top: .65rem; padding: .8rem; border: 1px solid var(--border); border-radius: 14px;
    color: var(--text); background: var(--surface); transition: transform .2s ease, border-color .2s ease;
}
.preview-tool:hover { color: var(--text); border-color: var(--home-coral); transform: translateX(4px); }
.preview-tool > i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--home-coral); }
.preview-tool:nth-of-type(2) > i { background: #7357d9; }
.preview-tool:nth-of-type(3) > i { background: #257e67; }
.preview-tool span { display: flex; flex-direction: column; min-width: 0; }
.preview-tool strong { font-size: .87rem; }
.preview-tool small { color: var(--text-muted); font-size: .68rem; }
.preview-tool b { color: var(--text-muted); font-size: .9rem; }
.privacy-status { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; padding: .72rem .8rem; color: #177655; background: color-mix(in srgb, var(--home-mint) 50%, var(--surface)); border-radius: 12px; }
.privacy-status > i { font-size: 1rem; }
.privacy-status span { display: flex; flex-direction: column; }
.privacy-status strong { font-size: .76rem; }
.privacy-status small { color: color-mix(in srgb, #177655 75%, var(--text-secondary)); font-size: .65rem; }

.proof-strip { border-block: 1px solid var(--border); background: var(--surface); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid > div { display: flex; flex-direction: column; padding: 1.5rem clamp(1rem, 3vw, 2.2rem); border-right: 1px solid var(--border); }
.proof-grid > div:first-child { padding-left: 0; }
.proof-grid > div:last-child { border-right: 0; }
.proof-grid strong { color: var(--text); font-size: 1.4rem; letter-spacing: -.03em; }
.proof-grid span { color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }

.category-nav { justify-content: flex-start; padding: 2.2rem 0 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.cat-pill { flex: 0 0 auto; padding: .55rem 1rem; border-radius: 10px; font-weight: 650; }
.cat-pill:hover, .cat-pill.active { background: var(--home-ink); border-color: var(--home-ink); }
[data-theme="dark"] .cat-pill:hover, [data-theme="dark"] .cat-pill.active { color: var(--home-ink); background: var(--home-mint); border-color: var(--home-mint); }

.tools-section { padding: 2rem 0 clamp(5rem, 8vw, 7rem); }
.section-header { align-items: flex-end; margin-bottom: 1.8rem; }
.section-kicker { display: block; margin-bottom: .45rem; color: var(--home-coral); font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.section-header h2 { max-width: 640px; font-size: clamp(1.9rem, 3.2vw, 2.7rem); letter-spacing: -.045em; }
.section-header .count { padding: .35rem .7rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }

.tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tool-card { min-height: 230px; padding: 1.35rem; border-radius: 18px; gap: .75rem; }
.tool-card::before { inset: 0 auto 0 0; width: 3px; height: auto; background: var(--home-coral); }
.tool-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--home-coral) 60%, var(--border)); box-shadow: 0 22px 45px rgba(30,39,35,.11); }
.tool-card .tool-icon { width: 46px; height: 46px; border-radius: 13px; background: #ffebe3; color: var(--home-coral-dark); }
.tool-card:nth-child(2n) .tool-icon { color: #6246c7; background: #eeeafd; }
.tool-card:nth-child(3n) .tool-icon { color: #16745a; background: #ddf6ec; }
.tool-card:nth-child(4n) .tool-icon { color: #9a6308; background: #fff1cd; }
[data-theme="dark"] .tool-card .tool-icon { background: color-mix(in srgb, var(--home-coral) 18%, var(--surface)); }
[data-theme="dark"] .tool-card:nth-child(2n) .tool-icon { background: color-mix(in srgb, #7357d9 20%, var(--surface)); color: #b8a8ff; }
[data-theme="dark"] .tool-card:nth-child(3n) .tool-icon { background: color-mix(in srgb, #257e67 22%, var(--surface)); color: #75d6b8; }
[data-theme="dark"] .tool-card:nth-child(4n) .tool-icon { background: color-mix(in srgb, #d99b27 20%, var(--surface)); color: #f1c56f; }
.tool-card .tool-name { color: var(--text); font-size: 1.04rem; letter-spacing: -.015em; }
.tool-card .tool-desc { font-size: .82rem; line-height: 1.62; }
.tool-card .tool-tag { color: var(--text-muted); background: transparent; padding: 0; }

.promise-section { padding: 0 0 clamp(5rem, 9vw, 8rem); }
.promise-card {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 8vw, 6rem);
    padding: clamp(2.2rem, 6vw, 5rem); border-radius: 30px; color: #f8fbf9;
    background: var(--home-ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.promise-copy h2 { margin-bottom: 1rem; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.055em; }
.promise-copy p { max-width: 580px; color: #aebbb5; font-size: .96rem; }
.promise-copy a { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.4rem; color: var(--home-mint); font-weight: 700; font-size: .86rem; }
.promise-list { display: flex; flex-direction: column; justify-content: center; }
.promise-list > div { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.11); }
.promise-list > div:last-child { border-bottom: 0; }
.promise-list i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--home-ink); background: var(--home-mint); }
.promise-list span { display: flex; flex-direction: column; }
.promise-list strong { font-size: .95rem; }
.promise-list small { margin-top: .15rem; color: #94a39c; font-size: .75rem; }

footer { padding-top: 4rem; }
.footer-domain { display: inline-block; margin-top: .7rem; font-size: .8rem; font-weight: 700; }

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr .78fr; gap: 2.5rem; }
    .hero h1 { font-size: clamp(3.3rem, 7vw, 5.5rem); }
    .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .hero { padding-top: 3.5rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .eyebrow, .hero-actions { justify-content: center; }
    .hero p, .hero .search-box { margin-left: auto; margin-right: auto; }
    .hero-preview { width: min(100%, 520px); margin: 0 auto; transform: none; }
    .proof-grid { grid-template-columns: repeat(2, 1fr); }
    .proof-grid > div { border-bottom: 1px solid var(--border); }
    .proof-grid > div:nth-child(2) { border-right: 0; }
    .proof-grid > div:nth-child(3), .proof-grid > div:nth-child(4) { border-bottom: 0; }
    .proof-grid > div:first-child { padding-left: clamp(1rem, 3vw, 2.2rem); }
    .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .promise-card { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .container { padding-inline: 18px; }
    .hero { padding: 3rem 0 3.5rem; }
    .hero h1 { font-size: clamp(3rem, 16vw, 4.25rem); }
    .hero p { font-size: .96rem; }
    .hero-actions { flex-direction: column; }
    .search-box kbd { display: none; }
    .hero .search-box input { padding-right: 1rem; }
    .preview-body { padding: 1rem; }
    .proof-grid span { font-size: .62rem; }
    .section-header { align-items: flex-start; gap: 1rem; }
    .tools-grid { grid-template-columns: 1fr; }
    .tool-card { min-height: 0; }
    .promise-card { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-preview, .tool-card, .preview-tool, .hero-primary { transform: none !important; transition: none !important; }
}
