@font-face {
  font-family: "Akagu2023";
  src: url("../assets/fonts/Akagu2023.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #101828;
  --muted: #667085;
  --line: #d9e2f1;
  --surface: #ffffff;
  --soft: #f4f8ff;
  --blue: #0b5bd3;
  --blue-2: #38bdf8;
  --orange: #ff7a1a;
  --orange-2: #ffb86b;
  --shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(255, 122, 26, 0.15), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, #f5f7fb 100%);
}

button,
textarea,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--blue);
  font-weight: 700;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  padding: 1.25rem;
}

.nav {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(11, 91, 211, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(16, 24, 40, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--blue), #003a96);
  box-shadow: inset 0 -8px 16px rgba(0,0,0,0.15);
  font-weight: 900;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  font-weight: 800;
}

.nav-links a:hover {
  background: var(--soft);
  color: var(--ink);
}

.nav-links .nav-cta {
  color: white;
  background: var(--ink);
}

.hero {
  width: min(1120px, 100%);
  margin: 4.5rem auto 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 1rem;
  font-size: clamp(2.55rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.hero-text,
.section-heading p,
.steps p,
.video-card p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), #003a96);
  box-shadow: 0 15px 35px rgba(11, 91, 211, 0.28);
}

.button.secondary,
.button.ghost {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.button.orange {
  color: #111827;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 15px 35px rgba(255, 122, 26, 0.25);
}

.button.blue {
  color: white;
  background: linear-gradient(135deg, #22a7f2, var(--blue));
  box-shadow: 0 15px 35px rgba(34, 167, 242, 0.25);
}

.hero-card {
  min-height: 420px;
  border: 1px solid rgba(11, 91, 211, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.93), rgba(255,255,255,0.73)),
    radial-gradient(circle at 20% 20%, rgba(255,122,26,0.28), transparent 16rem),
    radial-gradient(circle at 90% 80%, rgba(56,189,248,0.30), transparent 15rem);
  box-shadow: var(--shadow);
  display: grid;
  align-content: center;
  gap: 1rem;
  overflow: hidden;
}

.sample-label {
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 900;
}

.sample-normal,
.sample-nsibidi {
  border-radius: 22px;
  background: white;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.sample-normal {
  color: var(--muted);
}

.sample-nsibidi,
.akagu-text,
.symbol-glyph {
  font-family: "Akagu2023", serif;
}

.sample-nsibidi {
  min-height: 130px;
  font-size: 3rem;
  line-height: 1.35;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.converter-section,
.how-section,
.videos-section {
  padding: 4.5rem 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 1.5rem;
}

.section-heading.narrow {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.converter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.panel,
.keyboard-card,
.steps li,
.video-card {
  border: 1px solid rgba(11, 91, 211, 0.12);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.panel {
  overflow: hidden;
}

.input-panel {
  border-top: 10px solid var(--blue);
}

.preview-panel {
  border-top: 10px solid #33b5f6;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.status-pill {
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue);
  padding: 0.2rem 0.55rem;
}

textarea {
  width: calc(100% - 2rem);
  min-height: 230px;
  margin: 1rem;
  resize: vertical;
  border: 0;
  outline: 0;
  border-radius: 20px;
  background: #fbfdff;
  color: var(--ink);
  padding: 1rem;
  font-size: 1.08rem;
  line-height: 1.6;
  box-shadow: inset 0 0 0 1px var(--line);
}

textarea:focus {
  box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 5px rgba(11,91,211,0.10);
}

.akagu-text {
  font-size: 1.45rem;
  background: #f8fbff;
}

.panel-actions {
  padding: 0 1rem 1rem;
}

.tiny-note {
  margin: -0.3rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.keyboard-card {
  margin-top: 1rem;
  padding: 1rem;
}

.keyboard-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.icon-button {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.search-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-weight: 900;
}

#symbol-search {
  width: 100%;
  min-height: 3.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  outline: 0;
  background: white;
}

#symbol-search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(11,91,211,0.10);
}

.keyboard-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.chip {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.symbol-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.6rem;
  max-height: 360px;
  overflow: auto;
  padding: 0.1rem;
}

.symbol-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 4.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  padding: 0.65rem;
  cursor: pointer;
  text-align: left;
}

.symbol-button:hover,
.symbol-button:focus {
  border-color: var(--blue);
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
}

.symbol-glyph {
  display: grid;
  place-items: center;
  flex: 0 0 2.7rem;
  height: 2.7rem;
  border-radius: 14px;
  background: var(--soft);
  font-size: 1.7rem;
}

.symbol-word {
  display: grid;
  gap: 0.1rem;
}

.symbol-word strong {
  overflow-wrap: anywhere;
}

.symbol-word small {
  color: var(--muted);
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255,255,255,0.6);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.steps li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem;
}

.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-weight: 950;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.video-card {
  padding: 1rem;
}

.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card h3 {
  margin: 1rem 0 0;
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 30;
  max-width: calc(100% - 2rem);
  padding: 0.85rem 1rem;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 1rem);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  font-weight: 800;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    border-radius: 28px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .converter-grid,
  .steps,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 2.5rem;
  }

  .hero-card {
    min-height: 280px;
  }

  .sample-nsibidi {
    font-size: 2.2rem;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0.75rem;
  }

  main {
    width: min(100% - 1rem, 1120px);
  }

  h1 {
    font-size: clamp(2.35rem, 16vw, 4rem);
  }

  .brand-copy small {
    display: none;
  }

  .button {
    width: 100%;
  }

  .panel-actions {
    align-items: stretch;
  }
}
