/* Tokmail.eu — Static Site Styles
 * Original restrained "midnight" direction (restored)
 * Only additions: subtle Resend-like dark background + black 3D sphere
 * Self-contained, no external dependencies.
 */

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --text: #e8e8e8;
  --text-muted: #888888;
  --text-faint: #555555;
  --hair: #222222;
  --accent: #7b1f24; /* deep burgundy, used sparingly */
  --accent-hover: #9c2a30;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Iowan Old Style", "Apple Garamond", "Times New Roman", serif;
  --font-mono: "SF Mono", "Monaco", "Consolas", "Liberation Mono", "Courier New", ui-monospace, monospace;

  /* Spacing scale (generous) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  padding-top: 48px;
  padding-bottom: 80px;
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  transition: border-color 120ms ease;
}

a:hover {
  border-bottom-color: var(--text);
}

a.subtle {
  border-bottom: none;
  color: var(--text-muted);
}

a.subtle:hover {
  border-bottom: 1px solid var(--text-muted);
  color: var(--text);
}

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

/* Logotype */
.logo {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-block;
  margin-bottom: 8px;
}

.logo .eu {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 1px;
}

/* Header / Nav */
header {
  margin-bottom: var(--space-5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.nav-links a {
  border-bottom: none;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
  border-bottom: none;
}

/* Typography */
h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-3);
}

h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
  margin-top: var(--space-5);
}

.tagline {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 62ch;
}

p {
  margin-bottom: var(--space-2);
}

small, .small {
  font-size: 13px;
  color: var(--text-muted);
}

/* Sections */
.section {
  margin-bottom: var(--space-5);
}

.divider {
  height: 1px;
  background: var(--hair);
  margin: var(--space-4) 0;
}

/* How it works — 3 columns */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: var(--space-4) 0;
}

.step {
  font-size: 14px;
  line-height: 1.55;
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.step-title {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}

/* Cost block */
.cost {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  text-align: center;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  margin: var(--space-4) 0;
}

/* Links as CTAs (understated) */
.cta-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--hair);
}

.cta-link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Warning / notice blocks */
.notice {
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin-bottom: var(--space-4);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.notice strong {
  color: var(--text);
}

/* Forms */
form {
  margin-top: var(--space-2);
}

label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 16px;
}

label:first-child {
  margin-top: 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--hair);
  padding: 11px 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  border-radius: 2px;
  outline: none;
  transition: border-color 120ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--text-muted);
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="%23888"><path d="M2 4l4 4 4-4"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.checkbox-row {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--text-muted);
}

.checkbox-row label {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.5;
}

/* Buttons — deliberately unexciting */
.btn {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--hair);
  padding: 11px 22px;
  font-size: 14px;
  font-family: var(--font-sans);
  cursor: pointer;
  margin-top: 20px;
  border-radius: 2px;
}

.btn:hover {
  border-color: var(--text-muted);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Webmail specific */
.webmail-container {
  max-width: 420px;
  margin: 40px auto 0;
}

.webmail-form {
  background: var(--bg-elev);
  padding: 32px;
  border: 1px solid var(--hair);
}

.webmail-form .field {
  margin-bottom: 18px;
}

.webmail-form label {
  margin-bottom: 6px;
}

.error {
  background: #2a1616;
  border: 1px solid #5c2226;
  color: #c89a9a;
  padding: 12px 14px;
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.45;
}

/* Security page */
.security-list {
  list-style: none;
  margin: var(--space-3) 0;
}

.security-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.security-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

.canary {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-elev);
  padding: 20px;
  border: 1px solid var(--hair);
  white-space: pre-line;
  margin-top: var(--space-4);
  color: var(--text-muted);
  line-height: 1.55;
}

/* Legal sections */
.legal-section {
  margin-bottom: var(--space-4);
}

.legal-section h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Footer */
footer {
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--text-faint);
}

footer a {
  color: var(--text-faint);
  border-bottom: 1px solid var(--hair);
}

footer a:hover {
  color: var(--text-muted);
}

/* Utility */
.muted {
  color: var(--text-muted);
}

.center {
  text-align: center;
}

.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

/* Print / minimal */
@media print {
  body { background: white; color: black; }
  .container { max-width: none; }
}

/* Responsive (functional on mobile, not priority) */
@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  h1 {
    font-size: 32px;
  }
}

/* ==========================================
   ADDITIONS ONLY (background + 3D black sphere)
   ========================================== */

/* ==========================================
   Resend-style hero + black 3D sphere (added only)
   ========================================== */

/* Deep black background like Resend screenshots — not flat black.
   Layered soft lighting and glows, especially from the right where the 3D sphere lives. */
body {
  background-color: #000000;
  background-image: 
    /* Primary soft light source behind/right of the 3D model (main thing you see in the refs) */
    radial-gradient(
      1050px 620px at 76% 28%,
      rgba(22,22,22,0.78) 0%,
      rgba(6,6,6,0.42) 38%,
      transparent 68%
    ),
    /* Secondary fill light / depth */
    radial-gradient(
      680px 420px at 90% 52%,
      rgba(14,14,14,0.48) 0%,
      rgba(0,0,0,0.12) 52%,
      transparent 80%
    ),
    /* Subtle angled light beam / streak at the bottom-right, like in the images */
    linear-gradient(
      125deg,
      transparent 48%,
      rgba(11,11,11,0.32) 65%,
      rgba(18,18,18,0.18) 78%,
      transparent 92%
    );
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Two-column hero (text left, 3D sphere right) - matches the reference composition */
.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: center;
  min-height: 380px;
  margin-bottom: 32px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-visual {
    order: -1;
    display: flex;
    justify-content: center;
  }
}

.hero-text h1 {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-text .tagline {
  font-size: 19px;
  margin-bottom: 18px;
}

.hero-text .lead {
  font-size: 14.5px;
  margin-bottom: 10px;
}

/* Sphere container */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Black 3D sphere */
#black-sphere {
  display: block;
  width: 380px;
  height: 380px;
  max-width: 100%;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  filter: 
    drop-shadow(0 35px 65px rgba(0,0,0,0.78))
    drop-shadow(0 0 85px rgba(18,18,18,0.35));
}

#black-sphere:active {
  cursor: grabbing;
}

/* Soft ambient glow behind the sphere to sit in the lit background */
.hero-visual::before {
  content: '';
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 330px;
  height: 330px;
  background: radial-gradient(
    circle at 62% 32%,
    rgba(23,23,23,0.72) 0%,
    rgba(10,10,10,0.38) 48%,
    transparent 74%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(38px);
  opacity: 0.88;
}
