/* SWADA — Cardano blue + turquoise, Swedish yellow accents */

:root {
  --cardano-blue: #0033AD;
  --cardano-deep: #001D6E;
  --cardano-light: #4F6BED;
  --turquoise: #2DD8B7;
  --turquoise-deep: #129A85;
  --swedish-yellow: #FECC02;
  --swedish-blue: #006AA7;
  --bg: #FAFAFC;
  --bg-alt: #F1F4F9;
  --text: #14181F;
  --muted: #6B7280;
  --border: #E4E8EE;
  --dark: #0A0F1E;
  --max: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cardano-blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--turquoise-deep); }

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

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.25rem;
  color: var(--cardano-deep);
}
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 24px; font-size: 0.94rem; }
.nav nav a {
  color: var(--text);
  font-weight: 500;
}
.nav nav a:hover { color: var(--cardano-blue); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 110px 24px 90px;
  text-align: center;
  color: white;
  overflow: hidden;
  background:
    radial-gradient(at top, var(--cardano-light) 0%, transparent 60%),
    linear-gradient(180deg, var(--cardano-blue) 0%, var(--cardano-deep) 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.35;
}
.hero-grid {
  position: absolute; inset: -10% -10%;
  background-image:
    radial-gradient(circle at 20% 30%, var(--turquoise) 0, transparent 30%),
    radial-gradient(circle at 80% 70%, var(--swedish-yellow) 0, transparent 35%);
  filter: blur(60px);
}
.hero-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.hero-logo {
  border-radius: 24px;
  margin-bottom: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(90deg, white 0%, var(--turquoise) 50%, var(--swedish-yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tagline {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--turquoise);
  margin-bottom: 24px;
}
.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}
.hero-cta {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--swedish-yellow);
  color: var(--cardano-deep);
  box-shadow: 0 8px 24px rgba(254, 204, 2, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(254, 204, 2, 0.45);
  color: var(--cardano-deep);
}
.btn-secondary {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

/* ===== STATS ===== */
.stats {
  padding: 60px 0;
  background: white;
  border-bottom: 1px solid var(--border);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}
.stat {
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cardano-deep);
}

/* ===== SECTION ===== */
.section {
  padding: 90px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  color: var(--cardano-deep);
}
.section h2::after {
  content: '';
  display: block;
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--cardano-blue), var(--turquoise), var(--swedish-yellow));
  border-radius: 2px;
  margin-top: 14px;
}
.section h3 {
  font-size: 1.3rem;
  margin: 24px 0 10px;
  color: var(--cardano-blue);
}
.section p {
  margin-bottom: 14px;
  color: #2A303B;
}
.note {
  background: white;
  border-left: 4px solid var(--turquoise);
  padding: 18px 22px;
  border-radius: 8px;
  margin-top: 28px;
  color: var(--text);
}
.section-alt .note {
  background: white;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 51, 173, 0.08);
  border-color: var(--turquoise);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--text); }

/* ===== DREP CARD ===== */
.drep-card {
  background: linear-gradient(135deg, var(--cardano-deep) 0%, var(--cardano-blue) 100%);
  color: white;
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 51, 173, 0.25);
}
.drep-logo {
  border-radius: 18px;
  margin-bottom: 16px;
  border: 3px solid var(--swedish-yellow);
}
.drep-card h4 {
  font-size: 1.6rem;
  color: var(--swedish-yellow);
  margin-bottom: 8px;
}
.drep-id {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  word-break: break-all;
  margin-bottom: 22px;
  background: rgba(255,255,255,0.06);
  padding: 8px 12px;
  border-radius: 6px;
}
.drep-principles {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0;
}
.drep-principles li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 0.93rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.drep-principles li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--turquoise);
  font-weight: bold;
}
.drep-principles li:last-child { border-bottom: none; }

/* ===== STEPS ===== */
.steps {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}
.step {
  background: white;
  border-radius: 14px;
  padding: 26px 28px 26px 88px;
  position: relative;
  border: 1px solid var(--border);
}
.step-num {
  position: absolute;
  left: 24px; top: 24px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--cardano-blue), var(--turquoise));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
}
.step h3 { margin-top: 0; margin-bottom: 8px; color: var(--cardano-deep); }
.step p { margin: 0; }
.step pre {
  background: #0F1626;
  color: var(--turquoise);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  margin-top: 10px;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* ===== PROJECT CARD ===== */
.project-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-top: 12px;
}
.section-alt .project-card { background: var(--bg); }
.project-card h4 {
  font-size: 1.4rem;
  color: var(--swedish-blue);
  margin-bottom: 10px;
}
.project-card .btn {
  margin-top: 12px;
  background: var(--swedish-yellow);
  color: var(--cardano-deep);
  display: inline-block;
}

/* ===== CONTACT ===== */
.contact-section {
  text-align: center;
}
.contact-section h2::after {
  margin-left: auto; margin-right: auto;
}
.contact-btn {
  margin: 24px 0 16px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 36px;
}
.footer-col strong {
  color: white;
  font-size: 1rem;
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  padding: 4px 0;
  font-size: 0.92rem;
}
.footer-col a {
  color: var(--turquoise);
}
.footer-col a:hover {
  color: var(--swedish-yellow);
}
.footer-col p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 640px) {
  .nav nav { display: none; }
  .hero { padding: 80px 24px 70px; }
  .section { padding: 64px 0; }
  .step { padding-left: 80px; }
}
