/* #region CSS Reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* #endregion */

:root {
  /* Modern dark theme palette */
  --base-background: #0f1115;
  --base-foreground: #f0f2f5;
  --primary-background: #000000;
  --primary-foreground: #ffffff;
  --secondary-background: #1e293b;
  --secondary-foreground: #e2e8f0;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --muted-background: #1e293b;
  --muted-foreground: #94a3b8;
  --border: #334155;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --card-background: #111827;
  --code-background: #1e1e1e;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--base-background);
  color: var(--base-foreground);
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.5;
}

.nowrap {
  white-space: nowrap;
}

a {
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.hero {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 6rem 2rem;
  background-color: var(--primary-background);
  background: radial-gradient(
    circle at center,
    #151b28 0%,
    var(--primary-background) 100%
  );
  color: var(--primary-foreground);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  max-width: 1200px;
  width: 100%;
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #60a5fa, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

.hero nav {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.hero nav a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.hero nav a:first-child {
  background-color: var(--accent);
  color: white;
}

.hero nav a:first-child:hover {
  background-color: var(--accent-hover);
  text-decoration: none;
}

.hero nav a:last-child {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-foreground);
}

.hero nav a:last-child:hover {
  background-color: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

main {
  background-color: var(--card-background);
  color: var(--secondary-foreground);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 0.5rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin: 0 1rem;
}

main label {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

main h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1rem;
}

form {
  display: flex;
  width: 100%;
}

.demo-input-container {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 0.375rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background-color: var(--muted-background);
  overflow: hidden;
}

.demo-input-container p {
  padding: 0.75rem 0.5rem 0.75rem 1rem;
  color: var(--muted-foreground);
  font-family: 'Fira Code', monospace;
  font-size: 0.875rem;
}

form input {
  flex-grow: 1;
  padding: 0.75rem;
  background-color: var(--muted-background);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-family: 'Fira Code', monospace;
  border: none;
  outline: none;
}

form button {
  padding: 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background-color: var(--accent);
  color: white;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

form button:hover {
  background-color: var(--accent-hover);
}

form button:active {
  transform: translateY(1px);
}

#returned-data {
  width: 100%;
  height: 400px;
  padding: 1rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  box-sizing: border-box;
  background-color: var(--code-background);
  color: var(--secondary-foreground);
  white-space: pre;
  overflow-y: auto;
  font-family: 'Fira Code', monospace;
  font-size: 0.875rem;
}

.progress {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: min-content 1fr;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--card-background);
  color: var(--secondary-foreground);
  border-radius: 0.5rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin: 0 1rem 2rem 1rem;
}

.progress h2 {
  grid-area: span 1 / span 3;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.progress h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.data {
  grid-column-start: 1;
  grid-column-end: 3;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: min-content 1fr;
  border-right: 1px solid var(--border);
  padding-right: 2rem;
}

.data h3 {
  grid-area: span 1 / span 2;
}

.data ul {
  grid-area: span 1 / span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: 0.75rem;
}

.features {
  display: grid;
  grid-template-rows: min-content 1fr;
  gap: 1rem;
}

.features ul {
  display: grid;
  grid-auto-rows: min-content;
  gap: 0.75rem;
}

/* Status indicators */
.data li,
.features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease;
}

.data li:hover,
.features li:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .progress {
    grid-template-columns: 1fr;
    grid-template-rows: min-content min-content min-content;
    gap: 2rem;
  }

  .progress h2 {
    grid-area: span 1 / span 1;
  }

  .data {
    grid-column-start: 1;
    grid-column-end: 1;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
  }

  .data ul {
    display: block;
  }

  .data li,
  .features li {
    margin-bottom: 0.5rem;
  }

  .features {
    grid-row-start: 3;
    grid-row-end: 4;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.25rem;
  }

  .hero nav {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hero nav a {
    width: 100%;
    text-align: center;
  }
}

/* Style form on smaller screens */
@media (max-width: 768px) {
  form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .demo-input-container {
    border-radius: 0.375rem;
    border: 1px solid var(--border);
  }

  form button {
    width: 100%;
    border-radius: 0.375rem;
    padding: 0.75rem;
  }
}
@media (max-width: 500px) {
  .demo-input-container {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-input-container p {
    padding: 0.5rem;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--border);
    background-color: rgba(0, 0, 0, 0.2);
  }
}
