/* NewPrompt — home.css */

.np-home { background: var(--np-bg); padding-bottom: 0; }
.np-section-inner { max-width: 1120px; margin-inline: auto; padding-inline: 1.5rem; }

/* Hero */
.np-home-hero {
    position: relative;
    overflow: hidden;
    padding: 3.05rem 0 1.85rem;
}

.np-home-hero::before {
    content: '';
    position: absolute;
    inset: -30% 0 auto;
    height: 520px;
    background:
        radial-gradient(ellipse 54% 48% at 50% 16%, rgba(99,91,255,0.17), transparent 70%),
        radial-gradient(ellipse 40% 36% at 70% 18%, rgba(255,90,47,0.08), transparent 70%);
    pointer-events: none;
}

.np-hero-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    align-items: start;
    gap: 2rem;
}

.np-hero-main {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.np-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin-bottom: 1.35rem;
    padding: 0.34rem 0.82rem;
    border: 1px solid rgba(139,125,255,0.45);
    border-radius: 999px;
    background: rgba(99,91,255,0.12);
    color: #b9b4ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
}


.np-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #8b7dff;
    box-shadow: 0 0 16px rgba(139,125,255,0.9);
}

.np-home-title {
    max-width: 760px;
    font-size: clamp(2.6rem, 4.65vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.058em;
    font-weight: 950;
    text-wrap: balance;
}

.np-home-title-accent {
    color: #818cf8;
    text-shadow: 0 0 28px rgba(99,91,255,0.35);
}

.np-home-sub {
    max-width: 720px;
    margin-top: 1.35rem;
    color: #d9e2f1;
    font-size: 1.03rem;
    line-height: 1.72;
}

.np-home-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 1.9rem;
    flex-wrap: wrap;
}

.np-btn--lg { min-height: 52px; padding: 0.9rem 1.55rem; font-size: 0.96rem; border-radius: 11px; }
.np-btn--menu svg { opacity: 0.95; }
.np-btn--hot {
    background: linear-gradient(135deg, var(--np-hot), #ff3d18);
    color: #fff;
    box-shadow: 0 18px 42px rgba(239,68,68,0.24);
}
.np-btn--hot:hover { background: linear-gradient(135deg, var(--np-hot-light), var(--np-hot)); color: #fff; text-decoration: none; }

.np-home-metric-row {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    margin-top: 2.2rem;
}

.np-home-metric {
    display: block;
    min-width: 112px;
    padding: 0 1.2rem;
    border-right: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    color: inherit;
    text-decoration: none;
}

.np-home-metric:last-child { border-right: none; }
.np-home-metric strong { display: block; color: #fff; font-size: 1.25rem; line-height: 1; font-weight: 850; }
.np-home-metric--link strong { color: #fb7185; }
.np-home-metric span { display: block; margin-top: 0.35rem; color: var(--np-text-muted); font-size: 0.68rem; line-height: 1.15; letter-spacing: 0.08em; text-transform: uppercase; }
.np-home-metric--link { border-radius: 10px; padding: 4px 12px; min-width: 0; transition: background 0.15s, transform 0.15s; }
.np-home-metric--link:hover { background: rgba(239,68,68,0.1); transform: translateY(-1px); text-decoration: none; }

.np-hero-mini {
    position: absolute;
    top: 2.375rem;
    right: 4rem;
    width: 260px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(139,125,255,0.55);
    border-radius: 17px;
    background: rgba(20,22,36,0.78);
    box-shadow: 0 18px 52px rgba(0,0,0,0.32);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.np-hero-mini:hover,
.np-hero-mini:focus-visible { text-decoration: none; border-color: rgba(139,125,255,0.8); transform: translateY(-1px); outline: none; }
.np-hero-mini-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; color: #b9b4ff; background: rgba(99,91,255,0.18); border: 1px solid rgba(139,125,255,0.38); }
.np-hero-mini-body strong { display: block; color: #fff; font-size: 0.95rem; line-height: 1.15; }
.np-hero-mini-body em { display: block; margin-top: 0.25rem; color: var(--np-text-secondary); font-size: 0.75rem; font-style: normal; line-height: 1.25; }

/* Sandbox */
.np-sandbox-panel { padding: 0.8rem 0 2.2rem; scroll-margin-top: 58px; }
.np-sandbox-panel[hidden] { display: none !important; }
.np-sandbox-shell {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(20,23,33,0.98), rgba(14,16,23,0.98));
    box-shadow: 0 28px 80px rgba(0,0,0,0.28);
}
.np-sandbox-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.45rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.np-sandbox-header-left { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.np-sandbox-eyebrow { color: #b9c4ff; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.np-sandbox-sep { color: var(--np-text-muted); }
.np-sandbox-header h2 { font-size: 1rem; font-weight: 900; }
.np-sandbox-close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; background: rgba(255,255,255,0.04); color: #dbeafe; cursor: pointer; }
.np-sandbox-close:hover { background: rgba(255,255,255,0.08); }
.np-sandbox-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: 1.35rem; padding: 1.45rem; }
.np-sandbox-pane-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; color: #fff; font-weight: 800; font-size: 0.85rem; }
.np-sandbox-pane-header span:last-child { color: var(--np-text-secondary); font-weight: 600; font-size: 0.75rem; }
.np-sandbox-editor textarea { width: 100%; min-height: 250px; resize: vertical; padding: 1.1rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; background: #090b10; color: #dbeafe; font-family: var(--np-font-mono); font-size: 0.82rem; line-height: 1.75; outline: none; }
.np-sandbox-editor textarea:focus { border-color: rgba(139,125,255,0.5); box-shadow: 0 0 0 3px rgba(99,91,255,0.12); }
.np-sandbox-output { min-height: 250px; padding: 1rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; background: radial-gradient(circle at 75% 0%, rgba(99,91,255,0.16), transparent 42%), #090b10; }
.np-sandbox-output-card { padding: 1rem; border: 1px solid rgba(255,255,255,0.09); border-radius: 14px; background: rgba(255,255,255,0.045); margin-bottom: 0.75rem; }
.np-sandbox-output-card--accent { border-color: rgba(139,125,255,0.32); background: rgba(99,91,255,0.1); }
.np-sandbox-output-label { display: block; margin-bottom: 0.3rem; color: #8b7dff; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.62rem; font-weight: 900; }
.np-sandbox-output-card strong { display: block; color: #fff; font-size: 0.95rem; }
.np-sandbox-output-card p { margin-top: 0.35rem; color: #cbd5e1; font-size: 0.78rem; line-height: 1.6; }
.np-sandbox-output-status { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 0.75rem 0.9rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 13px; background: rgba(255,255,255,0.04); }
.np-sandbox-output-status span { color: var(--np-text-muted); font-size: 0.76rem; }
.np-sandbox-output-status strong { display: inline-flex; align-items: center; gap: 0.4rem; color: #34d399; font-size: 0.75rem; white-space: nowrap; }
.np-sandbox-output-status i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 16px rgba(16,185,129,0.8); }
.np-sandbox-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0 1.45rem 1.45rem; flex-wrap: wrap; }
.np-sandbox-actions button, .np-sandbox-actions a { min-height: 40px; padding: 0.65rem 1rem; border: 1px solid rgba(139,125,255,0.25); border-radius: 999px; background: rgba(99,91,255,0.13); color: #dbeafe; font: inherit; font-weight: 800; font-size: 0.78rem; cursor: pointer; text-decoration: none; }
.np-sandbox-actions a { margin-left: auto; }
.np-sandbox-actions button:hover, .np-sandbox-actions a:hover { border-color: rgba(139,125,255,0.55); background: rgba(99,91,255,0.2); text-decoration: none; }

/* Feature strip */
.np-features { padding: 0.35rem 0 1.75rem; }
.np-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.np-feature-card { min-height: 132px; padding: 1.15rem 1.2rem; background: #151820; border: 1px solid rgba(255,255,255,0.11); border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.025); }
.np-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 0.85rem;
    border-radius: 9px;
    font-size: 1rem;
    line-height: 1;
    border: 1px solid currentColor;
    box-shadow: 0 0 22px rgba(99,91,255,0.08);
}
.np-feature-icon--bolt { color: #ff7a45; background: rgba(255,122,69,0.11); box-shadow: 0 0 22px rgba(255,122,69,0.14); }
.np-feature-icon--model { color: #fbbf24; background: rgba(251,191,36,0.10); box-shadow: 0 0 22px rgba(251,191,36,0.12); }
.np-feature-icon--prompt { color: #8b7dff; background: rgba(139,125,255,0.13); box-shadow: 0 0 22px rgba(139,125,255,0.16); }
.np-feature-icon--copy { color: #f472b6; background: rgba(244,114,182,0.11); box-shadow: 0 0 22px rgba(244,114,182,0.14); }
.np-feature-title { margin-bottom: 0.45rem; color: #fff; font-size: 0.86rem; font-weight: 800; letter-spacing: -0.02em; }
.np-feature-desc { color: #cbd5e1; font-size: 0.76rem; line-height: 1.62; }

/* Animated action demo */
.np-action-demo { padding: 1.15rem 0 2.1rem; }
.np-action-card {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.2rem;
    align-items: center;
    min-height: 340px;
    padding: 2rem 2.2rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    background:
        radial-gradient(ellipse 58% 88% at 68% 50%, rgba(99,91,255,0.19), transparent 72%),
        linear-gradient(135deg, rgba(24,27,38,0.98), rgba(16,18,25,0.98));
    box-shadow: 0 28px 80px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;
}

.np-live-pill { display: inline-flex; align-items: center; gap: 0.38rem; padding: 0.35rem 0.64rem; margin-bottom: 1.05rem; border-radius: 999px; background: rgba(239,68,68,0.1); border: 1px solid rgba(248,113,113,0.38); color: #fecaca; font-size: 0.72rem; font-weight: 800; }
.np-live-pill span { color: #fb7185; font-size: 0.58rem; }
.np-action-copy h2 { max-width: 420px; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 900; }
.np-action-copy p { max-width: 520px; margin-top: 1rem; color: #d5deec; font-size: 0.9rem; line-height: 1.7; }
.np-demo-stats { display: grid; grid-template-columns: repeat(4, minmax(95px, 1fr)); gap: 10px; margin-top: 1.5rem; }
.np-demo-stat { padding: 0.92rem 0.95rem; border: 1px solid rgba(255,255,255,0.11); border-radius: 12px; background: rgba(255,255,255,0.035); }
.np-demo-stat span { display: block; margin-bottom: 0.35rem; color: var(--np-text-muted); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.np-demo-stat strong { color: #fff; font-size: 1.18rem; letter-spacing: -0.03em; }
.np-demo-stat--green { border-color: rgba(34,197,94,0.32); background: rgba(34,197,94,0.07); }
.np-demo-stat--purple { border-color: rgba(139,125,255,0.42); background: rgba(99,91,255,0.08); }
.np-demo-stat--blue { border-color: rgba(59,130,246,0.25); background: rgba(59,130,246,0.06); }
.np-demo-progress { width: 100%; height: 9px; margin-top: 1.1rem; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.06); }
.np-demo-progress-fill { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ef4444, #8b5cf6, #10b981); animation: np-progress-fill 2.8s ease-out infinite; transform-origin: left center; }
@keyframes np-progress-fill { 0% { transform: scaleX(0.22); opacity: 0.8; } 55%, 100% { transform: scaleX(1); opacity: 1; } }

.np-demo-window { padding: 0.95rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 22px; background: rgba(8,10,15,0.7); box-shadow: 0 22px 70px rgba(0,0,0,0.38); animation: np-demo-float 5s ease-in-out infinite; }
@keyframes np-demo-float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-7px); } }
.np-demo-window-top { display: flex; align-items: center; gap: 0.4rem; padding: 0.1rem 0.2rem 0.72rem; }
.np-dot { width: 9px; height: 9px; border-radius: 999px; }
.np-dot--red { background: #ef4444; }
.np-dot--yellow { background: #f59e0b; }
.np-dot--green { background: #10b981; }
.np-window-label { margin-left: auto; padding: 0.25rem 0.55rem; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--np-text-muted); font-size: 0.68rem; font-weight: 800; }
.np-demo-terminal { min-height: 214px; padding: 1.05rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; background: linear-gradient(180deg, #0b0e14, #090b10); font-family: var(--np-font-mono); font-size: 0.72rem; line-height: 1.85; color: #dbeafe; overflow: hidden; }
.np-demo-line { opacity: 0; transform: translateY(6px); animation: np-type-in 0.6s ease forwards; white-space: nowrap; }
.np-demo-line:nth-child(2) { animation-delay: 0.25s; }
.np-demo-line:nth-child(3) { animation-delay: 0.55s; }
.np-demo-line:nth-child(4) { animation-delay: 0.85s; }
.np-demo-line:nth-child(5) { animation-delay: 1.15s; }
.np-demo-line:nth-child(6) { animation-delay: 1.45s; }
.np-demo-line--dim { color: #64748b; }
.np-demo-line--indent { padding-left: 1rem; color: #cbd5e1; }
.np-demo-line--accent { padding-left: 1rem; color: #5eead4; }
@keyframes np-type-in { to { opacity: 1; transform: translateY(0); } }
.np-demo-status { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.75rem; padding: 0.7rem 0.9rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; background: rgba(255,255,255,0.035); }
.np-demo-status span { color: var(--np-text-muted); font-size: 0.72rem; font-weight: 700; }
.np-demo-status strong { color: #34d399; font-size: 0.74rem; }
.np-demo-status strong span { color: #34d399; font-size: 0.62rem; }

/* Workflows */
.np-workflows { padding: 1rem 0 1.5rem; }
.np-workflows-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.np-workflows-head h2 { font-size: 1.02rem; font-weight: 900; letter-spacing: -0.02em; }
.np-workflows-head a { color: #ff5a7d; font-size: 0.78rem; font-weight: 800; text-decoration: none; }
.np-workflow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.np-workflow-card { display: flex; align-items: center; gap: 0.75rem; min-height: 74px; padding: 1rem; border: 1px solid rgba(255,255,255,0.11); border-radius: 10px; background: #151820; text-decoration: none; transition: border-color .15s, transform .12s, background .15s; }
.np-workflow-card:hover { border-color: rgba(139,125,255,0.5); background: #181b26; text-decoration: none; transform: translateY(-1px); }
.np-workflow-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    font-size: 1.25rem;
    line-height: 1;
}

.np-workflow-card--prompt .np-workflow-icon {
    color: #a78bfa;
    filter: drop-shadow(0 0 8px #a78bfa);
}

.np-workflow-card--structured .np-workflow-icon {
    color: #38bdf8;
    filter: drop-shadow(0 0 8px #38bdf8);
}

.np-workflow-card--coding .np-workflow-icon {
    color: #f59e0b;
    filter: drop-shadow(0 0 8px #f59e0b);
}

.np-workflow-card--context .np-workflow-icon {
    color: #34d399;
    filter: drop-shadow(0 0 8px #34d399);
}

.np-workflow-card--utility .np-workflow-icon {
    color: #fb7185;
    filter: drop-shadow(0 0 8px #fb7185);
}
.np-workflow-card strong { display: block; color: #fff; font-size: 0.82rem; line-height: 1.15; }
.np-workflow-card em { display: block; margin-top: 0.2rem; color: var(--np-text-secondary); font-size: 0.72rem; font-style: normal; }
.np-workflow-card--soon { opacity: 0.65; }
.np-workflow-card--soon:hover { opacity: 0.85; }
.np-workflow-card--soon em { color: var(--np-text-muted); font-size: 0.68rem; letter-spacing: 0.03em; }
.np-resource-strip { display: flex; align-items: center; gap: 0.9rem; margin-top: 10px; padding: 1rem 1.15rem; border: 1px solid rgba(139,125,255,0.45); border-radius: 10px; background: rgba(99,91,255,0.12); text-decoration: none; }
.np-resource-strip:hover { text-decoration: none; border-color: rgba(139,125,255,0.75); }
.np-resource-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #b9b4ff; background: rgba(99,91,255,0.18); border: 1px solid rgba(139,125,255,0.28); }
.np-resource-strip strong { display: block; color: #fff; font-size: 0.9rem; }
.np-resource-strip em { display: block; margin-top: 0.1rem; color: #cbd5e1; font-size: 0.74rem; font-style: normal; }
.np-resource-strip b { margin-left: auto; padding: 0.32rem 0.72rem; border-radius: 999px; background: rgba(99,91,255,0.35); border: 1px solid rgba(139,125,255,0.35); color: #fff; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 980px) {
    .np-hero-grid { display: block; }
    .np-hero-mini { position: static; margin: 2rem auto 0; }
    .np-features-grid, .np-workflow-grid { grid-template-columns: repeat(2, 1fr); }
    .np-action-card, .np-sandbox-grid { grid-template-columns: 1fr; }
    .np-demo-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .np-home-hero { padding-top: 2.05rem; }
    .np-section-inner { padding-inline: 1rem; }
    .np-home-actions { flex-direction: column; align-items: stretch; }
    /* Keep stats horizontal — 3 equal columns, tighter padding */
    .np-home-metric-row { grid-template-columns: repeat(3, 1fr); }
    .np-home-metric { min-width: 0; padding: 0 0.55rem; }
    .np-home-metric strong { font-size: 1.05rem; }
    .np-home-metric span { font-size: 0.6rem; }
    /* Sandbox full-width on mobile */
    .np-hero-mini { width: 100%; max-width: 100%; margin: 1.5rem 0 0; box-sizing: border-box; }
    .np-features-grid, .np-workflow-grid { grid-template-columns: 1fr; }
    .np-action-card { padding: 1.15rem; border-radius: 18px; min-height: auto; }
    .np-demo-window { display: none; }
    .np-resource-strip { align-items: flex-start; }
    .np-resource-strip b { display: none; }
    .np-sandbox-header-left { flex-wrap: wrap; }
    .np-sandbox-actions a { margin-left: 0; }
    /* Prevent demo terminal text from overflowing */
    .np-demo-terminal { font-size: 0.68rem; overflow: hidden; }
    .np-demo-line { white-space: normal; word-break: break-word; }
    /* Workflow cards: prevent icon + text squish */
    .np-workflow-card { gap: 0.55rem; padding: 0.85rem; }
    .np-workflow-icon { width: 32px; height: 32px; font-size: 1.05rem; }
    /* Home metric row: keep 3 cols but tighter */
    .np-home-metric-row { gap: 0; }
}

/* 390px — tighter hero */
@media (max-width: 390px) {
    .np-home-hero { padding-top: 1.5rem; }
    .np-home-title { font-size: clamp(2rem, 8vw, 2.6rem); }
    .np-home-sub { font-size: 0.92rem; }
    .np-workflow-card strong { font-size: 0.78rem; }
    .np-workflow-card em { font-size: 0.65rem; }
    /* Demo stats: 2 cols on tiny screens */
    .np-demo-stats { grid-template-columns: 1fr 1fr; }
}

/* 360px — smallest Android baseline */
@media (max-width: 360px) {
    .np-section-inner { padding-inline: 0.75rem; }
    .np-home-actions { gap: 0.6rem; }
    .np-btn--lg { min-height: 46px; padding: 0.75rem 1.1rem; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
    .np-demo-progress-fill,
    .np-demo-window,
    .np-demo-line { animation: none !important; opacity: 1; transform: none; }
}
