/* ===== UsEmergingTech.com Design System ===== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Primary */
  --midnight:    #0B1526;
  --deep-blue:   #123A63;
  --steel-blue:  #2E5B88;
  /* Neutral */
  --ice-gray:    #EAF1F7;
  --white:       #FFFFFF;
  --text-muted:  #8899AA;
  --border:      #D0DAE4;
  /* Accent */
  --cyan:        #4CC9F0;
  --teal:        #1FA7A0;
  /* Derived */
  --hero-overlay: rgba(11, 21, 38, 0.92);
  --card-shadow:  0 2px 12px rgba(11, 21, 38, 0.08);
  --card-hover:   0 6px 24px rgba(11, 21, 38, 0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--midnight);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--steel-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan); }
img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* --- Header / Nav --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--midnight);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: 0 24px; height: 68px;
}
.nav-brand {
  display: flex; align-items: center;
}
.nav-brand img {
  height: 60px; width: auto;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.75); font-size: 0.9rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--white);
  margin: 5px 0; transition: .3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--midnight);
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(76,201,240,.1) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(31,167,160,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(76,201,240,.05) 0%, transparent 45%);
}
/* Animated grid */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(76,201,240,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76,201,240,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { transform: translate(0,0); }
  100% { transform: translate(60px,60px); }
}
.hero .container { max-width: 1400px; }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero h1 { color: var(--white); margin-bottom: 20px; font-size: 3rem; }
.hero h1 .accent { color: var(--cyan); }
.hero .subtitle {
  color: rgba(255,255,255,.8); font-size: 1.2rem; line-height: 1.7;
  margin-bottom: 16px;
}
.hero .body-text {
  color: rgba(255,255,255,.55); font-size: 1rem; line-height: 1.8;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 6px; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-primary {
  background: var(--cyan); color: var(--midnight);
}
.btn-primary:hover { background: #3BB8DF; color: var(--midnight); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: #178F89; color: var(--white); }

/* --- Section --- */
.section {
  padding: 88px 0;
  background: linear-gradient(180deg, var(--white) 0%, #F5F9FC 100%);
}
.section--gray {
  background: linear-gradient(180deg, #EAF1F7 0%, #F2F7FB 60%, var(--white) 100%);
}
.section--dark {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(76,201,240,.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(31,167,160,.04) 0%, transparent 45%),
    var(--midnight);
  color: var(--white);
}
.section-header {
  max-width: 660px; margin: 0 0 56px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.section--dark .section-header p { color: rgba(255,255,255,.6); }
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
}

/* --- Cards Grid --- */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(160deg, #D0D3D8 0%, #DCDEE2 50%, #C8CCD1 100%);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 10px;
  padding: 32px;
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transform: translateY(-3px);
  background: linear-gradient(160deg, #D8DBDF 0%, #E3E5E8 50%, #D0D3D8 100%);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(11,21,38,.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.4rem; color: var(--steel-blue);
}
.card h3 { margin-bottom: 12px; color: var(--midnight); }
.card p { color: #1E2A3A; font-size: 0.95rem; }
.card ul {
  list-style: none; margin-top: 14px;
}
.card ul li {
  position: relative; padding-left: 18px; margin-bottom: 8px;
  font-size: 0.9rem; color: #1E2A3A;
}
.card ul li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
}

/* Dark card variant */
.section--dark .card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.section--dark .card:hover {
  border-color: rgba(76,201,240,.2);
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.section--dark .card h3 { color: var(--white); }
.section--dark .card p, .section--dark .card ul li { color: rgba(255,255,255,.6); }
.section--dark .card-icon { background: rgba(76,201,240,.1); color: var(--cyan); }

/* --- Outcomes list --- */
.outcomes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.outcome-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px; background: linear-gradient(160deg, #D0D3D8 0%, #DCDEE2 50%, #C8CCD1 100%);
  border-radius: 8px; border: 1px solid rgba(0,0,0,.06);
}
.outcome-check {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(31,167,160,.1); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.outcome-item span { font-size: 0.95rem; font-weight: 500; }

/* --- Industries row --- */
.industry-tags {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.industry-tag {
  padding: 10px 22px; border-radius: 40px;
  background: rgba(76,201,240,.08); color: var(--steel-blue);
  font-size: 0.9rem; font-weight: 600;
  border: 1px solid rgba(76,201,240,.15);
}

/* --- CTA Banner --- */
.cta-banner {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(76,201,240,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(31,167,160,.06) 0%, transparent 50%),
    linear-gradient(135deg, var(--deep-blue) 0%, var(--midnight) 100%);
  padding: 72px 0; text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.65); font-size: 1.05rem; margin-bottom: 28px; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: var(--midnight);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(76,201,240,.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(31,167,160,.05) 0%, transparent 45%);
}
.page-hero-content { position: relative; z-index: 2; max-width: 660px; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; font-size: 2.5rem; }
.page-hero p { color: rgba(255,255,255,.65); font-size: 1.1rem; }

/* --- Contact Form --- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-info h3 { margin-bottom: 20px; }
.contact-info p { color: #5A6B7D; }
.contact-email {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; background: var(--ice-gray);
  border-radius: 8px; font-weight: 600; color: var(--steel-blue);
  margin: 20px 0;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.9rem; font-weight: 600;
  margin-bottom: 6px; color: var(--midnight);
}
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 6px; font-family: inherit; font-size: 0.95rem;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--cyan);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Topic tags in contact */
.topic-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.topic-tag {
  padding: 6px 14px; border-radius: 20px;
  background: var(--ice-gray); color: var(--steel-blue);
  font-size: 0.82rem; font-weight: 500;
}

/* --- About page --- */
.diff-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.diff-item {
  text-align: center; padding: 32px 20px;
  border: 1px solid rgba(0,0,0,.06); border-radius: 10px;
  background: linear-gradient(160deg, #D0D3D8 0%, #DCDEE2 50%, #C8CCD1 100%);
}
.diff-item .icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(76,201,240,.08); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.3rem;
}
.diff-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.diff-item p { font-size: 0.9rem; color: #5A6B7D; }

/* --- Footer --- */
.site-footer {
  background: var(--midnight);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 32px;
}
.footer-brand { margin-bottom: 8px; }
.footer-brand img {
  height: 48px; width: auto;
}
.footer-tagline { color: rgba(255,255,255,.4); font-size: 0.85rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.55); font-size: 0.88rem; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center; color: rgba(255,255,255,.3); font-size: 0.82rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .outcomes { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 110px 0 70px; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 60px 0; }

  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--midnight); padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .diff-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}
