/*
Theme Name: Trustnova AI
Theme URI: https://trustnova.ai/
Author: Trustnova
Description: A focused, dark marketing theme for Trustnova's AI strategy, infrastructure, deployment, and managed services practice.
Version: 1.0.3
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: trustnova
*/

:root {
  --tn-bg: #050608;
  --tn-bg-soft: #0b0d11;
  --tn-panel: rgba(17, 19, 25, 0.82);
  --tn-border: rgba(255, 255, 255, 0.1);
  --tn-text: #f5f6f8;
  --tn-muted: #a5a9b2;
  --tn-red: #f2182d;
  --tn-red-dark: #a60d1d;
  --tn-max: 1180px;
  --tn-radius: 18px;
  --tn-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(242, 24, 45, 0.12), transparent 28rem),
    radial-gradient(circle at 20% 38%, rgba(255, 255, 255, 0.035), transparent 22rem),
    var(--tn-bg);
  color: var(--tn-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.tn-wrap { width: min(calc(100% - 40px), var(--tn-max)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; margin: 8px; padding: 10px 14px; background: #fff; color: #000; z-index: 9999; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: .25s ease; }
.site-header.is-scrolled { background: rgba(5, 6, 8, .88); border-color: var(--tn-border); backdrop-filter: blur(18px); }
.header-inner { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.site-brand { display: flex; align-items: center; flex: 0 0 auto; margin-left: -8px; }
.site-brand a { display: block; line-height: 0; }
.site-brand img { width: clamp(300px, 26vw, 380px); max-width: none; max-height: none; object-fit: contain; object-position: left center; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: #d5d7dc; text-decoration: none; font-size: .91rem; font-weight: 650; letter-spacing: .02em; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: #fff; }
.nav-cta { padding: 10px 17px; border: 1px solid rgba(242,24,45,.55); border-radius: 999px; background: rgba(242,24,45,.08); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--tn-border); border-radius: 10px; background: #101218; color: #fff; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; transition: .2s ease; }

.hero { min-height: 710px; display: grid; align-items: center; padding: 90px 0 100px; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: 70px; border: 1px solid rgba(242,24,45,.16); border-radius: 50%; box-shadow: 0 0 100px rgba(242,24,45,.08), inset 0 0 100px rgba(242,24,45,.04); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 74px; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #f26b79; font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--tn-red); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 820px; margin-top: 22px; font-size: clamp(3.35rem, 7vw, 6.5rem); font-weight: 840; }
h1 .accent { color: transparent; -webkit-text-stroke: 1px #f5f6f8; }
.hero-copy > p { max-width: 650px; margin: 26px 0 0; color: #b8bbc3; font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; border: 1px solid transparent; border-radius: 10px; background: linear-gradient(135deg, var(--tn-red), var(--tn-red-dark)); color: #fff; text-decoration: none; font-size: .92rem; font-weight: 800; box-shadow: 0 12px 34px rgba(242,24,45,.18); transition: transform .2s ease, box-shadow .2s ease; cursor: pointer; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(242,24,45,.28); }
.button-secondary { background: transparent; border-color: var(--tn-border); box-shadow: none; color: #e6e7ea; }
.button-secondary:hover { border-color: rgba(255,255,255,.28); box-shadow: none; }
.hero-visual { min-height: 520px; position: relative; display: grid; place-items: center; }
.ai-core { width: min(100%, 460px); aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.ai-core::before, .ai-core::after { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.12); border-radius: 34% 66% 62% 38% / 43% 35% 65% 57%; box-shadow: 0 0 70px rgba(242,24,45,.06); animation: tn-spin 22s linear infinite; }
.ai-core::after { inset: 19%; border-color: rgba(242,24,45,.42); animation-direction: reverse; animation-duration: 14s; }
.core-center { width: 48%; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(242,24,45,.42); border-radius: 50%; background: radial-gradient(circle at 45% 38%, rgba(242,24,45,.28), rgba(9,10,13,.94) 66%); box-shadow: 0 0 90px rgba(242,24,45,.22), inset 0 0 35px rgba(255,255,255,.035); position: relative; z-index: 2; }
.core-word { background: linear-gradient(180deg, #fff 0%, #d9dadd 46%, #888c94 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(2.3rem, 4.5vw, 3.65rem); font-weight: 850; letter-spacing: -.055em; line-height: 1; text-shadow: 0 10px 30px rgba(0,0,0,.28); }
.data-node { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px #fff; z-index: 3; }
.node-a { left: 4%; top: 45%; }.node-b { right: 11%; top: 17%; background: var(--tn-red); box-shadow: 0 0 15px var(--tn-red); }.node-c { right: 3%; bottom: 28%; }
@keyframes tn-spin { to { transform: rotate(360deg); } }

.trust-strip { border-block: 1px solid var(--tn-border); background: rgba(255,255,255,.018); }
.trust-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.trust-label { color: #777c86; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.trust-points { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 28px; color: #c8cad0; font-size: .86rem; }
.trust-points span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--tn-red); }

.section { padding: 120px 0; }
.section-kicker { margin-bottom: 18px; color: #f25b6b; font-size: .73rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.section-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: end; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.35rem, 4.5vw, 4.4rem); }
.section-head p { margin: 0; color: var(--tn-muted); font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { min-height: 315px; padding: 30px; border: 1px solid var(--tn-border); border-radius: var(--tn-radius); background: linear-gradient(155deg, rgba(255,255,255,.055), rgba(255,255,255,.012)); box-shadow: var(--tn-shadow); position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(242,24,45,.35); }
.card-number { color: #666b75; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; }
.card h3 { margin-top: 76px; font-size: 1.35rem; }
.card p { margin: 15px 0 0; color: var(--tn-muted); font-size: .92rem; }
.card::after { content: ""; position: absolute; width: 90px; height: 2px; left: 30px; bottom: 0; background: var(--tn-red); transform: scaleX(.25); transform-origin: left; transition: transform .25s ease; }
.card:hover::after { transform: scaleX(1); }

.approach { background: linear-gradient(180deg, transparent, rgba(255,255,255,.025), transparent); }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.approach-copy h2 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
.approach-copy > p { margin: 24px 0 0; color: var(--tn-muted); }
.steps { margin: 42px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { counter-increment: steps; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--tn-border); }
.steps li::before { content: "0" counter(steps); color: var(--tn-red); font-family: ui-monospace, monospace; font-size: .75rem; padding-top: 3px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--tn-muted); font-size: .9rem; }
.model-panel { min-height: 580px; padding: 44px; border: 1px solid var(--tn-border); border-radius: 26px; background: #0a0c10; box-shadow: var(--tn-shadow); position: relative; overflow: hidden; }
.model-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent); }
.panel-title { position: relative; color: #8d929c; font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.model-stack { position: relative; display: grid; gap: 16px; margin-top: 75px; }
.model-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 22px; border: 1px solid var(--tn-border); border-radius: 12px; background: rgba(12,14,18,.92); }
.model-row strong { font-size: .95rem; }.model-row span { color: #7f848e; font-size: .73rem; }.model-dot { width: 9px; height: 9px; border-radius: 50%; background: #48d597; box-shadow: 0 0 12px rgba(72,213,151,.5); }
.model-row.featured { border-color: rgba(242,24,45,.38); transform: translateX(28px); }
.model-row.featured .model-dot { background: var(--tn-red); box-shadow: 0 0 12px rgba(242,24,45,.6); }

.cta-section { padding: 40px 0 120px; }
.cta-box { padding: 72px; border: 1px solid rgba(242,24,45,.28); border-radius: 26px; background: radial-gradient(circle at 92% 10%, rgba(242,24,45,.22), transparent 18rem), #0a0b0e; text-align: center; box-shadow: var(--tn-shadow); }
.cta-box h2 { font-size: clamp(2.3rem, 5vw, 4.8rem); }.cta-box p { max-width: 640px; margin: 22px auto 32px; color: var(--tn-muted); }

.site-footer { padding: 52px 0; border-top: 1px solid var(--tn-border); color: #858a94; font-size: .84rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand img { width: 190px; opacity: .85; }.footer-links, .footer-links ul { display: flex; align-items: center; gap: 22px; }.footer-links ul { margin: 0; padding: 0; list-style: none; }.footer-links a { text-decoration: none; }.footer-links a:hover { color: #fff; }

.page-hero { padding: 100px 0 70px; }.page-hero h1 { font-size: clamp(3rem, 7vw, 6.3rem); }.page-hero p { max-width: 720px; color: var(--tn-muted); font-size: 1.15rem; }
.content-section { padding: 40px 0 110px; }.prose { max-width: 780px; }.prose h2 { margin: 2em 0 .6em; font-size: 2rem; }.prose p, .prose li { color: #b2b6bf; }
.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: start; }
.contact-info { padding: 30px; border: 1px solid var(--tn-border); border-radius: var(--tn-radius); background: var(--tn-panel); }.contact-info h2 { font-size: 2rem; }.contact-info a { color: #fff; text-decoration-color: var(--tn-red); }
.tn-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.tn-form .full { grid-column: 1 / -1; }.tn-form label { display: block; margin-bottom: 7px; color: #c8cbd1; font-size: .82rem; font-weight: 700; }.tn-form input, .tn-form textarea { width: 100%; border: 1px solid var(--tn-border); border-radius: 9px; background: #0b0d11; color: #fff; padding: 13px 14px; outline: none; }.tn-form input:focus, .tn-form textarea:focus { border-color: var(--tn-red); box-shadow: 0 0 0 3px rgba(242,24,45,.12); }.tn-form textarea { min-height: 150px; resize: vertical; }.tn-hp { position: absolute !important; left: -9999px !important; }.form-notice { grid-column: 1/-1; padding: 12px 14px; border-radius: 8px; background: rgba(72,213,151,.1); color: #8ee4bd; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .hero-grid, .approach-grid, .contact-grid { grid-template-columns: 1fr; }.hero { padding-top: 55px; }.hero-visual { min-height: 450px; }.cards { grid-template-columns: repeat(2, 1fr); }.section-head { grid-template-columns: 1fr; gap: 24px; }.model-panel { min-height: 500px; }.primary-nav { position: fixed; inset: 120px 20px auto; display: none; padding: 22px; border: 1px solid var(--tn-border); border-radius: 14px; background: #0b0d11; box-shadow: var(--tn-shadow); }.primary-nav.is-open { display: block; }.primary-nav ul { align-items: stretch; flex-direction: column; gap: 4px; }.primary-nav a { display: block; padding: 11px; }.menu-toggle { display: block; }.trust-inner { align-items: flex-start; flex-direction: column; padding-block: 24px; }.trust-points { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .tn-wrap { width: min(calc(100% - 28px), var(--tn-max)); }.site-brand { margin-left: -5px; }.site-brand img { width: 250px; }.header-inner { min-height: 92px; }.primary-nav { inset: 92px 14px auto; }.hero { min-height: auto; padding: 58px 0 74px; }.hero-grid { gap: 28px; }.hero-visual { min-height: 360px; }.ai-core { width: 320px; }.section { padding: 82px 0; }.cards { grid-template-columns: 1fr; }.card { min-height: 250px; }.card h3 { margin-top: 48px; }.model-panel { min-height: 470px; padding: 24px; }.model-row.featured { transform: none; }.cta-box { padding: 48px 22px; }.footer-inner { align-items: flex-start; flex-direction: column; }.tn-form { grid-template-columns: 1fr; }.tn-form .full { grid-column: auto; }
}
