/* ==========================================================================
   Mai (மை) — Ink for the Blockchain
   From stone to paint to printer ink to blockchain ink.
   ========================================================================== */

:root {
  --bg: #0a0a0f;
  --bg-alt: #0d0d14;
  --text: #b8b8cc;
  --white: #eeeef2;
  --muted: #5a5a78;
  --max-w: 680px;

  --red: #FF3366;
  --orange: #FF6B35;
  --yellow: #FFD23F;
  --green: #06D6A0;
  --blue: #118AB2;
  --purple: #7B2FF7;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==========================================================================
   Ink Pour — thick colored streams
   ========================================================================== */

.ink-pour {
  display: flex;
  width: 100%;
  height: 28px;
}

.pour {
  flex: 1;
  background: var(--c);
  position: relative;
}

.pour::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 25%;
  right: 25%;
  height: 6px;
  background: var(--c);
  border-radius: 0 0 50% 50%;
  opacity: 0.5;
}

/* ==========================================================================
   Ink Bar — thinner divider between sections
   ========================================================================== */

.ink-bar {
  display: flex;
  width: 100%;
  height: 16px;
}

.bar {
  flex: 1;
  background: var(--c);
  position: relative;
  overflow: hidden;
}

.bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.12) 0%,
    transparent 40%,
    transparent 60%,
    rgba(0,0,0,0.15) 100%
  );
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-brand { text-decoration: none; }
.nav-brand:hover { text-decoration: none; }

.nav-tamil {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ink-shift 6s ease infinite;
}

@keyframes ink-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(123, 47, 247, 0.12) 0%,
    rgba(255, 51, 102, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: glow-pulse 10s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 2rem;
}

.hero-tamil {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: clamp(7rem, 18vw, 14rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(
    135deg,
    var(--red), var(--orange), var(--yellow),
    var(--green), var(--blue), var(--purple)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ink-shift 6s ease infinite;
  filter: drop-shadow(0 0 60px rgba(123, 47, 247, 0.25));
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.hero-pron {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  font-weight: 500;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-inner.center {
  text-align: center;
}

/* ==========================================================================
   Era Labels
   ========================================================================== */

.era-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.era-label-mai {
  color: var(--green);
  border-bottom-color: rgba(6, 214, 160, 0.2);
}

/* ==========================================================================
   Poetry
   ========================================================================== */

.poem {
  font-size: 1.15rem;
  line-height: 2.2;
  color: var(--text);
  margin-bottom: 2rem;
}

.poem:last-child {
  margin-bottom: 0;
}

.poem em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 600;
}

.poem strong {
  color: var(--white);
  font-weight: 700;
}

.poem-large {
  font-size: 1.5rem;
  line-height: 2;
  color: var(--white);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.poem-large strong {
  background: linear-gradient(135deg, var(--red), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

/* ==========================================================================
   Section: Mai — special treatment
   ========================================================================== */

.section-mai {
  background: var(--bg-alt);
  border-top: 1px solid rgba(6, 214, 160, 0.08);
  border-bottom: 1px solid rgba(6, 214, 160, 0.08);
}

/* ==========================================================================
   Ink Callout
   ========================================================================== */

.ink-callout {
  margin-top: 2.5rem;
  padding: 2rem 2.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  line-height: 2;
  border-left: 6px solid var(--red);
  background: linear-gradient(135deg,
    rgba(255, 51, 102, 0.06),
    rgba(123, 47, 247, 0.04)
  );
  border-radius: 0 6px 6px 0;
}

/* ==========================================================================
   End Section
   ========================================================================== */

.section-end {
  padding: 7rem 2rem;
}

.end-tamil {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--red), var(--purple), var(--blue));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ink-shift 6s ease infinite;
  margin-bottom: 1rem;
}

.end-line {
  font-size: 1.1rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 3rem;
}

.section-end .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-end .btn {
  display: block;
  width: fit-content;
  margin: 0.4rem auto;
}

/* ==========================================================================
   Button
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.03em;
  margin: 0.4rem;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--bg);
  background: var(--green);
  box-shadow: 0 4px 20px rgba(6, 214, 160, 0.2);
}

.btn-primary:hover {
  background: #05c493;
  color: var(--bg);
  box-shadow: 0 6px 28px rgba(6, 214, 160, 0.35);
}

.btn-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-secondary:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

.btn-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.1em;
  margin-right: 0.4em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 3rem 2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  display: inline-block;
  opacity: 0.35;
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 0.55;
}

.metarium-logo {
  height: 22px;
  width: auto;
}

.onemai-logo {
  height: 18px;
  width: auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */

.page-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.page-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .hero { min-height: 75vh; }
  .section { padding: 4rem 1.5rem; }
  .ink-pour { height: 22px; }
  .ink-bar { height: 12px; }
  .ink-callout { padding: 1.5rem; font-size: 1.15rem; }
  .section-end { padding: 5rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 65vh; }
  .section { padding: 3rem 1.25rem; }
  .poem { font-size: 1.05rem; }
  .poem-large { font-size: 1.25rem; }
  .ink-pour { height: 18px; }
  .ink-bar { height: 10px; }
  .signup-row { flex-direction: column; }
  .signup-row button { width: 100%; }
}

/* ==========================================================================
   Signup Form
   ========================================================================== */

.signup-section {
  max-width: 480px;
  margin: 2.5rem auto 0;
}

.signup-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.signup-row {
  display: flex;
  gap: 0.5rem;
}

.signup-row input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.signup-row input[type="email"]::placeholder {
  color: var(--muted);
}

.signup-row input[type="email"]:focus {
  border-color: var(--purple);
}

.signup-row button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--purple), var(--red));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
  letter-spacing: 0.03em;
}

.signup-row button:hover { opacity: 0.9; }
.signup-row button:disabled { opacity: 0.6; cursor: not-allowed; }

.signup-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}
