/* TxtCetra public-brand layer
 * First-party overrides loaded after the compiled Modern theme.
 * Keep product branding here rather than patching vendor/minified bundles.
 */

:root {
    --txtcetra-ink: #111827;
    --txtcetra-muted: #64748b;
    --txtcetra-line: #e7e7f2;
    --txtcetra-purple: #7450f8;
    --txtcetra-blue: #4060ff;
    --txtcetra-lilac: #bf80ff;
    --txtcetra-surface: #ffffff;
    --txtcetra-soft: #f8f7ff;
}

/* Unique header wrapper: mirrors the theme's former #main navigation scope. */
#site-header {
    position: relative;
    background: #fff;
}

#site-header .navbar-brand { margin-right: 0; }
#site-header .navbar {
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 50px;
    z-index: 100;
    font-size: 12px;
    font-weight: 700;
    transition: all .2s ease-in;
    border-bottom: 0;
}
#site-header .navbar-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: auto;
    background: rgba(13,15,44,.96);
    padding: 0 2rem;
    border-radius: 2.5rem;
    backdrop-filter: blur(10px) brightness(1.25);
}
#site-header .frontend-buttons { margin-left: 4rem; }
#site-header #login-button {
    color: var(--txtcetra-ink);
    margin-right: .5rem;
    vertical-align: middle;
}
#site-header #login-button:hover,
#site-header #login-button:focus { color: var(--txtcetra-purple); }
#site-header .navbar-nav li.nav-item a.nav-link {
    padding: 0 15px;
    color: #fff;
    text-shadow: 1px 1px 2px rgb(0 0 0 / 10%);
    font-size: 14px;
    cursor: pointer;
}
#site-header .navbar-nav li.nav-item a.nav-link:hover,
#site-header .navbar-nav li.nav-item a.nav-link:focus,
#site-header .navbar-nav li.nav-item a.active { color: #caa7ff; }
#site-header #login-buttons { width: auto; }
#site-header .action-button {
    background: #7c5cff;
    outline: none;
    text-decoration: none;
    min-width: 125px;
    color: #fff;
    padding: .7rem .95rem;
    border-radius: 35px;
    transition: background-color .15s ease, box-shadow .15s ease;
    box-shadow: 0 8px 24px rgb(116 80 248 / 20%);
    font-size: 13px;
}
#site-header .action-button:hover,
#site-header .action-button:focus { background: #5e3de7; color: #fff; }
#site-header .register-button,
#site-header .dashboard-button { background: #111827; }
#site-header .register-button:hover,
#site-header .register-button:focus,
#site-header .dashboard-button:hover,
#site-header .dashboard-button:focus { background: #5e3de7; }
#site-header #frontend-local button {
    color: var(--txtcetra-ink);
    cursor: pointer;
}
#site-header #frontend-local button:focus-visible {
    outline: 2px solid var(--txtcetra-purple);
    outline-offset: 4px;
    border-radius: 50%;
}

/* Hero: clearer product identity and a CTA that has an explicit footprint. */
#main .text-container h1 {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -.04em;
}
#main .text-container > p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
#main .btn-primary-frontend-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.65rem;
    text-decoration: none;
    box-shadow: 0 14px 35px rgb(64 96 255 / 22%);
}
#main .btn-primary-frontend-main:focus-visible {
    outline: 3px solid rgb(116 80 248 / 30%);
    outline-offset: 4px;
}
#main .banner-message-info {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
}
#main .banner-message-info > div {
    padding: 0 .8rem;
}

/* Make the transition out of the hero feel intentional rather than like a demo marquee. */
#features .marquee-box {
    overflow: visible;
    padding: 1.5rem 1rem .5rem;
}
#features .tools-marquee-text {
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: 1;
    letter-spacing: -.055em;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgb(116 80 248 / 28%);
    text-stroke: 1px rgb(116 80 248 / 28%);
    white-space: normal;
}

/* First-party product visual used instead of generic stock/vendor illustrations. */
.txtcetra-product-visual {
    width: min(100%, 520px);
    min-height: 330px;
    margin: 0 auto;
    border: 1px solid var(--txtcetra-line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 85% 0%, rgb(191 128 255 / 20%), transparent 34%),
        linear-gradient(145deg, #fff 0%, #faf9ff 65%, #f5f3ff 100%);
    box-shadow: 0 28px 70px rgb(70 55 125 / 12%);
    overflow: hidden;
    position: relative;
}
.txtcetra-product-visual::after {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    right: -75px;
    bottom: -85px;
    background: linear-gradient(135deg, rgb(64 96 255 / 10%), rgb(191 128 255 / 22%));
}
.txtcetra-visual-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--txtcetra-line);
    background: rgb(255 255 255 / 78%);
}
.txtcetra-visual-brand {
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--txtcetra-ink);
}
.txtcetra-visual-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: 11px;
    color: var(--txtcetra-muted);
}
.txtcetra-visual-status > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgb(34 197 94 / 10%);
}
.txtcetra-visual-body {
    position: relative;
    z-index: 1;
    padding: 2.4rem 2rem 2rem;
    text-align: left;
}
.txtcetra-visual-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #fff;
    font-size: 27px;
    background: linear-gradient(135deg, var(--txtcetra-blue), var(--txtcetra-lilac));
    box-shadow: 0 18px 35px rgb(116 80 248 / 22%);
    margin-bottom: 1.5rem;
}
.txtcetra-visual-eyebrow {
    margin: 0 0 .4rem;
    color: var(--txtcetra-purple);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.txtcetra-visual-body h5 {
    margin: 0;
    color: var(--txtcetra-ink);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: -.035em;
    font-weight: 800;
}
.txtcetra-visual-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.55rem;
}
.txtcetra-visual-pills span {
    padding: .48rem .75rem;
    border: 1px solid #e5e1ff;
    border-radius: 999px;
    background: #fff;
    color: #55566a;
    font-size: 12px;
    font-weight: 600;
}

/* First-party feature visual used instead of theme stock illustrations. */
.txtcetra-benefit-visual {
    width: min(100%, 330px);
    min-height: 260px;
    margin: 0 auto;
    border: 1px solid var(--txtcetra-line);
    border-radius: 26px;
    background:
        radial-gradient(circle at 80% 10%, rgb(191 128 255 / 25%), transparent 38%),
        linear-gradient(145deg, #fff, #f7f5ff);
    box-shadow: 0 22px 60px rgb(70 55 125 / 10%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
}
.txtcetra-benefit-visual span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--txtcetra-ink);
}
.txtcetra-benefit-visual i {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    color: #fff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--txtcetra-blue), var(--txtcetra-lilac));
    box-shadow: 0 20px 38px rgb(116 80 248 / 24%);
}

/* Templates: introduce breathing room and reduce the "theme demo" feel. */
#templates-wrapper {
    padding-top: 4rem;
}
#templates-wrapper .special-gradient-title {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -.035em;
}
#templates-wrapper .card {
    border: 1px solid #ecebf4;
    box-shadow: 0 12px 32px rgb(59 53 91 / 5%);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#templates-wrapper .card:hover,
#templates-wrapper .card:focus-within {
    transform: translateY(-3px);
    border-color: #dcd4ff;
    box-shadow: 0 20px 42px rgb(78 62 150 / 10%);
}

@media (max-width: 991.98px) {
    #site-header .navbar-nav {
        gap: .35rem;
        border-radius: 18px;
        padding: .65rem 1rem;
    }
    #site-header .frontend-buttons { margin-left: 1rem; }
    #site-header .navbar-collapse {
        background: rgb(13 15 44 / 98%);
        border-radius: 18px;
        padding: .75rem;
        margin-top: .5rem;
    }
    #site-header .navbar-nav li.nav-item a.nav-link { padding: .35rem .65rem; }
    .txtcetra-product-visual { min-height: 285px; margin-top: 1.5rem; }
}

@media (max-width: 767.98px) {
    #main .banner-message-info { display: block; }
    #main .banner-message-info > * {
        display: block;
        width: 100%;
        margin-bottom: .65rem;
    }
    #site-header .frontend-buttons { margin-left: 0; }
    .txtcetra-visual-body { padding: 1.8rem 1.4rem; }
    #templates-wrapper { padding-top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .txtcetra-product-visual,
    #templates-wrapper .card,
    #site-header .action-button { transition: none; }
}


/* Premium feature artwork: product-style illustrations, not stock imagery. */
.txtcetra-feature-art {
    position: relative;
    min-height: 365px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(145deg, #f4f1ff, #fbfbff 58%, #eef4ff);
    border: 1px solid #ebe7fb;
    box-shadow: 0 28px 70px rgb(60 48 112 / 12%);
    isolation: isolate;
}
.txtcetra-art-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    opacity: .75;
    z-index: -1;
}
.txtcetra-art-orb-one {
    width: 210px;
    height: 210px;
    background: radial-gradient(circle, rgb(191 128 255 / 44%), rgb(191 128 255 / 0) 72%);
    top: -62px;
    right: -28px;
}
.txtcetra-art-orb-two {
    width: 245px;
    height: 245px;
    background: radial-gradient(circle, rgb(64 96 255 / 25%), rgb(64 96 255 / 0) 70%);
    bottom: -98px;
    left: -62px;
}
.txtcetra-art-window {
    width: min(92%, 455px);
    min-height: 286px;
    border-radius: 22px;
    overflow: hidden;
    background: rgb(255 255 255 / 92%);
    border: 1px solid rgb(218 213 242 / 95%);
    box-shadow: 0 28px 60px rgb(55 48 97 / 17%);
    transform: rotate(-1deg);
    backdrop-filter: blur(18px);
}
.txtcetra-art-topbar {
    height: 44px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    border-bottom: 1px solid #ece9f7;
    background: rgb(255 255 255 / 85%);
}
.txtcetra-art-topbar strong {
    color: #1b2032;
    font-size: 12px;
    letter-spacing: -.01em;
}
.txtcetra-art-dots { display: flex; gap: 5px; }
.txtcetra-art-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d7d7e4;
}
.txtcetra-art-dots span:first-child { background: #ff8a91; }
.txtcetra-art-dots span:nth-child(2) { background: #ffd36c; }
.txtcetra-art-dots span:nth-child(3) { background: #7bd9a5; }
.txtcetra-art-ready {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: 10px;
    color: #6d7181;
}
.txtcetra-art-ready i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgb(34 197 94 / 10%);
}
.txtcetra-art-shell {
    display: grid;
    grid-template-columns: 54px 1fr;
    min-height: 242px;
}
.txtcetra-art-rail {
    border-right: 1px solid #efedf7;
    padding: .75rem .55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    background: #fbfaff;
}
.txtcetra-art-rail span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #9a96ab;
    font-size: 12px;
}
.txtcetra-art-rail span.active {
    color: #fff;
    background: linear-gradient(135deg, #4060ff, #a86fff);
    box-shadow: 0 10px 22px rgb(116 80 248 / 22%);
}
.txtcetra-art-canvas {
    padding: 1.2rem 1.3rem 1.35rem;
    min-width: 0;
}
.txtcetra-art-heading {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
}
.txtcetra-art-heading > div { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.txtcetra-art-heading small {
    color: #8d8a9a;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.txtcetra-art-heading b {
    color: #202436;
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.txtcetra-art-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #4060ff, #bf80ff);
    box-shadow: 0 12px 24px rgb(116 80 248 / 20%);
}
.txtcetra-template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .65rem;
}
.txtcetra-template-grid span {
    min-height: 105px;
    padding: .75rem .65rem;
    border: 1px solid #ece9f7;
    border-radius: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    box-shadow: 0 8px 22px rgb(48 45 75 / 5%);
}
.txtcetra-template-grid i { color: #7d5bfb; margin-bottom: auto; font-size: 17px; }
.txtcetra-template-grid b { font-size: 11px; color: #202436; }
.txtcetra-template-grid small { font-size: 8px; color: #9693a5; margin-top: .2rem; }
.txtcetra-language-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding: .3rem 0 .8rem;
}
.txtcetra-language-cloud span,
.txtcetra-art-pills span {
    border: 1px solid #e5e1f6;
    background: #fff;
    border-radius: 999px;
    padding: .48rem .72rem;
    font-size: 10px;
    font-weight: 700;
    color: #646071;
}
.txtcetra-language-cloud span.primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #4060ff, #a86fff);
}
.txtcetra-art-lines { display: grid; gap: .45rem; padding-top: .45rem; }
.txtcetra-art-lines i {
    display: block;
    height: 8px;
    border-radius: 99px;
    background: linear-gradient(90deg, #ebe8f6, #f4f2f9);
}
.txtcetra-art-lines i:nth-child(2) { width: 82%; }
.txtcetra-art-lines i:nth-child(3) { width: 64%; }
.txtcetra-audio-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d2132, #272244);
    box-shadow: 0 14px 30px rgb(33 31 58 / 18%);
}
.txtcetra-audio-card button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a7cff, #bd7fff);
    color: #fff;
}
.txtcetra-waveform { display: flex; align-items: center; gap: 3px; flex: 1; height: 44px; }
.txtcetra-waveform i {
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(#d49aff, #6f83ff);
    height: 14px;
}
.txtcetra-waveform i:nth-child(3n) { height: 34px; }
.txtcetra-waveform i:nth-child(4n) { height: 24px; }
.txtcetra-waveform i:nth-child(5n) { height: 40px; }
.txtcetra-art-pills { display: flex; gap: .45rem; margin-top: .75rem; }
.txtcetra-workflow-stack {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding-top: .8rem;
}
.txtcetra-workflow-stack span {
    min-width: 78px;
    min-height: 80px;
    border: 1px solid #ebe8f6;
    border-radius: 15px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    color: #6f5af7;
}
.txtcetra-workflow-stack b { color: #3c3c49; font-size: 9px; }
.txtcetra-workflow-stack em { width: 18px; height: 2px; background: #ddd7f7; }
.txtcetra-provider-panel { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding-top: .35rem; }
.txtcetra-provider-panel > div {
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid #ebe8f6;
    background: #fff;
    text-align: left;
}
.txtcetra-provider-panel small { display:block; font-size:8px; color:#9995a6; text-transform:uppercase; letter-spacing:.08em; }
.txtcetra-provider-panel b { display:block; color:#242737; font-size:15px; margin:.3rem 0 .6rem; }
.txtcetra-provider-panel span { font-size:8px; color:#736f80; padding:.3rem .5rem; background:#f3f1fb; border-radius:999px; }
.txtcetra-provider-panel span.on { color:#16894b; background:#eafaf0; }
.txtcetra-chat-preview { display:grid; gap:.7rem; padding-top:.2rem; }
.txtcetra-chat-preview p { margin:0; padding:.7rem .9rem; font-size:10px; line-height:1.45; border-radius:13px; max-width:88%; }
.txtcetra-chat-preview p.user { justify-self:end; background:#7660f5; color:#fff; border-bottom-right-radius:5px; }
.txtcetra-chat-preview p.assistant { justify-self:start; background:#f2f0f8; color:#4f4c5b; border-bottom-left-radius:5px; }
.txtcetra-chat-preview p.assistant i { color:#7d5bfb; margin-right:.4rem; }
.txtcetra-image-grid { display:grid; grid-template-columns:1fr 1fr; gap:.45rem; }
.txtcetra-image-grid i { aspect-ratio:1.65; border-radius:11px; background: linear-gradient(135deg,#425eff,#be82ff); opacity:.82; }
.txtcetra-image-grid i:nth-child(2) { background: linear-gradient(135deg,#ffae73,#ff75ae); }
.txtcetra-image-grid i:nth-child(3) { background: linear-gradient(135deg,#55c9bc,#5e8cff); }
.txtcetra-image-grid i:nth-child(4) { background: linear-gradient(135deg,#df80ff,#6a6eff); }
.txtcetra-prompt-bar { display:flex; align-items:center; justify-content:space-between; margin-top:.55rem; padding:.55rem .7rem; border:1px solid #e8e5f4; border-radius:11px; background:#fff; color:#92909f; font-size:9px; }
.txtcetra-prompt-bar i { width:22px; height:22px; display:grid; place-items:center; border-radius:7px; background:#7c5cff; color:#fff; }
.txtcetra-security-panel { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.8rem; padding:1rem; border:1px solid #e8e5f4; border-radius:15px; background:#fff; margin-top:.5rem; }
.txtcetra-security-panel .shield { width:46px; height:46px; border-radius:14px; display:grid; place-items:center; background:linear-gradient(135deg,#4060ff,#a86fff); color:#fff; }
.txtcetra-security-panel > div:nth-child(2) { display:flex; flex-direction:column; text-align:left; }
.txtcetra-security-panel b { color:#282b3a; font-size:11px; }
.txtcetra-security-panel small { color:#9995a6; font-size:8px; margin-top:.2rem; }
.txtcetra-security-panel .toggle { width:32px; height:18px; border-radius:999px; background:#7c5cff; padding:3px; }
.txtcetra-security-panel .toggle i { display:block; width:12px; height:12px; border-radius:50%; background:#fff; margin-left:auto; }

@media (max-width: 767.98px) {
    .txtcetra-feature-art { min-height: 330px; }
    .txtcetra-art-window { width: 94%; }
    .txtcetra-template-grid { gap: .4rem; }
    .txtcetra-template-grid span { min-height: 92px; padding: .6rem; }
    .txtcetra-art-shell { grid-template-columns: 46px 1fr; }
    .txtcetra-art-canvas { padding: 1rem; }
}
