/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  --bg: #0b0b14;
  --bg2: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #7c3aed; /* violet */
  --primary-2: #06b6d4; /* cyan */
  --accent: #f59e0b; /* amber */
  --card: #0f1220;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.4);
}

html, body {
  background: linear-gradient(120deg, var(--bg) 0%, #090b13 40%, #0c1020 100%);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
}

body { margin: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(to bottom, rgba(11,11,20,0.85), rgba(11,11,20,0.2));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-icon { width: 28px; height: 28px; filter: drop-shadow(0 0 8px rgba(124,58,237,0.8)); }
.brand-name { font-weight: 800; letter-spacing: .5px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav a { color: var(--text); text-decoration: none; margin-left: 1rem; opacity: .9; }
.site-nav a:hover { opacity: 1; }

/* Hero */
.hero {
  position: relative;
  padding: 8rem 1.25rem 4rem;
  text-align: center;
  overflow: hidden;
}
.bg-glow {
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 60vh;
  background: radial-gradient(600px 300px at 50% 0%, rgba(124,58,237,.35), transparent 60%),
              radial-gradient(400px 200px at 20% 30%, rgba(6,182,212,.25), transparent 60%),
              radial-gradient(500px 300px at 80% 20%, rgba(245,158,11,.2), transparent 60%);
  filter: blur(40px) saturate(130%);
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0)} 50% { transform: translateY(12px)} }

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 auto .75rem;
  max-width: 900px;
  text-shadow: 0 2px 30px rgba(124,58,237,.25);
}
.glitch {
  position: relative; display: inline-block; font-weight: 900;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  mix-blend-mode: screen;
}
.glitch::before { text-shadow: 2px 0 var(--primary); animation: glitch1 2s infinite linear alternate-reverse; }
.glitch::after { text-shadow: -2px 0 var(--primary-2); animation: glitch2 2.4s infinite linear alternate; }
@keyframes glitch1 { 0%{transform:translate(0)} 20%{transform:translate(1px,-1px)} 40%{transform:translate(-1px,1px)} 60%{transform:translate(2px,0)} 80%{transform:translate(-2px,1px)} 100%{transform:translate(0)} }
@keyframes glitch2 { 0%{transform:translate(0)} 25%{transform:translate(-1px,1px)} 50%{transform:translate(1px,-1px)} 75%{transform:translate(-2px,0)} 100%{transform:translate(0)} }

.tagline { color: var(--muted); margin: 0 auto 1.25rem; max-width: 780px; }

.cta { display: flex; justify-content: center; gap: .75rem; margin: 1.25rem 0 1.5rem; flex-wrap: wrap; }

.typewriter { color: #cbd5e1; opacity: .9; }
#type-rotate { color: var(--accent); font-weight: 700; border-right: 2px solid var(--accent); padding-right: 3px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }

/* Buttons */
.btn { cursor: pointer; border: 1px solid var(--border); padding: .7rem 1rem; border-radius: 12px; font-weight: 700; letter-spacing: .3px; }
.btn-primary { background: linear-gradient(90deg, var(--primary), var(--primary-2)); color: #0b0b14; border: none; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Generator */
.generator { padding: 2rem 1.25rem 3rem; display: grid; place-items: center; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; width: min(720px, 100%); box-shadow: var(--shadow); }
.card-title { margin: 0 0 .75rem; }
.alias-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; }
.alias { font-size: 1.25rem; padding: .8rem 1rem; border-radius: 12px; background: #0c1020; color: var(--text); border: 1px solid var(--border); width: 100%; }
.actions { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; flex-wrap: wrap; }
.note { color: var(--muted); font-size: .95rem; }
.toast { position: fixed; left: 50%; transform: translateX(-50%) translateY(20px); bottom: 20px; background: #111827; color: var(--text); border: 1px solid var(--border); padding: .6rem .9rem; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* Features */
.features { padding: 3rem 1.25rem; text-align: center; }
.features .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.feature { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; }
.feature h3 { margin-top: 0; background: linear-gradient(90deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* How */
.how { padding: 2rem 1.25rem 3rem; }
.how h2 { text-align: center; }
.steps { max-width: 760px; margin: 0 auto; counter-reset: step; list-style: none; padding: 0; }
.steps li { margin: .5rem 0; padding-left: 2.2rem; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; background: linear-gradient(90deg, var(--primary), var(--primary-2)); color: #0b0b14; border-radius: 999px; font-weight: 900; }

/* FAQ */
.faq { padding: 2rem 1.25rem 3rem; max-width: 900px; margin: 0 auto; }
.faq details { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 12px; padding: .75rem 1rem; margin: .5rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }

/* Footer */
.site-footer { padding: 2rem 1.25rem 4rem; text-align: center; color: var(--muted); border-top: 1px solid var(--border); background: linear-gradient(to top, rgba(0,0,0,.2), transparent); }
.site-footer .legal { font-size: .9rem; opacity: .8; }

/* Responsive tweaks */
@media (min-width: 900px) { .hero { padding-top: 9rem; } }

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

