/* ===========================
   EthOps – Global Styles
   =========================== */

:root {
  --primary:     #0d4f8c;
  --primary-dark:#093a6b;
  --accent:      #1a8fe3;
  --accent-light:#e8f4fd;
  --text:        #1a1a2e;
  --muted:       #5a6477;
  --bg:          #ffffff;
  --bg-alt:      #f5f8fc;
  --border:      #dce4ef;
  --radius:      8px;
  --shadow:      0 4px 20px rgba(13,79,140,.10);
  --max-width:   1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 48px;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  text-decoration: none;
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background .2s !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  text-decoration: none !important;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .1s;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover { background: var(--accent-light); }

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover { background: #1478c8; color: #fff; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--accent) 100%);
  color: #fff;
  padding: 100px 0 80px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #d4eaff;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  opacity: .9;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: .9rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ── Feature cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(13,79,140,.14);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* ── About / Who is EthOps ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-text .btn { margin-top: 8px; }

.about-grid--reverse .about-visual { order: 1; }
.about-grid--reverse .about-text   { order: 2; }

.about-visual {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  border-radius: 16px;
  padding: 48px 36px;
  color: #fff;
}

.about-visual h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  opacity: .9;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  opacity: .9;
}

.about-list li::before {
  content: "✓";
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .75rem;
  font-weight: 700;
  margin-top: 1px;
}

/* ── Process steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 18px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.step p {
  font-size: .9rem;
  color: var(--muted);
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: .85;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Form ── */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 40px;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
}

.form-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-card .form-intro {
  color: var(--muted);
  margin-bottom: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,143,227,.12);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit { width: 100%; padding: 14px; font-size: 1rem; margin-top: 8px; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success .success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.form-success .success-icon svg {
  width: 56px;
  height: 56px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.required { color: #c0392b; }

.demo-expect { text-align: center; max-width: 900px; }
.demo-expect .section-subtitle { margin-left: auto; margin-right: auto; }
.demo-expect .cards { text-align: left; }

.form-back { margin-top: 24px; }

.form-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.form-success p {
  color: var(--muted);
}

/* ── Footer ── */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 48px 0 28px;
  font-size: .9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand p {
  max-width: 260px;
  line-height: 1.6;
}

.footer-links h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255,255,255,.65);
  transition: color .2s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}

/* ── Demo page hero ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row   { grid-template-columns: 1fr; }
  .nav-links  { display: none; }
  .form-card  { padding: 32px 20px; }
  .section    { padding: 56px 0; }
}
