/* ═══════════════════════════════════════════
   SOLARIA ROBOTICS — Consulting Landing Page
   styles.css
   Brand: Solar Gold #FDCB58 | Midnight Navy #0B1C2B
═══════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #050e17;
  color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── CSS Custom Properties ─────────────── */
:root {
  --gold:        #FDCB58;
  --gold-dim:    rgba(253, 203, 88, 0.15);
  --gold-border: rgba(253, 203, 88, 0.30);
  --gold-glow:   rgba(253, 203, 88, 0.08);
  --navy-deep:   #050e17;
  --navy-mid:    #07131e;
  --navy-card:   #0a1f30;
  --navy-border: #0D2A40;
  --text-muted:  #5A7A90;
  --text-dim:    #2A4A5A;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --transition:  0.2s ease;
}

/* ─── Typography ────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  line-height: 1.7;
}

/* ─── Section Utility Classes ───────────── */
.section {
  padding: 72px 40px;
}

.alt-bg  { background: var(--navy-mid); }
.dark-bg { background: var(--navy-deep); }

.centered {
  text-align: center;
}

.centered .sec-sub {
  margin-left: auto;
  margin-right: auto;
}

.sec-label {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.sec-title {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 12px;
}

.sec-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 40px;
}

/* ─── Buttons ───────────────────────────── */
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-gold:hover {
  transform: scale(1.03);
  box-shadow: 0 0 24px rgba(253, 203, 88, 0.35);
}

.btn-gold:active {
  transform: scale(0.99);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.20);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

/* ─── Hero ──────────────────────────────── */
.hero-wrap {
  position: relative;
  height: 560px;
  overflow: hidden;
}

.hero-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gold-border);
  background: var(--gold-glow);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.hero-content h1 {
  font-size: 46px;
  color: #ffffff;
  max-width: 680px;
  margin: 0 auto 20px;
  letter-spacing: -0.025em;
}

.hero-content h1 em {
  color: var(--gold);
  font-style: normal;
  position: relative;
}

.hero-content h1 em::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  opacity: 0.45;
  border-radius: 2px;
}

.hero-content > p {
  font-size: 16px;
  color: #7A9AAF;
  max-width: 500px;
  margin: 0 auto 32px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Trust Bar ─────────────────────────── */
.trust-bar {
  background: var(--navy-mid);
  border-top: 1px solid rgba(253, 203, 88, 0.12);
  border-bottom: 1px solid var(--navy-border);
  padding: 18px 32px;
}

.trust-inner {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.trust-check {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

/* ─── Pain Cards ────────────────────────── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.pain-card {
  background: var(--navy-deep);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(253, 203, 88, 0.45), transparent);
}

.pain-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.pain-num {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 700;
}

.pain-card h3 {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.pain-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Phase Cards ───────────────────────── */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

.phase-card {
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.phase-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(253, 203, 88, 0.25), transparent);
}

.phase-card:hover {
  border-color: rgba(253, 203, 88, 0.45);
  transform: translateY(-2px);
}

.ph-num {
  font-size: 36px;
  font-weight: 700;
  color: rgba(253, 203, 88, 0.12);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.ph-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.ph-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── Service Cards ─────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 14px;
}

.svc-card {
  background: var(--navy-deep);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color var(--transition), transform var(--transition);
}

.svc-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.svc-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.svc-icon-wrap svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.svc-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── Stats Row ─────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: rgba(253, 203, 88, 0.40);
}

.stat-card:hover {
  border-color: var(--gold-border);
}

.stat-num {
  font-size: 44px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-lbl {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── Lead Form ─────────────────────────── */
.form-outer {
  max-width: 600px;
  margin: 0 auto;
}

.form-card {
  background: var(--navy-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(253, 203, 88, 0.65), transparent);
}

.form-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 6px;
}

.form-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 26px;
  line-height: 1.6;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.fg {
  margin-bottom: 14px;
}

.fg label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.fg input,
.fg select,
.fg textarea {
  width: 100%;
  background: var(--navy-deep);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: rgba(253, 203, 88, 0.55);
  box-shadow: 0 0 0 3px rgba(253, 203, 88, 0.08);
}

.fg input::placeholder,
.fg textarea::placeholder {
  color: var(--text-dim);
}

.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A7A90' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.fg select option {
  background: var(--navy-mid);
}

.fg textarea {
  resize: vertical;
  min-height: 90px;
}

.fnote {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 18px;
  line-height: 1.55;
}

.btn-submit {
  width: 100%;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  padding: 15px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn-submit:hover {
  transform: scale(1.01);
  box-shadow: 0 0 28px rgba(253, 203, 88, 0.35);
}

.btn-submit:active {
  transform: scale(0.99);
}

.btn-submit.submitted {
  background: #1a5c2e;
  color: #ffffff;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: center;
}

.badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--navy-deep);
  border: 1px solid var(--navy-border);
  border-radius: 20px;
  padding: 5px 12px;
  letter-spacing: 0.04em;
}

.badge-check {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

/* ─── Form Feedback Messages ────────────── */
.form-success,
.form-error {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

.form-success {
  background: rgba(26, 92, 46, 0.25);
  border: 1px solid rgba(26, 92, 46, 0.60);
  color: #6fcf8a;
}

.form-error {
  background: rgba(226, 75, 74, 0.15);
  border: 1px solid rgba(226, 75, 74, 0.45);
  color: #f09595;
}

/* ─── Footer ────────────────────────────── */
.site-footer {
  padding: 24px 32px;
  text-align: center;
  border-top: 1px solid var(--navy-border);
  background: var(--navy-deep);
}

.site-footer p {
  font-size: 12px;
  color: var(--text-dim);
}

/* ─── Responsive ────────────────────────── */
@media (max-width: 768px) {
  .section {
    padding: 52px 24px;
  }

  .sec-title {
    font-size: 26px;
  }

  .hero-wrap {
    height: 520px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content {
    padding: 32px 24px;
  }

  .trust-bar {
    padding: 16px 20px;
  }
}

@media (max-width: 520px) {
  .hero-wrap {
    height: 480px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .frow {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 28px 20px;
  }

  .phase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-btns .btn-gold,
  .hero-btns .btn-ghost {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
