/* Size-adjusted fallback to prevent CLS when Inter loads */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, rgba(59,130,246,.08) 0%, rgba(250,204,21,.07) 50%, rgba(239,68,68,.08) 100%) fixed, #f8f9fc;
  color: #1e293b;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
input, button { font: inherit; }

/* Container */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-flex {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: #0f172a;
  text-decoration: none; letter-spacing: -0.02em;
  margin-right: auto;
}
.logo svg { color: #3b82f6; }
.main-nav { display: flex; gap: 28px; padding-left: 24px; border-left: 1px solid #e2e8f0; }
.main-nav a {
  color: #475569; text-decoration: none; font-weight: 500; font-size: .92rem;
  transition: color .2s;
}
.main-nav a:hover { color: #0f172a; }
.menu-toggle {
  display: none; background: none; border: none; color: #1e293b;
  font-size: 1.4rem; cursor: pointer;
}

/* Hero */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  min-height: 420px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59,130,246,.08), transparent),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(139,92,246,.06), transparent);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #0f172a 40%, #475569 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  max-width: 560px; margin: 18px auto 0;
  color: #475569; font-size: 1.05rem;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: none; text-decoration: none; transition: transform .15s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff; box-shadow: 0 8px 24px rgba(59,130,246,.2);
}
.btn-secondary {
  background: #fff; color: #1e293b;
  border: 1px solid #e2e8f0;
}
.btn-ghost { background: transparent; color: #475569; border: 1px solid #e2e8f0; }

/* Ad Containers */
.ad-container { margin: 48px auto; text-align: center; }
.ad-container ins { display: block; min-height: 90px; background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; }

/* Sections */
.section { padding: 80px 0; }
.section-header { max-width: 560px; margin-bottom: 44px; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  background: rgba(59,130,246,.12); color: #1d4ed8;
  font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-top: 14px; letter-spacing: -0.02em; }
.section-header p { color: #475569; margin-top: 8px; }

/* Builder */
.builder-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px; padding: 36px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* Wizard stepper */
.wizard-steps {
  display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 32px;
  flex-wrap: wrap;
}
.wiz-step {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: #64748b;
  padding: 6px 14px; border-radius: 8px;
  transition: color .25s, background .25s;
}
.wiz-step.active { color: #1e293b; background: rgba(59,130,246,.08); }
.wiz-step.done { color: #16a34a; }
.wiz-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; font-size: .75rem; font-weight: 700;
  background: #f1f5f9; color: #64748b;
}
.wiz-step.active .wiz-num { background: #3b82f6; color: #fff; }
.wiz-step.done .wiz-num { background: #16a34a; color: #fff; }
.wiz-connector { width: 24px; height: 2px; background: #e2e8f0; flex-shrink: 0; }

/* Wizard panels */
.wiz-panel { animation: fadeSlide .25s ease; }
.wiz-panel.hidden { display: none; }
.wiz-panel h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.wiz-hint { font-size: .88rem; color: #64748b; margin-bottom: 18px; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 12px; border-radius: 12px; cursor: pointer;
  background: #f8fafc; border: 2px solid #e2e8f0;
  transition: border-color .2s, transform .2s, box-shadow .2s; text-align: center;
}
.cat-card:hover { border-color: #cbd5e1; transform: translateY(-2px); }
.cat-card.selected { border-color: var(--cat-color); box-shadow: 0 0 0 3px rgba(var(--cat-rgb),.15); }
.cat-icon { font-size: 1.5rem; }
.cat-name { font-size: .85rem; font-weight: 600; }
.cat-card-add { border-style: dashed; background: transparent; }
.cat-card-add:hover { background: #f1f5f9; }

/* Profile bar */
.profile-bar {
  display: flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 12px;
}
.profile-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.profile-name { font-size: .85rem; font-weight: 600; color: #1e293b; }
.profile-switch-btn {
  padding: 4px 10px; border-radius: 6px; border: 1px solid #e2e8f0;
  background: #f8fafc; color: #475569; font-size: .75rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.profile-switch-btn:hover { background: #e2e8f0; }

/* Profile gate & switcher */
.gate-divider {
  text-align: center; color: #64748b; font-size: .78rem; font-weight: 500;
  margin: 16px 0 10px; position: relative;
}
.gate-divider::before, .gate-divider::after {
  content: ''; position: absolute; top: 50%; height: 1px;
  background: #e2e8f0; width: 30%;
}
.gate-divider::before { left: 0; }
.gate-divider::after { right: 0; }
.gate-profiles { display: flex; flex-direction: column; gap: 6px; }
.gate-profile-btn {
  padding: 10px 16px; border-radius: 10px; border: 1px solid #e2e8f0;
  background: #f8fafc; color: #1e293b; font-weight: 600; font-size: .9rem;
  cursor: pointer; text-align: left; transition: background .15s, border-color .15s, color .15s;
}
.gate-profile-btn:hover { background: #e2e8f0; border-color: #cbd5e1; }
.gate-profile-btn.active { border-color: #3b82f6; background: #eff6ff; color: #3b82f6; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.35); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: #fff; border-radius: 16px; padding: 32px 28px;
  width: 90%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  animation: modalSlide .25s ease;
}
@keyframes modalSlide { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.modal-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.modal-label { display: block; font-size: .82rem; font-weight: 600; color: #475569; margin-bottom: 6px; margin-top: 14px; }
.modal-input {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  color: #1e293b; font-size: .9rem; outline: none;
}
.modal-input:focus { border-color: #3b82f6; }
.modal-input-sm { max-width: 80px; }
.color-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.color-swatch {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: border-color .15s, transform .15s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: #1e293b; transform: scale(1.15); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* Loop node (shared by wizard) */
.loop-node {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 22px 18px; text-align: center;
  transition: border-color .2s, box-shadow .2s;
  max-width: 420px; margin: 0 auto;
}
.loop-node:focus-within { border-color: rgba(59,130,246,.4); box-shadow: 0 0 0 3px rgba(59,130,246,.08); }
.node-icon { font-size: 1.6rem; margin-bottom: 6px; }
.loop-node h3 { font-size: 1rem; font-weight: 700; }
.loop-node p { font-size: .82rem; color: #64748b; margin: 4px 0 12px; }
.loop-node input {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  background: #fff; border: 1px solid #e2e8f0;
  color: #1e293b; font-size: .9rem; outline: none;
}
.loop-node input:focus { border-color: #3b82f6; }
.loop-node.cue { border-top: 3px solid #fbbf24; }
.loop-node.routine { border-top: 3px solid #38bdf8; }
.loop-node.reward { border-top: 3px solid #34d399; }

/* Wizard summary */
.wiz-summary {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: 12px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  margin-bottom: 18px; font-size: .88rem;
}
.wiz-summary .ws-cat { font-weight: 600; padding: 3px 10px; border-radius: 6px; font-size: .78rem; }
.wiz-summary .ws-arrow { color: #475569; }

/* Schedule picker */
.schedule-picker {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px;
  max-height: 200px; overflow-y: auto; padding: 4px 0;
}
.sched-slot {
  padding: 8px 10px; border-radius: 8px; font-size: .8rem; font-weight: 600;
  background: #f8fafc; border: 1px solid #e2e8f0;
  color: #475569; cursor: pointer; text-align: center; transition: background .15s, color .15s, border-color .15s;
}
.sched-slot:hover { background: rgba(59,130,246,.06); color: #1e293b; border-color: rgba(59,130,246,.3); }
.sched-slot.picked { background: rgba(59,130,246,.1); color: #3b82f6; border-color: #3b82f6; }

.builder-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }

/* Loop filter tabs */
.loops-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; margin-bottom: 16px;
}
.filter-tab {
  padding: 6px 14px; border-radius: 8px; font-size: .82rem; font-weight: 600;
  background: #fff; border: 1px solid #e2e8f0;
  color: #475569; cursor: pointer; transition: color .15s, background .15s, border-color .15s;
}
.filter-tab:hover { color: #1e293b; }
.filter-tab.active { background: rgba(59,130,246,.1); color: #1d4ed8; border-color: rgba(59,130,246,.3); }

/* Loops List */
.loops-list { display: grid; gap: 14px; }
.loop-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 16px 20px;
  border-left: 4px solid var(--cat-color, #475569);
  transition: border-color .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.loop-item .li-cat {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 6px;
  background: rgba(var(--cat-rgb),.15); color: var(--cat-color);
}
.loop-item .li-cue { color: #b45309; font-weight: 600; font-size: .88rem; }
.loop-item .li-arrow { color: #94a3b8; }
.loop-item .li-routine { color: #1e293b; flex: 1; font-size: .9rem; }
.loop-item .li-reward { color: #059669; font-weight: 600; font-size: .88rem; }
.loop-item .li-actions { margin-left: auto; display: flex; gap: 6px; }
.loop-item button {
  background: none; border: none; color: #64748b; cursor: pointer; font-size: 1rem;
  padding: 4px; transition: color .2s;
}
.loop-item button:hover { color: #1e293b; }
.li-sched-btn { font-size: .85rem !important; }
.li-sched-btn:hover { color: #3b82f6 !important; }

/* Planner */
.planner-cat-filter { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.pcf-label { font-size: .82rem; font-weight: 600; color: #475569; }
.pcf-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pcf-tab {
  padding: 5px 12px; border-radius: 6px; font-size: .78rem; font-weight: 600;
  background: #fff; border: 1px solid #e2e8f0;
  color: #475569; cursor: pointer; transition: color .15s, background .15s, border-color .15s;
}
.pcf-tab:hover { color: #1e293b; }
.pcf-tab.active { background: rgba(59,130,246,.1); color: #1d4ed8; border-color: rgba(59,130,246,.3); }

.planner-grid { display: grid; gap: 8px; }
.time-slot {
  display: grid; grid-template-columns: 70px 1fr auto;
  gap: 12px; align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 10px 14px;
  transition: background .15s;
}
.time-slot:hover { background: #f8fafc; }
.time-label { font-size: .8rem; font-weight: 600; color: #475569; text-align: right; }
.slot-content { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-height: 30px; }
.slot-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 7px; font-size: .8rem; font-weight: 500;
  background: rgba(var(--cat-rgb, 56,189,248),.12);
  color: var(--cat-color, #7dd3fc);
  border: 1px solid rgba(var(--cat-rgb, 56,189,248),.2);
  cursor: default; user-select: none;
}
.slot-badge .remove {
  opacity: .5; cursor: pointer; font-size: .85rem; margin-left: 2px;
}
.slot-badge .remove:hover { opacity: 1; }
.slot-badge .badge-check {
  cursor: pointer; opacity: .6; font-size: .9rem;
}
.slot-badge .badge-check:hover { opacity: 1; }
.slot-badge.completed { opacity: .5; text-decoration: line-through; }
.slot-empty { color: #64748b; font-size: .8rem; }
.slot-add-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px dashed #cbd5e1;
  background: none; color: #64748b; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s, border-color .15s; flex-shrink: 0;
}
.slot-add-btn:hover { background: rgba(59,130,246,.06); color: #3b82f6; border-color: rgba(59,130,246,.3); }

/* Assign dropdown */
.assign-dropdown {
  position: absolute; z-index: 40; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; padding: 6px; margin-top: 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
  max-height: 200px; overflow-y: auto;
}
.assign-option {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 7px; font-size: .82rem;
  color: #1e293b; cursor: pointer; transition: background .12s;
}
.assign-option:hover { background: #f1f5f9; }
.assign-option .ao-cat {
  font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 5px;
  text-transform: uppercase; letter-spacing: .03em;
}
.assign-empty { padding: 12px; text-align: center; color: #64748b; font-size: .82rem; }
.time-slot { position: relative; }

/* Progress */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 24px 20px; text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.stat-value {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .85rem; color: #475569; margin-top: 6px; }

/* 28-Day Calendar */
.calendar-28 {
  margin-top: 40px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 16px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.cal-header h3 { font-size: 1.05rem; font-weight: 700; }
.cal-legend { display: flex; gap: 14px; }
.cal-leg-item { display: flex; align-items: center; gap: 5px; font-size: .75rem; color: #475569; font-weight: 500; }
.cal-dot { width: 10px; height: 10px; border-radius: 3px; }
.cal-dot-done { background: #bbf7d0; border: 1px solid #86efac; }
.cal-dot-partial { background: #bfdbfe; border: 1px solid #93c5fd; }
.cal-dot-empty { background: #f1f5f9; border: 1px solid #e2e8f0; }
.cal-day-names {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  margin-bottom: 4px; text-align: center;
}
.cal-day-names span { font-size: .72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; padding: 4px 0; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal-cell {
  border-radius: 8px; background: #f8fafc; border: 1px solid #f1f5f9;
  min-height: 80px; padding: 6px; position: relative;
  transition: transform .15s, box-shadow .15s; cursor: default;
}
.cal-cell:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.cal-cell.empty { background: transparent; border-color: transparent; pointer-events: none; }
.cal-cell.today { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,.12); }
.cal-date {
  font-size: .72rem; font-weight: 700; color: #475569; margin-bottom: 4px;
}
.cal-cell.today .cal-date { color: #1d4ed8; }
.cal-status {
  width: 100%; height: 4px; border-radius: 2px; background: #f1f5f9;
  overflow: hidden; margin-top: auto;
}
.cal-bar { height: 100%; border-radius: 2px; transition: width .3s ease; }
.cal-bar.done { background: #34d399; }
.cal-bar.partial { background: #60a5fa; }
.cal-habit-item {
  display: flex; align-items: center; gap: 4px;
  margin-top: 2px; overflow: hidden;
}
.cal-habit-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--dot-color, #94a3b8);
}
.cal-habit-name {
  font-size: .6rem; color: #475569; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-habit-more {
  font-size: .58rem; color: #64748b; font-weight: 600; margin-top: 2px;
}

/* About */
.about { background: #f1f5f9; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.about p { color: #334155; margin-top: 14px; }
.about-list { list-style: none; margin-top: 20px; }
.about-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #cbd5e1;
  color: #1e293b; font-size: .95rem;
}
.about-list li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1); flex-shrink: 0;
}
.about-visual { display: flex; justify-content: center; }
.ring-wrapper {
  position: relative; width: 340px; height: 380px;
}
.visual-ring {
  width: 250px; height: 250px; border-radius: 50%;
  position: absolute; top: 55px; left: 45px;
  background: conic-gradient(#fbbf24 0deg 120deg, #38bdf8 120deg 240deg, #34d399 240deg 360deg);
  -webkit-mask: radial-gradient(transparent 60%, black 61%);
  mask: radial-gradient(transparent 60%, black 61%);
  animation: ringRotate 18s linear infinite;
  will-change: transform;
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.ring-arrows {
  position: absolute; top: 20px; left: 10px;
  width: 320px; height: 320px; pointer-events: none;
  animation: ringRotate 18s linear infinite;
  will-change: transform;
}
.ring-label {
  position: absolute; font-weight: 700; font-size: 1rem;
  color: #1e293b; white-space: nowrap;
  background: #fff; padding: 10px 20px; border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: default; z-index: 2;
}
.ring-label:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.cue-label { top: -30px; left: 50%; transform: translateX(-50%); }
.cue-label:hover { transform: translateX(-50%) translateY(-4px) scale(1.06); }
.routine-label { bottom: 10px; right: -10px; }
.reward-label { bottom: 10px; left: -10px; }

/* Footer */
.site-footer {
  border-top: 1px solid #e2e8f0; padding: 48px 0 24px;
  background: #fff;
}
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px;
}
.footer-desc { max-width: 300px; color: #64748b; font-size: .9rem; margin-top: 10px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: #475569; text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-nav a:hover { color: #0f172a; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid #e2e8f0; text-align: center; color: #64748b; font-size: .85rem; }

/* Responsive */
@media (max-width: 860px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 24px; gap: 16px; border-bottom: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .loop-flow { grid-template-columns: 1fr; }
  .loop-arrow { transform: rotate(90deg); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .ring-wrapper { width: 280px; height: 320px; }
  .visual-ring { width: 190px; height: 190px; top: 55px; left: 45px; }
  .hero { padding: 80px 0 70px; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .builder-actions { flex-direction: column; }
  .btn { width: 100%; }
}
