:root {
  --bg: #08111f;
  --bg-soft: #101c31;
  --surface: rgba(7, 18, 35, 0.78);
  --surface-solid: #10213a;
  --text: #ecf4ff;
  --muted: #9db1cc;
  --accent: #62f2c9;
  --accent-alt: #7c83ff;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 131, 255, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(98, 242, 201, 0.22), transparent 26%),
    linear-gradient(180deg, #050b16 0%, #0b1730 46%, #09101e 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 88%);
}

.page-shell {
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ghost-link {
  color: var(--text);
  text-decoration: none;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  padding: 1rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-copy,
.hero-card,
.panel {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 3rem;
}

.pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(98, 242, 201, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

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

h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 1rem 0 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.hero-subtitle,
.section-heading p,
.drop-copy,
.field span,
.status-banner,
.mock-panel p,
textarea,
input,
select {
  color: var(--muted);
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 42rem;
  line-height: 1.7;
}

.hero-actions,
.controls,
.action-row,
.portfolio-link-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-points {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 18px;
  padding: 0.95rem 1.3rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #04111b;
  box-shadow: 0 18px 36px rgba(98, 242, 201, 0.22);
}

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

.stretch {
  flex: 1;
}

.hero-card {
  padding: 1.25rem;
}

.mock-window {
  border-radius: 22px;
  overflow: hidden;
  background: #0b1324;
  min-height: 480px;
}

.mock-top {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: #08101d;
}

.mock-top span {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.mock-body {
  position: relative;
  min-height: 420px;
  padding: 1.5rem;
}

.mock-gradient {
  position: absolute;
  inset: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124, 131, 255, 0.6), rgba(98, 242, 201, 0.42));
  filter: blur(16px);
}

.mock-panel {
  position: relative;
  z-index: 1;
  margin-top: 6rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(5, 11, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.mock-chips {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.mock-chips span {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(98, 242, 201, 0.12);
  color: var(--text);
}

.main-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: start;
}

.preview-panel {
  grid-column: 1 / -1;
}

.panel {
  padding: 1.5rem;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.upload-dropzone {
  border: 1px dashed rgba(98, 242, 201, 0.4);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 1.2rem;
  transition: border-color 180ms ease, background 180ms ease;
}

.upload-dropzone.dragover {
  border-color: var(--accent);
  background: rgba(98, 242, 201, 0.08);
}

.drop-title {
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.drop-status {
  display: inline-flex;
  margin-top: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.field span {
  font-weight: 600;
  color: var(--text);
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(98, 242, 201, 0.35);
  border-color: transparent;
}

.status-banner {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

#previewFrame {
  width: 100%;
  min-height: 780px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: white;
}

.portfolio-link-wrap {
  align-items: center;
  margin-bottom: 1rem;
}

.portfolio-link-wrap input {
  flex: 1;
}

.hidden {
  display: none;
}

@media (max-width: 1080px) {
  .hero-grid,
  .main-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 1rem, 1380px);
  }

  .hero-copy,
  .panel {
    padding: 1.2rem;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.1rem;
  }
}
