/* ============================================================
AIGents -- Main Stylesheet
styles.css
============================================================ */

/* -- Custom Properties -- */
:root {
--bg: #f4f0ea;
--paper: #ede9e2;
--ink: #111111;
--dark-section: #1a1a1a;
--dark-card: #222222;
--border: #ccc8c0;
--border-dark: #2e2e2e;
--muted: #6a6a62;
--mid: #3d3d38;
--red: #c41e1e;
}

/* -- Reset -- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* -- Base -- */
body {
font-family: "DM Sans", sans-serif;
background: var(--bg);
color: var(--ink);
min-height: 100vh;
overflow-x: hidden;
}

/* ============================================================
NAVIGATION
============================================================ */
nav {
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
display: flex; align-items: center; justify-content: space-between;
padding: 18px 52px;
background: rgba(244, 240, 234, 0.97);
backdrop-filter: blur(8px);
border-bottom: 1px solid var(--border);
}

.logo-link { display: flex; align-items: center; }
.logo-desktop { height: 57px; width: auto; }
.logo-mobile  { height: 44px; width: auto; display: none; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
font-size: 14px; font-weight: 500; letter-spacing: 0.5px;
color: var(--mid); text-decoration: none; transition: color 0.2s;
position: relative; padding-bottom: 2px;
}
.nav-links a::after {
content: ""; position: absolute; bottom: -1px; left: 0; right: 0;
height: 1px; background: var(--red);
transform: scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
font-size: 12px; font-weight: 600; letter-spacing: 1px;
color: #f4f0ea; text-decoration: none;
background: var(--red); border: 1px solid var(--red);
padding: 9px 22px; text-transform: uppercase; transition: all 0.2s;
margin-right: 24px;
}
.nav-cta:hover { background: #a51818; border-color: #a51818; }

/* ============================================================
HERO
============================================================ */
.hero {
height: 88vh; display: grid; grid-template-columns: 1fr 1fr;
padding-top: 80px;
}
.hero-left {
display: flex; flex-direction: column; justify-content: center;
padding: 36px 52px 40px;
border-right: 1px solid var(--border);
background: var(--bg); overflow-y: auto;
}

/* Stamp */
.stamp {
display: inline-block;
font-family: "Courier Prime", monospace;
font-size: 11px; font-weight: 700; letter-spacing: 6px;
color: var(--red); border: 2.5px solid var(--red);
padding: 5px 12px; text-transform: uppercase;
margin-bottom: 22px; width: fit-content;
transform: rotate(-1.5deg); opacity: 0.85;
animation: fadeIn 0.5s ease forwards;
}

/* Animations */
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 0.85; } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink     { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes msgIn     { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes td        { 0%, 60%, 100% { transform: translateY(0); background: #444; } 30% { transform: translateY(-5px); background: #999; } }

.hero-headline {
font-family: "Special Elite", cursive;
font-size: clamp(34px, 3.6vw, 58px); line-height: 1.1; color: var(--ink);
margin-bottom: 20px; animation: fadeInUp 0.5s ease 0.1s both;
}
.underline-red { position: relative; display: inline; }
.underline-red::after {
content: ""; position: absolute; bottom: 1px; left: 0; right: 0;
height: 2px; background: var(--red);
}
.hero-sub {
font-size: 16px; font-weight: 400; line-height: 1.75; color: var(--ink);
max-width: 400px; margin-bottom: 32px; animation: fadeInUp 0.5s ease 0.2s both;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-actions {
display: flex; align-items: center; gap: 28px;
animation: fadeInUp 0.5s ease 0.3s both;
}

/* Buttons */
.btn-primary {
font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
color: #f4f0ea; background: var(--ink); padding: 14px 28px;
text-decoration: none; display: inline-block; transition: all 0.2s;
cursor: pointer; border: none; white-space: nowrap; flex-shrink: 0;
}
.btn-primary:hover { background: #000; box-shadow: 3px 3px 0 var(--red); }

/* CTA band red button override */
.btn-primary-red {
font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
color: #f4f0ea; background: var(--red); padding: 14px 28px;
text-decoration: none; display: inline-block; transition: all 0.2s;
cursor: pointer; border: none; white-space: nowrap; flex-shrink: 0;
}
.btn-primary-red:hover { background: #a51818; box-shadow: 3px 3px 0 var(--ink); }

.btn-ghost {
font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
color: var(--mid); text-decoration: none; transition: all 0.2s;
border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.btn-ghost:hover { color: var(--ink); border-bottom-color: var(--red); }

.hero-stats {
display: flex; gap: 40px; margin-top: 36px; padding-top: 28px;
border-top: 1px solid var(--border); animation: fadeInUp 0.5s ease 0.4s both;
}
.stat-number {
font-family: "Special Elite", cursive; font-size: 34px;
color: var(--ink); line-height: 1; margin-bottom: 4px;
}
.stat-label {
font-size: 11px; font-weight: 600; letter-spacing: 2px;
color: var(--mid); text-transform: uppercase;
}

/* ============================================================
CHAT (ARIA)
============================================================ */
.hero-right {
display: flex; flex-direction: column;
background: var(--dark-section); height: 100%;
overflow: hidden; position: relative;
}
.chat-header {
padding: 16px 28px; border-bottom: 1px solid var(--border-dark);
display: flex; align-items: center; gap: 14px;
background: var(--dark-card); flex-shrink: 0;
}
.aria-avatar {
width: 34px; height: 34px; border: 1px solid #444;
display: flex; align-items: center; justify-content: center;
font-size: 16px; flex-shrink: 0; background: var(--dark-section);
}
.aria-info {
padding-top: 6px;
}
.aria-name {
font-family: "Special Elite", cursive; font-size: 14px;
letter-spacing: 3px; color: #f0ede8; text-transform: uppercase;
}
.aria-role { font-size: 12px; font-weight: 400; color: #888; margin-top: 2px; }
.aria-online {
margin-left: auto; display: flex; align-items: center; gap: 6px;
font-size: 11px; font-weight: 500; letter-spacing: 2px;
color: #888; text-transform: uppercase;
}
.online-dot {
width: 6px; height: 6px; background: #aaa;
border-radius: 50%; animation: blink 2s infinite;
}

.chat-messages {
flex: 1; overflow-y: auto; padding: 20px 28px;
display: flex; flex-direction: column; gap: 14px;
min-height: 0; max-height: 100%;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: #333; }

.msg { display: flex; gap: 10px; animation: msgIn 0.25s ease; }
.msg.user { flex-direction: row-reverse; }
.msg-av {
width: 26px; height: 26px; border: 1px solid #333;
display: flex; align-items: center; justify-content: center;
font-size: 11px; flex-shrink: 0; margin-top: 2px; background: var(--dark-card);
}
.msg-bubble { padding: 11px 15px; font-size: 15px; font-weight: 400; line-height: 1.65; max-width: 82%; }
.msg.assistant .msg-bubble {
background: var(--dark-card); border: 1px solid var(--border-dark);
color: #c8c4be; border-left: 2px solid #3a3a3a;
}
.msg.user .msg-bubble {
background: transparent; border: 1px solid #3a3a3a;
color: #f0ede8; border-right: 2px solid var(--red);
}

.typing-dots {
display: flex; align-items: center; gap: 5px; padding: 13px 15px;
background: var(--dark-card); border: 1px solid var(--border-dark);
border-left: 2px solid #3a3a3a; width: fit-content;
}
.typing-dots span {
width: 5px; height: 5px; background: #444;
border-radius: 50%; animation: td 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.chat-input-area {
padding: 14px 28px 18px; border-top: 1px solid var(--border-dark);
background: var(--dark-card); flex-shrink: 0;
}
.chat-input-row { display: flex; gap: 10px; }
.chat-input {
flex: 1; background: var(--dark-section); border: 1px solid var(--border-dark);
border-bottom: 1px solid #3a3a3a; padding: 11px 16px; color: #f0ede8;
font-family: "DM Sans", sans-serif; font-size: 14px; font-weight: 400;
outline: none; resize: none; transition: border-color 0.2s;
}
.chat-input:focus { border-bottom-color: var(--red); }
.chat-input::placeholder { color: #555; }
.chat-send {
background: #f4f0ea; border: none; padding: 11px 22px; color: #111;
font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 600;
letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: all 0.2s;
}
.chat-send:hover { background: #fff; box-shadow: 2px 2px 0 var(--red); }
.chat-send:disabled { opacity: 0.3; cursor: not-allowed; box-shadow: none; }

.lead-confirmed {
background: #1a2a1a; border: 1px solid #2a4a2a; border-left: 2px solid #4a8a4a;
color: #7abf7a; padding: 10px 15px; font-size: 12px; font-weight: 500;
letter-spacing: 1px; text-transform: uppercase; text-align: center; flex-shrink: 0;
}

/* ============================================================
SECTION LABELS
============================================================ */
.section-label {
font-size: 13px; font-weight: 700; letter-spacing: 5px; color: var(--mid);
text-transform: uppercase; margin-bottom: 44px;
display: flex; align-items: center; gap: 14px;
}
.section-label::before { content: "//"; color: var(--red); font-family: "Courier Prime", monospace; font-size: 15px; }
.section-label::after  { content: ""; flex: 1; height: 1px; background: var(--border); }
.dark-label            { color: #aaa; }
.dark-label::before    { color: var(--red); }
.dark-label::after     { background: var(--border-dark); }

/* ============================================================
INDUSTRIES
============================================================ */
.industries { padding: 80px 52px; border-top: 1px solid var(--border); background: var(--bg); }
.industry-grid {
display: grid; grid-template-columns: repeat(3, 1fr);
gap: 1px; background: var(--border);
}
.industry-card {
background: var(--bg); padding: 30px 26px;
border-top: 2px solid transparent; cursor: default;
}
.industry-icon { font-size: 22px; margin-bottom: 12px; display: block; filter: grayscale(1); }
.industry-name { font-family: "Special Elite", cursive; font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.industry-desc { font-size: 15px; font-weight: 400; color: var(--ink); line-height: 1.7; }
.industry-roi {
margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 2px;
color: var(--mid); text-transform: uppercase;
border-left: 2px solid var(--red); padding-left: 8px;
}

/* ============================================================
HOW IT WORKS
============================================================ */
.how { padding: 80px 52px; background: var(--dark-section); border-top: 1px solid var(--border-dark); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-dark); }
.step { background: var(--dark-section); padding: 36px 26px; transition: background 0.2s; }
.step:hover { background: var(--dark-card); }
.step-num { font-family: "Special Elite", cursive; font-size: 50px; color: #333; line-height: 1; margin-bottom: 14px; }
.step-title { font-family: "Special Elite", cursive; font-size: 19px; color: #f0ede8; margin-bottom: 10px; }
.step-desc { font-size: 15px; font-weight: 400; color: #b0aca6; line-height: 1.7; }

/* ============================================================
GENERAL SECTIONS
============================================================ */
.missions-section { padding: 80px 52px; border-top: 1px solid var(--border); background: var(--bg); }
.pricing-section  { padding: 80px 52px; border-top: 1px solid var(--border); background: var(--paper); }
.placeholder-text { font-size: 15px; font-weight: 400; color: var(--mid); font-style: italic; }

/* ============================================================
CTA BAND
============================================================ */
.cta-band {
padding: 80px 52px; border-top: 1px solid var(--border);
background: var(--paper); display: flex; align-items: center;
justify-content: space-between; gap: 40px; position: relative;
}
.cta-band::before {
content: ""; position: absolute; left: 0; top: 0; bottom: 0;
width: 3px; background: var(--red);
}
.cta-headline {
font-family: "Special Elite", cursive; font-size: 44px;
color: var(--ink); line-height: 1.05; margin-bottom: 10px;
}
.cta-sub { font-size: 16px; font-weight: 400; color: var(--ink); max-width: 480px; line-height: 1.8; }

/* ============================================================
FOOTER
============================================================ */
footer {
padding: 28px 52px; border-top: 1px solid var(--border-dark);
background: var(--dark-section); display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { height: 24px; width: auto; opacity: 0.25; filter: invert(1); }
.footer-copy { font-size: 12px; font-weight: 400; letter-spacing: 1.5px; color: #666; text-transform: uppercase; }

/* ============================================================
CONTENT PAGES
============================================================ */
.page-hero {
padding: 140px 52px 64px;
background: var(--bg); border-bottom: 1px solid var(--border);
}
.page-hero .stamp { margin-bottom: 18px; }
.page-title {
font-family: "Special Elite", cursive;
font-size: clamp(32px, 4vw, 56px); line-height: 1.1;
color: var(--ink); margin-bottom: 16px;
}
.page-subtitle {
font-size: 17px; font-weight: 400; line-height: 1.75;
color: var(--ink); max-width: 560px;
}

.page-body {
max-width: 780px; margin: 0 auto;
padding: 72px 52px; color: var(--ink);
}
.page-body h2 {
font-family: "Special Elite", cursive; font-size: 30px;
color: var(--ink); margin: 48px 0 16px;
}
.page-body h3 {
font-family: "Special Elite", cursive; font-size: 22px;
color: var(--mid); margin: 32px 0 12px;
}
.page-body p {
font-size: 16px; font-weight: 400; line-height: 1.85;
color: var(--ink); margin-bottom: 20px;
}
.page-body p strong { color: var(--ink); font-weight: 600; }
.page-body ul, .page-body ol {
margin: 0 0 24px 20px;
display: flex; flex-direction: column; gap: 10px;
}
.page-body li { font-size: 16px; line-height: 1.75; color: var(--ink); }
.page-body li strong { color: var(--ink); }

/* Callout / pull quote */
.callout {
border-left: 3px solid var(--red); padding: 18px 24px;
background: var(--paper); margin: 32px 0;
font-size: 16px; line-height: 1.75; color: var(--ink);
}
.callout strong { color: var(--ink); }

/* Divider */
.page-divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ============================================================
SCANLINES OVERLAY (opt-in via body class)
============================================================ */
body.scanlines::before {
content: '';
position: fixed; inset: 0;
background: repeating-linear-gradient(
to bottom,
transparent 0px, transparent 3px,
rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 4px
);
pointer-events: none; z-index: 9999;
}

/* ============================================================
HERO GRID BACKGROUND (animated red grid)
============================================================ */
.page-hero { position: relative; overflow: hidden; }
.hero-grid-bg {
position: absolute; inset: 0;
background-image:
linear-gradient(rgba(196,30,30,0.05) 1px, transparent 1px),
linear-gradient(90deg, rgba(196,30,30,0.05) 1px, transparent 1px);
background-size: 60px 60px;
animation: gridDrift 20s linear infinite;
pointer-events: none;
}
@keyframes gridDrift { 100% { transform: translateY(60px); } }
.page-hero-inner { position: relative; }

/* ============================================================
INTEL STRIP (stat bar)
============================================================ */
.intel-strip {
display: grid; grid-template-columns: repeat(4, 1fr);
border: 1px solid var(--border); margin: 0 0 1px 0;
}
.intel-stat {
padding: 28px 20px; text-align: center;
border-right: 1px solid var(--border);
background: var(--paper);
}
.intel-stat:last-child { border-right: none; }
.intel-value {
font-family: "Special Elite", cursive;
font-size: 48px; color: var(--red); line-height: 1; display: block;
}
.intel-label {
font-family: "Courier Prime", monospace;
font-size: 12px; letter-spacing: 2px;
color: var(--ink); text-transform: uppercase;
margin-top: 6px; display: block;
}

/* ============================================================
DOCTRINE GRID (2-col card grid)
============================================================ */
.doctrine-grid {
display: grid; grid-template-columns: 1fr 1fr;
gap: 1px; background: var(--border);
margin-top: 32px;
}
.doctrine-card {
background: var(--bg); padding: 32px 28px;
transition: background 0.25s;
}
.doctrine-card:hover { background: var(--paper); }
.doctrine-card.red-card { background: var(--red); }
.doctrine-card.red-card:hover { background: #a81818; }
.doctrine-card.red-card .d-num  { color: rgba(255,255,255,0.7); }
.doctrine-card.red-card h3      { color: #fff; }
.doctrine-card.red-card p       { color: rgba(255,255,255,0.9); }
.d-num {
font-family: "Courier Prime", monospace;
font-size: 11px; letter-spacing: 3px;
color: var(--red); margin-bottom: 10px; display: block;
text-transform: uppercase;
}
.doctrine-card h3 {
font-family: "Special Elite", cursive;
font-size: 22px; color: var(--ink); margin-bottom: 12px;
}
.doctrine-card p {
font-size: 15px; font-weight: 400; color: var(--ink); line-height: 1.8;
}

/* ============================================================
TERMINAL BLOCK
============================================================ */
.terminal {
font-family: "Courier Prime", monospace;
font-size: 13px; color: #00cc44;
background: #000; border: 1px solid #1a2a1a;
padding: 22px 28px; line-height: 2.1;
margin: 32px 0;
}
.t-prompt { color: var(--muted); }
.t-cmd    { color: #f0ede8; }
.t-dim    { color: #3a4a3a; }
.terminal-line {
display: block; opacity: 0;
animation: termReveal 0.05s ease forwards;
}
.terminal-line:nth-child(1) { animation-delay: 0.10s; }
.terminal-line:nth-child(2) { animation-delay: 0.35s; }
.terminal-line:nth-child(3) { animation-delay: 0.65s; }
.terminal-line:nth-child(4) { animation-delay: 0.95s; }
.terminal-line:nth-child(5) { animation-delay: 1.25s; }
.terminal-line:nth-child(6) { animation-delay: 1.50s; }
@keyframes termReveal { to { opacity: 1; } }
.cursor {
display: inline-block; width: 0.5em; height: 0.9em;
background: #00cc44; vertical-align: text-bottom;
animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

/* ============================================================
AGENT CARDS
============================================================ */
.agents-grid {
display: grid; grid-template-columns: 1fr 1fr;
gap: 1px; background: var(--border);
}
.agent-card {
background: var(--bg); padding: 36px 32px;
position: relative; overflow: hidden; transition: background 0.25s;
}
.agent-card:hover { background: var(--paper); }
.agent-card::after {
content: ''; position: absolute;
bottom: 0; left: 0; right: 0; height: 2px; background: var(--red);
transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.agent-card:hover::after { transform: scaleX(1); }
.agent-handle {
font-family: "Courier Prime", monospace;
font-size: 11px; letter-spacing: 3px; color: var(--red);
text-transform: uppercase; margin-bottom: 4px;
}
.agent-name {
font-family: "Special Elite", cursive;
font-size: 36px; letter-spacing: 0.02em; line-height: 1.05;
color: var(--ink); margin-bottom: 4px;
}
.agent-alias {
font-family: "Courier Prime", monospace;
font-size: 11px; color: var(--mid); letter-spacing: 2px;
text-transform: uppercase; margin-bottom: 22px;
}
.agent-body p {
font-size: 15px; font-weight: 400; color: var(--ink); line-height: 1.85;
}
.agent-body p + p { margin-top: 14px; }
.agent-body em { color: var(--ink); font-style: italic; }
.field-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.field-tag {
font-family: "Courier Prime", monospace;
font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
color: var(--red); border: 1px solid var(--red);
padding: 4px 10px; opacity: 0.85;
}

/* ============================================================
BIG QUOTE
============================================================ */
.big-quote {
border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
padding: 56px 52px; text-align: center; background: var(--paper);
}
.big-quote::before {
content: '[ FIELD NOTES ]';
font-family: "Courier Prime", monospace;
font-size: 11px; letter-spacing: 4px; color: var(--red);
display: block; margin-bottom: 20px; text-transform: uppercase;
}
.big-quote blockquote {
font-family: "Special Elite", cursive;
font-size: clamp(20px, 2.4vw, 30px);
letter-spacing: 0.02em; line-height: 1.45;
max-width: 740px; margin: 0 auto; color: var(--ink);
}

/* ============================================================
ABOUT PAGE CONTENT WRAPPER
============================================================ */
.about-wrap {
max-width: 960px; margin: 0 auto; padding: 0 52px;
}
.about-section {
padding: 64px 0; border-top: 1px solid var(--border);
}
.about-section:first-child { border-top: none; }

/* ============================================================
RESPONSIVE
============================================================ */
@media (max-width: 960px) {
nav { padding: 16px 24px; }
.nav-links { gap: 20px; }
.nav-cta { margin-right: 0; }

.hero { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
.hero-left { border-right: none; border-bottom: 1px solid var(--border); padding: 80px 24px 40px; justify-content: flex-start; }
.hero-right { min-height: 500px; }
.hero-stats { gap: 28px; }

.industry-grid { grid-template-columns: 1fr 1fr; }
.steps { grid-template-columns: 1fr 1fr; }

.industries, .how, .cta-band, .missions-section, .pricing-section { padding: 48px 24px; }
.page-hero { padding: 120px 24px 48px; }
.page-body { padding: 48px 24px; }

footer { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }
.cta-band { flex-direction: column; align-items: flex-start; }

.about-wrap { padding: 0 24px; }
.about-section { padding: 48px 0; }
.intel-strip { grid-template-columns: repeat(2, 1fr); }
.intel-stat:nth-child(2) { border-right: none; }
.intel-stat:nth-child(3),
.intel-stat:nth-child(4) { border-top: 1px solid var(--border); }
.doctrine-grid { grid-template-columns: 1fr; }
.agents-grid   { grid-template-columns: 1fr; }
.big-quote { padding: 40px 24px; }
}

@media (max-width: 560px) {
.industry-grid { grid-template-columns: 1fr; }
.steps { grid-template-columns: 1fr; }
.nav-links { display: none; }
.logo-desktop { display: none; }
.logo-mobile  { display: block; }
}
