/* ============================================================
   Anchor IT Solutions — site styles
   Brand palette:
     Anchor Navy   #0B2545
     Steel Grey    #5C6B73
     Crisp White   #FFFFFF
     Signal Gold   #D4A24C
     Tide Teal     #2A9D8F
   Type:
     Headings: Space Grotesk
     Body:     Inter
   ============================================================ */

:root {
  --navy:   #0B2545;
  --navy-2: #122b4f;
  --navy-3: #0a1f3a;
  --steel:  #5C6B73;
  --paper:  #ffffff;
  --bg:     #f7f8fa;
  --gold:   #D4A24C;
  --teal:   #2A9D8F;
  --teal-2: #1f7a70;
  --ink:    #0e1726;
  --ink-2:  #2a3344;
  --line:   #e6e9ef;
  --shadow: 0 12px 40px -12px rgba(11, 37, 69, 0.18);
  --radius: 14px;
  --max:    1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-2); }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1em; }

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

/* ----------------- NAV ----------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--navy); font-weight: 700; font-size: 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
}
.brand-mark { width: 32px; height: 32px; object-fit: contain; }
.brand-text { letter-spacing: -0.01em; }
.brand-text-accent { color: var(--teal); }

.nav-links {
  display: flex; align-items: center; gap: 26px;
}
.nav-links a {
  color: var(--ink-2); font-weight: 500; font-size: .95rem;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy); color: white !important;
  padding: 9px 16px; border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}
.nav-cta:hover { background: var(--navy-2); transform: translateY(-1px); }

/* ----------------- HERO ----------------- */
.hero {
  position: relative;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(42,157,143,0.10), transparent 70%),
    linear-gradient(180deg, #fbfcfe 0%, #f7f8fa 100%);
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
  align-items: center;
}
.hero-copy { max-width: 580px; }
.eyebrow {
  display: inline-block;
  font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
}
.eyebrow-light { color: var(--gold); }
.hero h1 { margin-bottom: 18px; }
.grad {
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede { font-size: 1.15rem; color: var(--ink-2); margin-bottom: 28px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.btn {
  display: inline-block;
  font-weight: 600; font-size: 1rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy); color: white !important;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--navy) !important;
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: white !important; }
.btn-full { width: 100%; padding: 15px; }

.hero-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: .9rem; color: var(--steel);
}
.hero-meta li { font-weight: 500; }

.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.hero-mark {
  width: 280px; height: 280px; object-fit: contain;
  position: relative; z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(11,37,69,0.18));
}
.hero-glow {
  position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(42,157,143,0.25) 0%, transparent 60%);
  border-radius: 50%;
  z-index: 1;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.08); opacity: 1; }
}

/* ----------------- SECTION BASE ----------------- */
.section { padding: 80px 0; }
.section-tinted { background: var(--bg); }
.section-dark {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #e6ecf5;
}
.section-dark h2 { color: white; }
.section-dark .section-sub { color: #c5d0e0; }
.section-dark a { color: var(--gold); }

.section-head {
  text-align: center; max-width: 720px; margin: 0 auto 50px;
}
.section-sub { font-size: 1.1rem; color: var(--steel); }
.section-sub-light { color: #c5d0e0; }

.grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: repeat(2, 1fr); }
.deploy-grid   { grid-template-columns: repeat(3, 1fr); }
.why-grid      { grid-template-columns: repeat(2, 1fr); }

/* ----------------- CARDS (services) ----------------- */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(42,157,143,0.4);
}
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { color: var(--navy); }
.card p { color: var(--ink-2); margin-bottom: 14px; }
.card-list {
  list-style: none; padding: 0; margin: 0;
  font-size: .9rem; color: var(--steel);
}
.card-list li { padding: 4px 0; border-top: 1px dashed var(--line); }
.card-list li:first-child { border-top: 0; }

.card-featured {
  border-color: var(--teal);
  box-shadow: 0 8px 28px -8px rgba(42,157,143,0.30);
  position: relative;
}
.card-featured::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.card-badge {
  display: inline-block;
  font-size: .65rem; font-weight: 700; letter-spacing: .08em;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  color: white;
  padding: 3px 8px; border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* ----------------- DEPLOY (dark) ----------------- */
.deploy-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.deploy-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(212,162,76,0.06);
}
.deploy-tag {
  display: inline-block; font-size: .75rem; font-weight: 600;
  background: rgba(255,255,255,0.10); color: white;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
  letter-spacing: .03em;
}
.deploy-card h3 { color: white; font-size: 1.35rem; }
.deploy-card p { color: #c5d0e0; }
.deploy-price {
  margin: 18px 0; padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  line-height: 1.8;
}
.price-num { font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.3rem; color: var(--gold); }
.price-unit { color: #9aa6b8; font-size: .9rem; margin-left: 6px; }
.deploy-note { font-size: .85rem; color: #9aa6b8; font-style: italic; margin: 0; }

.deploy-foot {
  text-align: center; max-width: 760px; margin: 50px auto 0;
  font-size: 1.1rem; color: #c5d0e0;
}
.deploy-foot strong { color: var(--gold); }

/* ----------------- WHY ----------------- */
.why-card {
  padding: 26px;
  border-left: 3px solid var(--teal);
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.why-card h3 { color: var(--navy); margin-bottom: 8px; }
.why-card p { color: var(--ink-2); margin: 0; }

/* ----------------- DEMO ----------------- */
.demo-inner { max-width: 720px; margin: 0 auto; }
.demo-frame {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  background: black;
  aspect-ratio: 9 / 12;
  max-width: 540px; margin: 0 auto;
}
.demo-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ----------------- CONTACT ----------------- */
.contact-inner { max-width: 620px; margin: 0 auto; }
.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 28px; border-radius: var(--radius);
}
.contact-form label {
  display: block; font-size: .85rem; font-weight: 600;
  color: #c5d0e0; margin-bottom: 14px;
}
.contact-form input,
.contact-form textarea {
  display: block; width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font-family: inherit; font-size: 1rem;
  color: white;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  transition: border-color .15s ease, background .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.10);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { color: #9aa6b8; font-size: .85rem; text-align: center; margin: 14px 0 0; }

/* ----------------- FOOTER ----------------- */
.footer {
  background: var(--navy-3);
  color: #c5d0e0;
  padding: 36px 0;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.footer-mark { width: 28px; height: 28px; object-fit: contain; }
.footer-name { color: white; font-weight: 700; font-family: 'Space Grotesk'; }
.footer-motto { color: var(--gold); font-weight: 500; margin: 8px 0; }
.footer-meta { font-size: .9rem; margin: 6px 0; }
.footer-copy { font-size: .8rem; color: #6b7a90; margin: 14px 0 0; }
.footer a { color: var(--gold); }

/* ----------------- RESPONSIVE ----------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero-copy { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-visual { order: -1; min-height: 240px; }
  .hero-mark { width: 220px; height: 220px; }
  .deploy-grid { grid-template-columns: 1fr; }
  .why-grid    { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links .nav-cta { display: inline-block; }
  .nav-links { display: flex; gap: 10px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero    { padding: 60px 0 70px; }
}
