/*
Theme Name: OMG Trident AI
Theme URI: https://omgaitrading.com
Author: OMG Trident AI
Author URI: https://omgaitrading.com
Description: Institutional-grade theme for OMG Trident AI. Autonomous futures trading infrastructure.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: omg-trident
*/

/* ===== CSS Variables / Design System ===== */
:root {
  --navy: #0A2540;
  --accent: #635BFF;
  --accent-dark: #4B45D1;
  --teal: #00D4AA;
  --light-bg: #F6F9FC;
  --border: #E3E8EE;
  --body: #425466;
  --white: #FFFFFF;
  --max-width: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
}

p {
  margin-bottom: 1rem;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ===== Layout Utilities ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

.section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }
}

.section--alt {
  background: var(--light-bg);
}

.text-center {
  text-align: center;
}

.text-body {
  color: var(--body);
}

.text-navy {
  color: var(--navy);
}

.text-accent {
  color: var(--accent);
}

.text-white {
  color: var(--white);
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  line-height: 1.4;
}

.btn--primary {
  background: var(--accent);
  color: var(--white) !important;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===== Cards ===== */
.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--white);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-logo:hover {
  color: var(--navy);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent);
}

.nav-cta {
  margin-left: 0.5rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

.nav-mobile {
  display: none;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--accent);
}

.nav-mobile .btn {
  margin-top: 0.75rem;
  display: block;
  text-align: center;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background: var(--white);
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 0;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero__blob--1 {
  width: 500px;
  height: 500px;
  background: rgba(99, 91, 255, 0.2);
  top: -160px;
  left: -160px;
}

.hero__blob--2 {
  width: 400px;
  height: 400px;
  background: rgba(0, 212, 170, 0.2);
  top: 80px;
  right: -160px;
}

.hero__blob--3 {
  width: 300px;
  height: 300px;
  background: rgba(99, 91, 255, 0.1);
  bottom: 0;
  left: 33%;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 48rem;
}

.hero p {
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--body);
  margin-top: 1.5rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.25rem;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ===== Metrics Bar ===== */
.metrics-bar {
  background: var(--light-bg);
  padding: 3rem 0;
}

.metrics-bar .grid {
  text-align: center;
}

.metric__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

@media (min-width: 768px) {
  .metric__value {
    font-size: 1.875rem;
  }
}

.metric__label {
  font-size: 0.875rem;
  color: var(--body);
  margin-top: 0.25rem;
}

/* ===== Icon Circle ===== */
.icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-circle--accent {
  background: rgba(99, 91, 255, 0.1);
  color: var(--accent);
}

.icon-circle--teal {
  background: rgba(0, 212, 170, 0.1);
  color: var(--teal);
}

.icon-circle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ===== Check List ===== */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--body);
}

.check-list svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--teal);
  margin-top: 0.125rem;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--navy);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-banner {
    padding: 4rem;
  }
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #9ca3af;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

/* ===== Architecture Layers ===== */
.arch-layer {
  padding: 1.5rem;
  border-left: 4px solid;
}

.arch-layer .arch-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--body);
}

.arch-layer h3 {
  margin-top: 0.25rem;
}

.arch-layer p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--body);
  margin-bottom: 0;
}

.arch-layer--accent1 {
  background: rgba(99, 91, 255, 0.05);
  border-color: rgba(99, 91, 255, 0.3);
}

.arch-layer--accent2 {
  background: rgba(99, 91, 255, 0.08);
  border-color: rgba(99, 91, 255, 0.4);
}

.arch-layer--teal1 {
  background: rgba(0, 212, 170, 0.05);
  border-color: rgba(0, 212, 170, 0.3);
}

.arch-layer--teal2 {
  background: rgba(0, 212, 170, 0.08);
  border-color: rgba(0, 212, 170, 0.4);
}

/* ===== Number Circle ===== */
.num-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.num-circle--sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.875rem;
  background: rgba(0, 212, 170, 0.2);
  color: var(--navy);
}

/* ===== Defense Stack ===== */
.defense-item {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--white);
  margin-bottom: 1rem;
}

.defense-item h3 {
  font-size: 1rem;
}

.defense-item p {
  font-size: 0.875rem;
  color: var(--body);
  margin: 0.25rem 0 0;
}

/* ===== Pillar Label ===== */
.pillar-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ===== Step Flow ===== */
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-item p {
  padding-top: 0.25rem;
  margin: 0;
  color: var(--body);
}

/* ===== Metric Cards ===== */
.metric-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--white);
  text-align: center;
}

.metric-card__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.metric-card__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 0.25rem;
}

.metric-card__context {
  font-size: 0.75rem;
  color: var(--body);
  margin-top: 0.5rem;
}

/* ===== Facts Table ===== */
.facts-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.facts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.facts-row:last-child {
  border-bottom: none;
}

.facts-row__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
}

.facts-row__value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
}

/* ===== Founder Section ===== */
.founder-avatar {
  width: 16rem;
  height: 16rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(99,91,255,0.2), rgba(0,212,170,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.founder-avatar__inner {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(99,91,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-avatar svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
}

/* ===== Contact Form ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.form-group label .required {
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99, 91, 255, 0.15);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-success {
  display: none;
  padding: 1rem;
  border-radius: 6px;
  background: rgba(0, 212, 170, 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

/* ===== Blog Cards ===== */
.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.category-badge--system {
  background: rgba(99, 91, 255, 0.1);
  color: var(--accent);
}

.category-badge--market {
  background: rgba(0, 212, 170, 0.1);
  color: var(--teal);
}

.category-badge--founder {
  background: rgba(10, 37, 64, 0.1);
  color: var(--navy);
}

/* ===== Subscribe Box ===== */
.subscribe-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 2rem;
  text-align: center;
}

.subscribe-form {
  display: flex;
  max-width: 28rem;
  margin: 0 auto;
  gap: 0.75rem;
}

.subscribe-form input {
  flex: 1;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  font-family: 'DM Sans', sans-serif;
}

.subscribe-form input:focus {
  border-color: var(--accent);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid var(--border);
}

.site-footer .container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--teal);
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Contact Page Layout ===== */
.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.contact-info-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 1.5rem;
}

/* ===== WordPress Core Overrides ===== */
.wp-block-separator {
  border-color: var(--border);
}

.entry-content p {
  margin-bottom: 1rem;
}

/* Hide default WP stuff we don't need */
.wp-block-post-comments-count-link,
.post-edit-link {
  display: none;
}

/* ===== WordPress Contact Form Button ===== */
.pushbutton-wide,
button.pushbutton-wide,
input.pushbutton-wide,
.wp-block-button__link,
.contact-form input[type="submit"] {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  border: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: inline-block;
  line-height: 1.4;
  width: auto;
}

.pushbutton-wide:hover,
button.pushbutton-wide:hover,
input.pushbutton-wide:hover,
.wp-block-button__link:hover,
.contact-form input[type="submit"]:hover {
  background: var(--accent-dark) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}
