/* Clean single‑page styles */
:root {
  --fg: #0b1020;
  --bg: #ffffff;
  --muted: #667085;
  --link: #2563eb;
  --border: #e5e7eb;
}

/* Dark theme */
:root[data-theme="dark"] {
  --fg: #e5e7eb;
  --bg: #0b1020;
  --muted: #9aa4b2;
  --link: #8ab4ff;
  --border: #233044;
}

:root[data-theme="dark"] #services .card {
  background: #1a152a; /* deep muted purple for dark mode */
}


/* Smooth color transitions so the toggle feels nice */
html, body, .card, .nav, .footer, .contact-form, .cta, .btn {
  transition: background-color 160ms linear, color 160ms linear, border-color 160ms linear;
}

/* Buttons should look OK in both modes */
/*.btn { color: var(--fg); }*/
* { box-sizing: border-box; }
html, body { margin:0; padding:0; color:var(--fg); background:var(--bg); font:16px/1.65 system-ui, -apple-system, Segoe UI, Inter, Roboto, Arial, sans-serif; }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease;
  background: #7c3aed;   /* Ethereum-ish purple */
  color: #fff;           /* text is white */
  border: none;
}

.btn:hover {
  background: #5b21b6;   /* darker purple */
}

.nav { border-bottom:1px solid var(--border); background: var(--bg); color: var(--fg); position:sticky; top:0; z-index:10; }
.nav-inner { max-width:980px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; padding:12px 20px; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; font-weight:700; }
.brand img { height:80px; width:auto; }
.brand span {font-size:1.5rem; font-weight: 700;}
.social a { margin-left:14px; color:inherit; text-decoration:none; }
.social a:hover { text-decoration:underline; }

/* Theme toggle button */
#theme-toggle {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--fg);       /* follows light/dark text color */
  padding: 4px 8px;
  border-radius: 6px;
}

#theme-toggle:hover {
  background-color: var(--border);
}

.container { max-width:860px; margin:0 auto; padding:20px; }
.hero { padding:40px 0 16px; }
.hero h1 { font-size:2rem; margin:0 0 10px; }
.lead { color:var(--muted); max-width:80ch; }
.sublead { color: var(--muted); margin-top: 1rem; max-width: 80ch }
.principles-inline { margin-top: 1.5rem; font-size: 0.95rem; color: var(--muted); }
.principles-inline strong { color: var(--fg); }
.cta-row { margin-top:16px; display:flex; gap:10px; }

h2 { margin-top:32px; }
#services .cards { list-style:none; padding:0; display:grid; grid-template-columns:1fr; gap:12px; }
@media (min-width: 720px) { #services .cards { grid-template-columns: repeat(2, 1fr); } }

/* Card background variable (light/dark aware) */
:root { --card-bg: #f5f3ff; }                 /* pale purple (light) */
:root[data-theme="dark"] { --card-bg: #1a152a; } /* deep muted purple (dark) */

#services .card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  background: var(--card-bg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  transition: transform 0.15s ease,
              box-shadow 0.15s ease,
              border-color 0.15s ease,
              background 0.15s ease;
}

#services .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  border-color: var(--link);
  /* subtle hover tint for both themes */
  background: color-mix(in oklab, var(--card-bg) 92%, white);
}
:root[data-theme="dark"] #services .card:hover {
  background: color-mix(in oklab, var(--card-bg) 85%, black);
}

#services .card h3 { margin: 0 0 10px; font-size: 1.1rem; border-bottom: 2px solid var(--border); }

.contact-form { border:1px solid var(--border); border-radius:12px; padding:16px; margin-top:10px; }
.contact-form .row { display:flex; gap:12px; flex-wrap:wrap; }
.contact-form input, .contact-form textarea { width:100%; padding:10px; border:1px solid var(--border); border-radius:8px; }
.contact-form button { margin-top:10px; }

.footer { margin-top:28px; border-top:1px solid var(--border); }
.footer-inner { max-width:980px; margin:0 auto; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }

/* Desktop / default */
.brand img {
  height: 80px;
  width: auto;
}
.brand span {
  font-size: 1.5rem; /* ~24px */
  font-weight: 700;
}

/* Mobile override: for screens 480px wide or less */
@media (max-width: 480px) {
  .brand img {
    height: 80px; /* smaller logo */
  }
  .brand span {
    font-size: 1.2rem; /* ~18px */
  }
}

.principle-tag {
  font-size: 0.9em;
  opacity: 0.85;
  font-style: italic;
  margin-top: 0.5rem;
}

.highlights {
  margin-top: 24px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.highlights h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-list {
  list-style: disc;       /* default bullets */
  padding-left: 1.5rem;   /* indent bullets */
  margin: 0;
}

.feature-list li {
  margin: 6px 0;          /* spacing between bullets */
}

.feature-list li::before {
  content: none;          /* kill the custom dot you had before */
}

/* Tighten section spacing and headings */
section { margin-top: 28px; }
.hero { padding: 40px 0 12px; }
h2 { margin: 28px 0 8px; font-size: 1.35rem; }
h3 { margin: 0 0 8px; }

/* Improve bullet readability + optional two-column on wide screens */
.feature-list { margin: 0.2rem 0 0; }
.feature-list li { margin: 8px 0; line-height: 1.6; }
@media (min-width: 900px) {
  .highlights .feature-list { 
    columns: 1; 
    column-gap: 36px; 
  }
  .highlights .feature-list li { break-inside: avoid; }
}

/* Muted helper and CTA block */
.muted { color: var(--muted); }
.cta {
  padding: 18px;
  margin-top: 24px;
  background: linear-gradient(0deg, transparent, transparent),
              var(--bg);
}
