:root {
  --bg: #fafafa;
  --ink: #262626;
  --muted: #737373;
  --accent: #0095f6;
  --accent-dark: #1877f2;
  --line: #dbdbdb;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
p,
h1,
strong {
  margin: 0;
}

.ig-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 18px 18px 32px;
  position: relative;
  z-index: 1;
}

.top-art {
  position: absolute;
  inset: 0 0 auto 0;
  height: 240px;
  pointer-events: none;
  overflow: hidden;
}

.paint {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.55;
}

.paint-one {
  top: -60px;
  left: 8%;
  width: 240px;
  height: 180px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 177, 153, 0.9), rgba(255, 177, 153, 0.15) 70%);
}

.paint-two {
  top: -20px;
  left: 34%;
  width: 320px;
  height: 160px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 149, 246, 0.22), rgba(0, 149, 246, 0.05) 72%);
}

.paint-three {
  top: -48px;
  right: 12%;
  width: 220px;
  height: 170px;
  background: radial-gradient(circle at 50% 50%, rgba(196, 135, 255, 0.28), rgba(196, 135, 255, 0.05) 70%);
}

.ig-layout {
  width: min(935px, 100%);
  display: grid;
  grid-template-columns: 380px 350px;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 18px;
}

.ig-preview {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 320px;
  height: 620px;
  border: 10px solid #111;
  border-radius: 38px;
  background: #111;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
  padding: 12px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
  padding: 18px;
  overflow: hidden;
}

.story-row {
  display: flex;
  gap: 8px;
}

.story-dot {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd776, #f56040, #c13584);
  opacity: 0.5;
}

.story-dot.active {
  opacity: 1;
}

.mock-post {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-head p {
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--muted);
}

.mock-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd776, #f56040, #833ab4);
}

.mock-image {
  margin-top: 14px;
  height: 360px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.08)),
    linear-gradient(135deg, #f8d8be, #f6b6a8 45%, #d9d2ff 100%);
}

.mock-caption {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.subheadings {
  margin-top: 18px;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

.ig-auth {
  display: grid;
  width: 350px;
  justify-self: center;
  margin-top: -10px;
}

.auth-card {
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
  border-radius: 24px;
  padding: 40px 28px 26px;
}

.auth-card {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.05);
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand-wordmark {
  display: block;
  width: min(100%, 244px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.tagline {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--muted);
}

.auth-stack {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.action-button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: opacity 0.18s ease;
}

.action-button:hover {
  opacity: 0.92;
}

.action-button.primary {
  background: var(--accent);
  color: white;
}

.action-button.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.mini-footer {
  width: min(935px, 100%);
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.mini-footer a {
  color: var(--muted);
}

@media (max-width: 875px) {
  .ig-layout {
    grid-template-columns: 1fr;
    width: min(350px, 100%);
  }

  .ig-preview {
    display: none;
  }

  .ig-auth {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .ig-shell {
    padding: 14px 16px 24px;
  }

  .top-art {
    height: 180px;
  }
}
