:root {
    --tmi-red: #fe3232;
    --tmi-yellow: #e2ad02;
    --tmi-bg: #090b12;
    --tmi-text: #f9fafb;
    --tmi-muted: #a0a4b8;
    --tmi-card-bg: #141824;
    --tmi-border: #252b3b;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(circle at top left, #151a2a 0, var(--tmi-bg) 40%, #05060a 100%);
    color: var(--tmi-text);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ================= HEADER ================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9,11,18,0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav {
}
.nav {
    max-width: 1120px;
    margin: auto;
    padding: 1.25rem 1.25rem; /* was 1rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 66px;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav a {
    margin-left: 1.2rem;
    font-size: 0.9rem;
    color: var(--tmi-muted);
}

.desktop-nav a:hover {
    color: var(--tmi-text);
}
/* ================= NAV REFINEMENT ================= */

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.8rem; /* 🔑 spacing fix */
}

/* Nav links */
.nav-right a {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tmi-muted);
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

/* Hover underline */
.nav-right a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--tmi-yellow),
        var(--tmi-red)
    );
    opacity: 0;
    transform: scaleX(0.6);
    transition: all 0.2s ease;
}

.nav-right a:hover {
    color: var(--tmi-text);
}

.nav-right a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* CTA separation */
.nav-right .nav-cta {
    margin-left: 0.8rem; /* visual grouping */
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    box-shadow: 0 6px 20px rgba(226,173,2,0.35);
}
/* ================= MOBILE NAV (HAMBURGER) ================= */

.nav {
  position: relative; /* so mobile menu anchors correctly */
}

.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tmi-text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 1.25rem;
  left: 1.25rem;

  background: rgba(9,11,18,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 0.9rem;

  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
}

.mobile-menu.active {
  display: block;
}

.mobile-link {
  display: block;
  padding: 0.85rem 0.85rem;
  border-radius: 12px;

  color: var(--tmi-text);
  font-weight: 600;
  font-size: 0.95rem;

  transition: background 0.15s ease;
}

.mobile-link:hover {
  background: rgba(255,255,255,0.05);
}

.mobile-cta {
  width: 100%;
  margin-top: 0.75rem;
  justify-content: center;
}

/* Hide desktop nav, show hamburger on mobile */
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
/* ================= BUTTONS ================= */

.btn-primary,
.nav-cta {
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, var(--tmi-yellow), var(--tmi-red));
    color: #000;
    font-family: inherit;
}

.btn-primary:hover,
.nav-cta:hover {
    opacity: 0.95;
}

/* ================= HERO ================= */
/* ================= HERO CTA FIX ================= */

.hero-tags {
    margin-bottom: 2.2rem; /* creates breathing room */
}

.hero .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 0.4rem;
    padding: 0.85rem 2.2rem;

    font-size: 0.95rem;
    letter-spacing: 0.02em;

    box-shadow: 
        0 12px 30px rgba(226,173,2,0.35),
        0 0 0 1px rgba(255,255,255,0.06);

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 40px rgba(226,173,2,0.45),
        0 0 0 1px rgba(255,255,255,0.08);
}
.hero {
    max-width: 1120px;
    margin: auto;
    padding: 4.5rem 1.5rem;
}

.hero-eyebrow {
    color: var(--tmi-yellow);
    font-size: 0.75rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.hero-title {
    font-size: clamp(2.05rem, 3vw, 2.85rem);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--tmi-yellow), var(--tmi-red));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: var(--tmi-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 56rem;
    margin-bottom: 2rem;
}

.hero-tags span {
    display: inline-block;
    margin: 0.3rem 0.4rem 0 0;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--tmi-muted);
}

/* ================= SECTIONS ================= */

.section {
    max-width: 1120px;
    margin: auto;
    padding: 4.5rem 1.5rem;
}

.section-alt {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-eyebrow {
    color: var(--tmi-yellow);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: 1.95rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.section-subtitle {
    color: var(--tmi-muted);
    font-size: 0.98rem;
    max-width: 46rem;
    margin: auto;
}

/* ================= FEATURES ================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--tmi-card-bg);
    border-radius: 20px;
    padding: 2.2rem;
    border: 1px solid var(--tmi-border);
    text-align: center;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.feature-text {
    color: var(--tmi-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ================= FAQ ================= */

.faq-container {
    max-width: 760px;
    margin: auto;
}

.faq-item {
    border-bottom: 1px solid var(--tmi-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.05rem 0;
    color: var(--tmi-text);
    font-size: 0.96rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    color: var(--tmi-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    transition: max-height 0.35s ease, padding 0.2s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* big enough for all answers */
    padding-bottom: 1rem;
}

/* ================= CONTACT (FULLY STYLED) ================= */

.contact-wrap {
    max-width: 760px;
    margin: auto;
}

.contact-form {
    background: linear-gradient(180deg, #151a2a, #0e121e);
    border-radius: 22px;
    padding: 2.6rem;
    border: 1px solid var(--tmi-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.4rem;
}

.form-field label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tmi-muted);
    margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--tmi-border);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    color: var(--tmi-text);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--tmi-yellow);
    box-shadow: 0 0 0 3px rgba(226,173,2,0.12);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-status {
    font-size: 0.85rem;
}

.form-status.success {
    color: #7ef29d;
}

.form-status.error {
    color: #ff7b7b;
}

/* ================= CONTACT SUCCESS MESSAGE (REFINED) ================= */

.contact-success {
  max-width: 760px;
  margin: 0 auto 1.6rem auto;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;

  display: flex;
  align-items: center;
  gap: 0.75rem;

  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.14),
    rgba(16, 185, 129, 0.10)
  );

  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.contact-success-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #22c55e;
  color: #052e16;
  font-weight: 700;
  font-size: 0.95rem;

  flex-shrink: 0;
}

.contact-success-message {
  font-size: 0.9rem;
  color: #d1fae5;
  line-height: 1.4;
}

.contact-success-message strong {
  font-weight: 600;
  margin-right: 0.25rem;
}

/* Mobile refinement */
@media (max-width: 700px) {
  .contact-success {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }
}
/* ================= FOOTER ================= */

.enterprise-footer {
    background: rgba(9,11,18,0.98);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3.5rem 1.5rem 1.5rem;
}

.footer-inner {
    max-width: 1120px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-col {
    line-height: 1.6;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.footer-text {
    color: var(--tmi-muted);
    font-size: 0.9rem;
    max-width: 260px;
}

.footer-title {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.footer-link,
.footer-mini {
    display: block;
    font-size: 0.85rem;
    color: var(--tmi-muted);
    margin-bottom: 0.45rem;
}

.footer-link:hover {
    color: var(--tmi-text);
}

.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.75rem;
    color: var(--tmi-muted);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-tagline {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Optional: helps the captcha align with your existing form spacing */
.captcha-wrap {
  margin-top: 0.25rem;
}

/* Optional: prevent overflow on very narrow screens */
@media (max-width: 360px) {
  .captcha-wrap {
    overflow-x: auto;
  }
}
/* ================= MOBILE ================= */

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-text { margin: auto; }
}

@media (max-width: 700px) {
    .form-row { grid-template-columns: 1fr; }
}