/* =====================================================
   KlipTools Shared Design System — "Creator Console"
   Palette: deep void · cyan · violet · drifting blue
   Typography: Bricolage Grotesque (display)
               · Inter Tight (body) · JetBrains Mono (accent)
   ===================================================== */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,700;12..96,800&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap");

:root {
    /* Surface */
    --bg-0: #050816;
    --bg-1: #0a1024;
    --bg-2: #0f1830;
    --deep-blue: #0a1929;
    --dark-panel: #132337;
    --panel-soft: rgba(14, 22, 46, 0.55);
    --panel-strong: rgba(14, 22, 46, 0.85);

    /* Accents */
    --cyan: #00e5ff;
    --cyan-2: #4dffd8;
    --violet: #a855f7;
    --magenta: #ff3eb1;
    --lime: #6ef0c0;

    /* Backwards-compat aliases (existing inline rules across pages still work) */
    --electric: #00e5ff;          /* was #00ff88 — now resolves to cyan */
    --electric-soft: #4dffd8;
    --cyber-purple: #a855f7;      /* was #bf40bf — now resolves to violet */

    /* Glow */
    --glow: rgba(0, 229, 255, 0.30);
    --glow-strong: rgba(0, 229, 255, 0.45);
    --glow-purple: rgba(168, 85, 247, 0.40);

    /* Lines & text */
    --line: rgba(255, 255, 255, 0.06);
    --line-mid: rgba(255, 255, 255, 0.10);
    --text: #e8edf5;
    --text-soft: #a8b2c7;
    --text-dim: #6b7796;

    /* Type */
    --display: 'Bricolage Grotesque', 'Times New Roman', serif;
    --body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;

    /* Easing */
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--body);
    font-feature-settings: "ss01", "cv11";
    background: var(--bg-0);
    color: var(--text);
    min-height: 100vh;
    padding: 2rem;
    padding-top: 100px !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* =====================================================
   Atmosphere — drifting orbs, grid, grain (auto-injected by /js/kliptools.js)
   ===================================================== */

.atmosphere {
    position: fixed; inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% -20%, #0d1c3d 0%, var(--bg-0) 60%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    mix-blend-mode: screen;
    will-change: transform;
}
.orb-1 {
    width: 620px; height: 620px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 60%);
    top: -180px; left: -160px;
    opacity: 0.55;
    animation: drift-a 32s ease-in-out infinite;
}
.orb-2 {
    width: 540px; height: 540px;
    background: radial-gradient(circle, var(--violet) 0%, transparent 60%);
    bottom: -120px; right: -140px;
    opacity: 0.40;
    animation: drift-b 38s ease-in-out infinite;
}
.orb-3 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, #1d8efb 0%, transparent 60%);
    top: 38%; left: 48%;
    opacity: 0.35;
    animation: drift-c 28s ease-in-out infinite;
}

@keyframes drift-a {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(80px, 60px, 0) scale(1.10); }
    66%      { transform: translate3d(-40px, 100px, 0) scale(0.95); }
}
@keyframes drift-b {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(-100px, -80px, 0) scale(1.15); }
}
@keyframes drift-c {
    0%, 100% { transform: translate3d(-50%, -50%, 0) scale(1); }
    50%      { transform: translate3d(-30%, -60%, 0) scale(1.20); }
}

.grid-overlay {
    position: fixed; inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.grain {
    position: fixed; inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
}

/* =====================================================
   Container & page-load motion
   ===================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   Hero — eyebrow pill + shimmer headline + subtitle
   ===================================================== */

header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.hero-eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.22);
}
.hero-eyebrow::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.85); }
}

h1 {
    font-family: var(--display);
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    background: linear-gradient(120deg, #ffffff 0%, var(--cyan) 45%, #b388ff 75%, #ffffff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(0, 229, 255, 0.18);
    animation: shimmer 9s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.subtitle {
    font-family: var(--mono);
    color: var(--cyan);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.85;
}

/* =====================================================
   Cards & panels — magnetic radial glow
   ===================================================== */

.card,
.settings-panel,
.tool-card,
.panel {
    position: relative;
    background: var(--dark-panel);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
    isolation: isolate;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.card::before,
.settings-panel::before,
.tool-card::before,
.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, 0.10) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
    pointer-events: none;
}
.card:hover::before,
.settings-panel:hover::before,
.tool-card:hover::before,
.panel:hover::before { opacity: 1; }

/* Info box */
.info-box {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(168, 85, 247, 0.06));
    border: 1px solid rgba(0, 229, 255, 0.20);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}

/* =====================================================
   Buttons
   ===================================================== */

.btn {
    padding: 0.85rem 1.4rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, border-color 0.3s;
    font-family: var(--body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--cyan), #00b8d4);
    color: var(--bg-0);
    font-family: var(--mono);
    letter-spacing: 0.04em;
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px var(--glow);
}
.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn-secondary {
    background: rgba(168, 85, 247, 0.15);
    color: var(--violet);
    border: 1px solid rgba(168, 85, 247, 0.30);
}
.btn-secondary:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.25);
    transform: translateY(-1px);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--line-mid);
}
.btn-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cyan);
    color: var(--cyan);
}

/* =====================================================
   Form controls
   ===================================================== */

input[type="text"],
input[type="number"],
input[type="url"],
input[type="email"],
input[type="search"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.20);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--body);
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.18);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
select { cursor: pointer; }
select option { background: var(--dark-panel); color: var(--text); }

label {
    display: block;
    font-family: var(--mono);
    color: var(--cyan);
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* =====================================================
   Footer
   ===================================================== */

footer {
    text-align: center;
    color: var(--text-dim);
    margin-top: 3rem;
    padding: 2rem 1rem 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    font-family: var(--mono);
    letter-spacing: 0.04em;
}
footer a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover { color: var(--cyan); }

/* =====================================================
   FAQ details (used in many SEO sections)
   ===================================================== */

.seo-content {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.8;
}
.seo-content h2 {
    font-family: var(--mono);
    color: var(--cyan);
    font-size: 1.4rem;
    margin: 2.4rem 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line-mid);
    letter-spacing: -0.005em;
}
.seo-content h2:first-child { margin-top: 0; }
.seo-content h3 {
    color: var(--text);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.10rem;
    margin: 1.6rem 0 0.6rem;
}
.seo-content p { margin-bottom: 0.9rem; }
.seo-content ul, .seo-content ol { margin: 0.8rem 0; padding-left: 1.5rem; }
.seo-content li { margin-bottom: 0.5rem; }
.seo-content details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.10);
    border-radius: 10px;
    padding: 0.9rem 1.15rem;
    margin-bottom: 0.6rem;
    transition: border-color 0.3s, background 0.3s;
}
.seo-content details[open] {
    border-color: rgba(0, 229, 255, 0.30);
    background: rgba(0, 229, 255, 0.03);
}
.seo-content summary {
    cursor: pointer;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.seo-content summary:hover { color: var(--cyan); }
.seo-content details p { margin-top: 0.6rem; color: var(--text-soft); }

/* =====================================================
   Ad slots — hidden until approval. Remove to re-enable.
   ===================================================== */

.ad-slot-google,
.ad-slot-custom,
.ad-slot,
.ad-slot-banner-top,
.ad-slot-banner-bottom,
[id^="ad-"],
#kt-interstitial { display: none !important; }

/* =====================================================
   Reduced motion
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .orb { display: none; }
}

/* =====================================================
   Mobile
   ===================================================== */

@media (max-width: 768px) {
    body { padding: 1rem; padding-top: 90px !important; }
    h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
    .orb { filter: blur(70px); opacity: 0.30; }
    .card, .settings-panel, .tool-card, .panel { padding: 1.5rem; }
    header { margin-bottom: 2rem; }
}
