/* ========================================================================
   3 Tenets Security LLC — styles.css
   ===================================================================== */

:root {
  --bg:          #0a0e1a;
  --bg-2:        #0e1424;
  --surface:     #121a2e;
  --surface-2:   #16203a;
  --border:      #233152;
  --text:        #e7ecf5;
  --text-dim:    #9bacc9;
  --text-faint:  #6c7c9b;
  --brand:       #3b82f6;
  --accent:      #3ad6c5;
  --grad:        linear-gradient(120deg, #3ad6c5 0%, #3b82f6 100%);
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 20px 50px -20px rgba(0, 0, 0, .7);
  --maxw:        1140px;
  --ease:        cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #04121f;
  box-shadow: 0 8px 24px -8px rgba(59, 130, 246, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(58, 214, 197, .65); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 26, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(10, 14, 26, .9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { filter: drop-shadow(0 2px 8px rgba(58, 214, 197, .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-size: 1.18rem; }
.brand-sub { font-size: .6rem; font-weight: 600; letter-spacing: .32em; color: var(--accent); margin-top: 3px; }

.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-menu a {
  display: inline-block; padding: 9px 14px; border-radius: 8px;
  font-size: .95rem; font-weight: 500; color: var(--text-dim);
  transition: color .2s, background .2s;
}
.nav-menu a:hover { color: var(--text); background: var(--surface); }
.nav-menu .nav-cta { color: #04121f; background: var(--grad); font-weight: 600; margin-left: 6px; }
.nav-menu .nav-cta:hover { color: #04121f; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 96px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 75% -10%, rgba(59, 130, 246, .22), transparent 60%),
    radial-gradient(700px 500px at 10% 20%, rgba(58, 214, 197, .14), transparent 55%),
    linear-gradient(transparent 0, var(--bg) 90%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 56px);
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'JetBrains Mono', monospace; font-size: .8rem; letter-spacing: .04em;
  color: var(--text-dim); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; margin-bottom: 26px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(58,214,197,.18); }

.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin: 26px 0 36px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-dim); max-width: 640px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; list-style: none; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--border); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.8rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: .9rem; color: var(--text-faint); margin-top: 2px; }

/* ---------- Section heads ---------- */
.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.02em; line-height: 1.15; }
.section-sub { margin-top: 16px; color: var(--text-dim); font-size: 1.05rem; }

/* ---------- The 3 Tenets ---------- */
.tenets { padding: 96px 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tenet-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tenet-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 38px 30px 32px; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.tenet-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.tenet-card:hover { transform: translateY(-6px); border-color: #335089; }
.tenet-card:hover::before { transform: scaleX(1); }
.tenet-num { font-family: 'JetBrains Mono', monospace; font-size: 2.6rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.4px var(--brand); opacity: .55; }
.tenet-card h3 { font-size: 1.4rem; margin: 12px 0 10px; letter-spacing: -.01em; }
.tenet-card p { color: var(--text-dim); font-size: .98rem; }

/* ---------- Services ---------- */
.services { padding: 100px 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.service-card:hover { transform: translateY(-6px); border-color: #335089; background: var(--surface-2); }
.service-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(58,214,197,.16), rgba(59,130,246,.16));
  border: 1px solid var(--border); margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; letter-spacing: -.01em; }
.service-card p { color: var(--text-dim); font-size: .96rem; }

/* ---------- About ---------- */
.about { padding: 100px 0; background: var(--bg-2); border-top: 1px solid var(--border); }
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 22px; }
.about-text p { color: var(--text-dim); margin-bottom: 18px; }
.about-text strong { color: var(--text); }
.about-points { list-style: none; margin-top: 26px; display: grid; gap: 13px; }
.about-points li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(58,214,197,.15); color: var(--accent); font-size: .8rem; font-weight: 700; flex-shrink: 0; }

.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); }
.about-card h3 { font-size: 1.2rem; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.cert { display: flex; gap: 16px; margin-bottom: 24px; }
.cert:last-child { margin-bottom: 0; }
.cert-badge {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1rem; color: #04121f;
  background: var(--grad); box-shadow: 0 8px 20px -8px rgba(59,130,246,.6);
}
.cert strong { display: block; margin-bottom: 5px; font-size: 1rem; }
.cert p { color: var(--text-dim); font-size: .9rem; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 18px; }
.contact-info > p { color: var(--text-dim); margin-bottom: 30px; }
.contact-details { list-style: none; display: grid; gap: 16px; }
.contact-details li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact-details a:hover { color: var(--accent); }
.ci-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); flex-shrink: 0; }
.ci-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 500; color: var(--text-dim); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 15px; color: var(--text); font-family: inherit; font-size: .98rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58,214,197,.15); }
.field input.invalid, .field textarea.invalid { border-color: #ef5e6e; box-shadow: 0 0 0 3px rgba(239,94,110,.15); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239bacc9' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.form-note { margin-top: 16px; font-size: .92rem; text-align: center; min-height: 1.2em; }
.form-note.success { color: var(--accent); }
.form-note.error { color: #ef8a96; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.brand--footer .brand-text { font-size: 1.05rem; }
.footer-brand p { color: var(--text-faint); font-size: .9rem; margin-top: 12px; font-family: 'JetBrains Mono', monospace; letter-spacing: .02em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--text-dim); font-size: .95rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-contact a { color: var(--text-dim); font-size: .95rem; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tenet-cards, .service-grid { grid-template-columns: 1fr 1fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 4px; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 14px 24px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .3s;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 12px 14px; }
  .nav-menu .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }
}
@media (max-width: 560px) {
  .tenet-cards, .service-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .footer-contact { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
