@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Jacquard+12&family=Share+Tech+Mono&display=swap');

:root {
  --bg:        #ffffff;
  --bg2:       #f5f5f5;
  --bg3:       #eeeeee;
  --bg4:       #f9f9f9;
  --slime:     #1a7a00;
  --slime-d:   #2d8c1a;
  --slime-dim: rgba(26,122,0,0.08);
  --mud:       #5a4a30;
  --rot:       #3a6e10;
  --rotten:    #4a6e25;
  --danger:    #cc2200;
  --danger-d:  rgba(204,34,0,0.1);
  --text:      #111111;
  --text-dim:  #555555;
  --border:    #dddddd;
  --glow:      0 0 12px rgba(26,122,0,0.15);
  --glow-s:    0 0 6px  rgba(26,122,0,0.1);
  --font-title:'Bebas Neue', sans-serif;
  --font-brand:'Jacquard 12', serif;
  --font-mono: 'Share Tech Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}

/* ── TEXTURE ───────────────────────────────────────────────── */

.mud-overlay {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background: none;
}

/* ── NAVBAR ────────────────────────────────────────────────── */

.navbar {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-badge {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: screen;
  flex-shrink: 0;
}

.nav-name {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--slime);
  text-shadow: var(--glow-s);
  letter-spacing: 0.05em;
}

.nav-tagline {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ── HERO ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.hero-title span {
  color: var(--slime);
  text-shadow: var(--glow), 0 0 60px rgba(90,255,60,0.15);
  display: block;
}

.hero-title em {
  font-style: normal;
  color: var(--rot);
  font-size: 75%;
  display: block;
  margin-top: 0.3em;
  line-height: 1.1;
}

.hero-img {
  display: block;
  width: 100%;
  max-width: 460px;
  margin-top: 2rem;
  border-radius: 2px;
  filter: drop-shadow(0 0 24px rgba(90,255,60,0.15));
}

/* HERO FORM */

.hero-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--slime-d);
  padding: 1.8rem;
}

.form-label {
  font-size: 0.68rem;
  color: var(--rotten);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.input-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--slime-d);
  background: var(--bg);
  margin-bottom: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-row:focus-within {
  border-color: var(--slime);
  box-shadow: var(--glow-s);
}

#prefix {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--slime);
  padding: 0.7rem 1rem;
  min-width: 0;
}

#prefix::placeholder { color: var(--text-dim); opacity: 0.5; }

.at-sep {
  display: flex;
  align-items: center;
  padding: 0 0.4rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  background: var(--bg3);
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}

.domain-select {
  background: var(--bg3);
  border: none;
  outline: none;
  color: var(--rot);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.7rem 0.8rem 0.7rem 0.3rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.preview-email {
  font-size: 0.72rem;
  color: var(--text-dim);
  min-height: 1.2em;
  margin-bottom: 1rem;
  padding-left: 0.2rem;
}

/* ── BUTTONS ───────────────────────────────────────────────── */

.btn-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.15s;
  text-transform: lowercase;
}

.btn:hover {
  color: var(--slime);
  border-color: var(--slime-d);
  background: var(--slime-dim);
}

.btn.btn-main {
  background: var(--slime-d);
  color: var(--bg);
  border-color: var(--slime-d);
  font-weight: bold;
  padding-right: 1.4rem;
}

.btn.btn-main:hover {
  background: var(--slime);
  border-color: var(--slime);
  box-shadow: var(--glow-s);
}

.btn.sm { padding: 0.35rem 0.7rem; font-size: 0.75rem; }

.btn.danger {
  color: var(--danger);
  border-color: rgba(204,34,0,0.3);
}

.btn.danger:hover {
  background: var(--danger-d);
  border-color: var(--danger);
  color: #ff5533;
}

/* HERO WARNING + CHECKS */

.hero-warning {
  display: flex;
  gap: 0.6rem;
  background: rgba(90,255,60,0.04);
  border: 1px solid rgba(90,255,60,0.12);
  padding: 0.7rem 0.9rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.hero-warning strong { color: var(--rot); }
.warn-icon { font-size: 0.85rem; flex-shrink: 0; margin-top: 0.1rem; }

.hero-checks {
  display: flex;
  gap: 1.2rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

/* ── INBOX WRAPPER ─────────────────────────────────────────── */

.inbox-wrapper {
  position: relative;
  z-index: 1;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg4);
}

.inbox-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── CARD (inbox) ──────────────────────────────────────────── */

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--slime-d);
  padding: 1.4rem;
  margin-bottom: 1rem;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(90,255,60,0.02) 0%, transparent 60%);
  pointer-events: none;
}

/* ── INBOX TOP ─────────────────────────────────────────────── */

.inbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inbox-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--rot);
}

.slime-dot {
  width: 8px; height: 8px;
  background: var(--text-dim);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s;
}

.slime-dot.on  { background: var(--slime); box-shadow: 0 0 6px var(--slime); }
.slime-dot.off { background: var(--danger); }
.slime-dot.connecting { background: var(--rot); animation: pulse 1s infinite; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.badge {
  background: var(--slime-d);
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: bold;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
}

.inbox-actions { display: flex; gap: 0.4rem; }

/* ── MESSAGE LIST ──────────────────────────────────────────── */

.inbox-body { position: relative; }

.msg-list {
  min-height: 180px;
  max-height: 440px;
  overflow-y: auto;
}

.msg-list::-webkit-scrollbar { width: 4px; }
.msg-list::-webkit-scrollbar-thumb { background: var(--border); }

.empty {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 2;
}

.empty-icon { font-size: 1.5rem; opacity: 0.4; }
.empty small { opacity: 0.5; font-size: 0.72rem; }

.msg-row {
  display: grid;
  grid-template-columns: 1fr 180px auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.3rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}

.msg-row:hover { background: rgba(90,255,60,0.04); }

.msg-row.new { animation: rot-in 0.5s ease; }

@keyframes rot-in {
  from { background: rgba(90,255,60,0.1); border-left: 2px solid var(--slime); }
  to   { border-left: 2px solid transparent; }
}

.msg-from-col {
  font-size: 0.75rem;
  color: var(--rotten);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-subject-col {
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-time-col {
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.msg-del-col {
  opacity: 0;
  font-size: 0.72rem;
  color: var(--danger);
  cursor: pointer;
  padding: 0 0.2rem;
  background: none;
  border: none;
  font-family: var(--font-mono);
  transition: opacity 0.1s;
}

.msg-row:hover .msg-del-col { opacity: 0.6; }
.msg-del-col:hover { opacity: 1 !important; }

/* ── DETAIL ────────────────────────────────────────────────── */

.msg-detail { padding-top: 0.3rem; }

.back-btn { margin-bottom: 0.8rem; }

.meta-block {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
}

.meta-row {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  padding: 0.2rem 0;
}

.meta-label {
  color: var(--text-dim);
  min-width: 4rem;
  text-transform: lowercase;
  flex-shrink: 0;
}

.divider {
  border-top: 1px solid var(--border);
  margin: 0.8rem 0;
}

.body-content {
  font-size: 0.85rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  max-height: 380px;
  overflow-y: auto;
}

.body-content iframe {
  width: 100%;
  border: 1px solid var(--border);
  min-height: 200px;
  background: #fff;
  display: block;
}

/* ── API BAR ───────────────────────────────────────────────── */

.api-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-top: 2px solid var(--mud);
}

.api-tag {
  background: var(--rotten);
  color: var(--bg);
  font-size: 0.62rem;
  font-weight: bold;
  padding: 0.1rem 0.4rem;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.api-bar code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  word-break: break-all;
}

/* ── SECTION SHARED ────────────────────────────────────────── */

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-eyebrow {
  font-size: 0.7rem;
  color: var(--slime);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1;
  color: var(--text);
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

/* ── HOW SECTION ───────────────────────────────────────────── */

.how-section {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
}

.steps-img {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--border);
  box-shadow: var(--glow-s);
}

/* ── WHY SECTION ───────────────────────────────────────────── */

.why-section {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 60ch;
  line-height: 1.7;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

/* DIAGRAM */

.why-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  padding: 2.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
}

.why-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--slime-d);
  padding: 1.2rem 1.4rem;
  min-width: 160px;
  font-size: 0.78rem;
}

.why-box.clean {
  border-top-color: var(--rot);
}

.why-box-title {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--rotten);
  margin-bottom: 0.8rem;
  font-weight: bold;
}

.why-field {
  color: var(--text-dim);
  font-size: 0.72rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
}

.why-btn {
  margin-top: 0.8rem;
  background: var(--slime-d);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  text-align: center;
  letter-spacing: 0.05em;
}

.why-clean-item {
  color: var(--rot);
  font-size: 0.78rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}

.why-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.flow-emails {
  font-size: 0.75rem;
  color: var(--rotten);
  letter-spacing: 0.1em;
}

.flow-arrow {
  font-size: 1.2rem;
  color: var(--slime-d);
}

.why-ogro {
  text-align: center;
}

.why-ogro-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: screen;
  margin-bottom: 0.4rem;
  display: block;
}

.why-ogro-label {
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* WHY LIST */

.why-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.why-list-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 1.2rem 1.4rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
}

.why-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--slime-d);
  color: var(--slime);
  font-size: 0.7rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-warning {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  padding: 0.8rem;
  border: 1px solid var(--border);
  background: rgba(90,255,60,0.02);
}

/* ── FOOTER ────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 1;
  background: #f0f0f0;
  border-top: 1px solid var(--border);
  padding-top: 0;
}

.footer-serration {
  width: 100%;
  height: 20px;
  background: repeating-linear-gradient(
    90deg,
    var(--bg) 0px,
    var(--bg) 12px,
    #f0f0f0 12px,
    #f0f0f0 24px
  );
  clip-path: polygon(
    0% 0%, 4% 100%, 8% 0%, 12% 100%, 16% 0%, 20% 100%,
    24% 0%, 28% 100%, 32% 0%, 36% 100%, 40% 0%, 44% 100%,
    48% 0%, 52% 100%, 56% 0%, 60% 100%, 64% 0%, 68% 100%,
    72% 0%, 76% 100%, 80% 0%, 84% 100%, 88% 0%, 92% 100%,
    96% 0%, 100% 100%, 100% 0%
  );
}

.footer-peek {
  text-align: center;
  margin-top: -0.2rem;
}

.footer-badge {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.footer-link-badge {
  width: 16px;
  height: 16px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: screen;
  vertical-align: middle;
  margin-right: 2px;
}

.empty-badge {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.5;
  display: block;
  margin: 0 auto 0.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--slime); }

.footer-sep {
  color: var(--border);
  font-size: 0.8rem;
}

.footer-disclaimer {
  font-size: 0.67rem;
  color: var(--text-dim);
  opacity: 0.45;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
}

/* ── TOAST ─────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  background: var(--bg2);
  border: 1px solid var(--slime-d);
  color: var(--slime);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.6rem 1rem;
  box-shadow: var(--glow-s);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s;
  pointer-events: none;
  z-index: 999;
  text-transform: lowercase;
}

.toast.show { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }

  .hero-img { max-width: 320px; margin: 1.5rem auto 0; }

  .hero-checks { justify-content: center; }

  .step, .step.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
    text-align: center;
  }

  .step-content p { max-width: 100%; }

  .step-portrait { width: 160px; height: 160px; margin: 0 auto; }

  .why-list { grid-template-columns: 1fr; }

  .why-diagram { flex-direction: column; }
}

@media (max-width: 560px) {
  .navbar-inner { flex-direction: column; gap: 0.3rem; text-align: center; }
  .hero { padding: 3rem 1.2rem 2.5rem; }
  .section-inner { padding: 3rem 1.2rem; }
  .msg-from-col { display: none; }
  .msg-row { grid-template-columns: 1fr auto; }
  .inbox-wrapper { padding: 1.5rem 1.2rem; }
}