/* ==========================================================================
   DevNest Tech — Static site styles
   Converted from a Tailwind v4 + shadcn/ui React project.
   All design tokens (colors, gradients, shadows, radius) preserved exactly.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  /* Dark theme only — premium look */
  --background: oklch(0.16 0.03 265);
  --foreground: oklch(0.97 0.005 250);
  --card: oklch(0.21 0.035 265);
  --card-foreground: oklch(0.97 0.005 250);
  --popover: oklch(0.21 0.035 265);
  --popover-foreground: oklch(0.97 0.005 250);
  --primary: oklch(0.62 0.22 280);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.27 0.04 265);
  --secondary-foreground: oklch(0.97 0.005 250);
  --muted: oklch(0.24 0.035 265);
  --muted-foreground: oklch(0.72 0.02 260);
  --accent: oklch(0.7 0.19 45);
  --accent-foreground: oklch(0.15 0.02 265);
  --destructive: oklch(0.65 0.22 25);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 12%);
  --ring: oklch(0.62 0.22 280);

  --brand-blue: oklch(0.58 0.24 265);
  --brand-purple: oklch(0.62 0.22 305);
  --brand-orange: oklch(0.7 0.2 45);

  --gradient-brand: linear-gradient(135deg, oklch(0.58 0.24 265), oklch(0.62 0.22 305));
  --gradient-hero: radial-gradient(ellipse at top, oklch(0.62 0.22 280 / 0.25), transparent 60%);
  --shadow-glow: 0 20px 60px -20px oklch(0.62 0.22 280 / 0.5);
  --shadow-card: 0 8px 30px -10px oklch(0 0 0 / 0.5);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, oklch(0.62 0.22 280 / 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, oklch(0.62 0.22 305 / 0.1), transparent);
  background-attachment: fixed;
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

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

ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
}

/* ---------- Utility classes ---------- */
.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gradient-brand {
  background: var(--gradient-brand);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
  /* 6xl */
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.eyebrow {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: oklch(0.27 0.04 265 / 0.4);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: scale(1.03);
}

.btn-secondary {
  border: 1px solid var(--border);
  background-color: oklch(0.27 0.04 265 / 0.4);
  color: var(--foreground);
}

.btn-secondary:hover {
  background-color: var(--secondary);
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.icon-sm {
  width: 0.875rem;
  height: 0.875rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-item .icon {
  color: var(--brand-orange);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid oklch(1 0 0 / 8%);
  background-color: oklch(0.16 0.03 265 / 0.7);
  backdrop-filter: blur(20px);
}

.site-header__inner {
  margin: 0 auto;
  max-width: 72rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

@media (min-width: 640px) {
  .site-header__inner {
    padding: 0.75rem 1.5rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.brand img {
  height: 4rem;
  width: 4rem;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__tag {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-orange);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background-color: var(--secondary);
  color: var(--foreground);
}

.nav-link.is-active {
  background-color: var(--secondary);
  color: var(--foreground);
}

.nav-cta {
  margin-left: 0.5rem;
  border-radius: 0.375rem;
  background: var(--gradient-brand);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease;
}

.nav-cta:hover {
  transform: scale(1.03);
}

.nav-toggle {
  display: inline-flex;
  border-radius: 0.375rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-mobile {
  display: none;
  border-top: 1px solid oklch(1 0 0 / 8%);
}

.nav-mobile.is-open {
  display: block;
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none !important;
  }
}

.nav-mobile__inner {
  margin: 0 auto;
  max-width: 72rem;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
}

@media (min-width: 640px) {
  .nav-mobile__inner {
    padding: 0.75rem 1.5rem;
  }
}

.nav-mobile .nav-link {
  padding: 0.625rem 0.75rem;
}

/* ==========================================================================
   Hero / generic sections
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-hero);
}

.hero__inner {
  margin: 0 auto;
  max-width: 72rem;
  padding: 5rem 1rem 6rem;
}

@media (min-width: 640px) {
  .hero__inner {
    padding: 7rem 1.5rem 8rem;
  }
}

.hero__grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

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

.hero p.lede {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--muted-foreground);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .hero p.lede {
    font-size: 1.125rem;
  }
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__checks {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero__art {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 24rem;
}

.hero__art-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 2rem;
  background: var(--gradient-brand);
  filter: blur(64px);
  opacity: 0.3;
}

.hero__art-card {
  border-radius: 2rem;
  border: 1px solid var(--border);
  background-color: oklch(0.21 0.035 265 / 0.6);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.hero__art-card img {
  margin: 0 auto;
  height: 14rem;
  width: 14rem;
  object-fit: contain;
}

/* Section */
.section {
  margin: 0 auto;
  max-width: 72rem;
  padding: 4rem 1rem;
}

@media (min-width: 640px) {
  .section {
    padding: 5rem 1.5rem;
  }
}

.section__head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section__title {
  margin-top: 1rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .section__title {
    font-size: 2.25rem;
  }
}

.section__desc {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

/* Grids */
.grid-cards {
  display: grid;
  gap: 1.25rem;
}

.grid-cards.cols-2 {
  grid-template-columns: 1fr;
}

.grid-cards.cols-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {

  .grid-cards.cols-2,
  .grid-cards.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cards.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: oklch(0.21 0.035 265 / 0.6);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: oklch(0.62 0.22 305 / 0.5);
}

.card__icon {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--gradient-brand);
  color: white;
}

.card__title {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Featured app section (home) */
.feature-panel {
  display: grid;
  align-items: center;
  gap: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background-color: oklch(0.21 0.035 265 / 0.6);
  padding: 2rem;
}

@media (min-width: 640px) {
  .feature-panel {
    padding: 3rem;
  }
}

@media (min-width: 768px) {
  .feature-panel {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: oklch(0.7 0.2 45 / 0.15);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-orange);
}

.feature-panel h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .feature-panel h3 {
    font-size: 1.875rem;
  }
}

.feature-panel p.desc {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

.feature-panel ul {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.feature-panel .btn {
  margin-top: 1.5rem;
}

.phone-mock {
  position: relative;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 16.25rem;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background-color: var(--background);
}

.phone-mock__tint {
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0.1;
}

.phone-mock__content {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.phone-mock__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.phone-mock__sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted-foreground);
}

.phone-mock__stats {
  margin-top: 1rem;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  text-align: left;
}

.stat-box {
  border-radius: 0.5rem;
  background-color: oklch(0.27 0.04 265 / 0.6);
  padding: 0.5rem;
}

.stat-box.span-2 {
  grid-column: span 2 / span 2;
}

.stat-box__label {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.stat-box__value {
  font-size: 1.125rem;
  font-weight: 700;
}

/* Testimonials */
.testimonial {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: oklch(0.21 0.035 265 / 0.6);
  padding: 1.5rem;
}

.testimonial blockquote {
  color: var(--foreground);
}

.testimonial figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* CTA banner */
.cta-banner {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--gradient-brand);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

@media (min-width: 640px) {
  .cta-banner {
    padding: 3.5rem;
  }
}

.cta-banner h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
}

@media (min-width: 640px) {
  .cta-banner h2 {
    font-size: 2.25rem;
  }
}

.cta-banner p {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  color: oklch(1 0 0 / 0.85);
}

.cta-banner .btn {
  margin-top: 1.5rem;
  background-color: var(--background);
  color: var(--foreground);
  box-shadow: none;
}

.cta-banner .btn:hover {
  background-color: var(--card);
}

/* ==========================================================================
   Apps grid page
   ========================================================================== */
.app-card {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: oklch(0.21 0.035 265 / 0.6);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.app-card:hover {
  border-color: oklch(0.62 0.22 305 / 0.6);
}

.app-card:hover .app-card__arrow {
  transform: translateX(0.25rem);
}

.app-card__glow {
  position: absolute;
  right: -3rem;
  top: -3rem;
  height: 10rem;
  width: 10rem;
  border-radius: 9999px;
  background: var(--gradient-brand);
  opacity: 0.2;
  filter: blur(40px);
}

.app-card__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-card__arrow {
  color: var(--muted-foreground);
  transition: transform 0.2s ease;
}

.app-card h3 {
  position: relative;
  margin-top: 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.app-card p {
  position: relative;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.app-card--soon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 1rem;
  border: 1px dashed var(--border);
  background-color: oklch(0.21 0.035 265 / 0.3);
  padding: 1.5rem;
  text-align: center;
}

.app-card--soon p:first-child {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.app-card--soon p:last-child {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   About page
   ========================================================================== */
.about-card svg {
  color: var(--brand-orange);
}

.about-card h3 {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.about-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.link-brand {
  color: var(--brand-orange);
  text-decoration: underline;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-hero {
  margin: 0 auto;
  max-width: 72rem;
  padding: 4rem 1rem;
}

@media (min-width: 640px) {
  .contact-hero {
    padding: 5rem 1.5rem;
  }
}

.contact-hero__copy {
  max-width: 36rem;
}

.contact-hero h1 {
  margin-top: 1rem;
  font-size: 2.25rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .contact-hero h1 {
    font-size: 3rem;
  }
}

.contact-hero p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

.contact-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: oklch(0.21 0.035 265 / 0.6);
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.contact-card:hover {
  border-color: oklch(0.62 0.22 305 / 0.5);
}

.contact-card svg {
  flex-shrink: 0;
  color: var(--brand-orange);
}

.contact-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.contact-card__value {
  font-size: 0.875rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-form {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: oklch(0.21 0.035 265 / 0.6);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .contact-form {
    padding: 2rem;
  }
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  margin-top: 0.375rem;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background-color: oklch(0.16 0.03 265 / 0.6);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: oklch(0.72 0.02 260 / 0.6);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 2px oklch(0.62 0.22 305 / 0.3);
}

.form-submit {
  width: 100%;
}

.form-status {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   CricRun Counter page
   ========================================================================== */
.cricrun-hero__inner {
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .cricrun-hero__inner {
    padding-top: 6rem;
  }
}

.cricrun-hero__grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .cricrun-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.cricrun-hero h1 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .cricrun-hero h1 {
    font-size: 3.75rem;
  }
}

.cricrun-phone {
  position: relative;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 17.5rem;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background-color: var(--background);
  box-shadow: var(--shadow-card);
}

.cricrun-phone__tint {
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0.1;
}

.cricrun-phone__content {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
}

.cricrun-phone__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.cricrun-phone__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.cricrun-phone__pad {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.pad-btn {
  border-radius: 0.5rem;
  background-color: oklch(0.27 0.04 265 / 0.6);
  padding: 0.75rem 0;
  text-align: center;
}

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

.preview-img {
  width: 100%;
  max-width: 20rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Screenshot gallery (real app screenshots in device frames)
   ========================================================================== */
.screenshot-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem 2.5rem;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 15.5rem;
}

@media (min-width: 640px) {
  .screenshot-item:first-child {
    margin-bottom: 2rem;
  }
}

.screenshot-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 2.25rem;
  padding: 0.55rem;
  background: linear-gradient(160deg, oklch(0.32 0.05 265), oklch(0.16 0.03 265));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease;
}

.screenshot-frame:hover {
  transform: translateY(-0.375rem);
}

.screenshot-frame__notch {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 1.1rem;
  border-radius: 0 0 0.9rem 0.9rem;
  background: oklch(0.13 0.02 265);
  z-index: 2;
}

.screenshot-frame__screen {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid oklch(0.4 0.02 265 / 0.4);
  background-color: var(--background);
}

.screenshot-frame__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screenshot-caption {
  text-align: center;
}

.screenshot-caption__title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.screenshot-caption__desc {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.app-card__shots {
  position: relative;
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
}

.app-card__shots img {
  height: 6.5rem;
  width: auto;
  flex: 1;
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  object-fit: cover;
  object-position: top center;
}

.legal-panel {
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background-color: oklch(0.21 0.035 265 / 0.6);
  padding: 2rem;
}

@media (min-width: 640px) {
  .legal-panel {
    padding: 2.5rem;
  }
}

.legal-panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.legal-panel>p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.legal-panel__links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legal-panel__links a {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background-color: oklch(0.27 0.04 265 / 0.4);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.legal-panel__links a:hover {
  background-color: var(--secondary);
}

.legal-panel ul {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Legal pages (Privacy / Terms)
   ========================================================================== */
.legal-page {
  margin: 0 auto;
  max-width: 48rem;
  padding: 4rem 1rem;
}

@media (min-width: 640px) {
  .legal-page {
    padding: 5rem 1.5rem;
  }
}

.legal-page h1 {
  margin-top: 1rem;
  font-size: 2.25rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .legal-page h1 {
    font-size: 3rem;
  }
}

.legal-page__updated {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.legal-page__body {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.legal-page__body h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.legal-page__body a {
  color: var(--brand-orange);
  text-decoration: underline;
}

.legal-page__body strong {
  color: var(--foreground);
}

.legal-page__body ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.legal-page__body li {
  display: list-item;
}

/* ==========================================================================
   404 page
   ========================================================================== */
.error-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.error-page__inner {
  max-width: 28rem;
  text-align: center;
}

.error-page__inner h1 {
  font-size: 4.5rem;
  font-weight: 700;
}

.error-page__inner h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.error-page__inner p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.error-page__inner .btn {
  margin-top: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid oklch(1 0 0 / 8%);
  background-color: oklch(0.21 0.035 265 / 0.3);
}

.site-footer__grid {
  margin: 0 auto;
  max-width: 72rem;
  display: grid;
  gap: 2.5rem;
  padding: 3rem 1rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    padding: 3rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  grid-column: span 1 / span 1;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 2 / span 2;
  }
}

.footer-brand .brand {
  margin-bottom: 0;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 24rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-brand p a:hover {
  color: var(--foreground);
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-col ul {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-col ul a:hover {
  color: var(--foreground);
}

.site-footer__bottom {
  border-top: 1px solid oklch(1 0 0 / 8%);
}

.site-footer__bottom-inner {
  margin: 0 auto;
  max-width: 72rem;
  padding: 1.25rem 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .site-footer__bottom-inner {
    padding: 1.25rem 1.5rem;
  }
}

/* ==========================================================================
   Quick WP page
   ========================================================================== */
.quickwp-hero__inner {
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .quickwp-hero__inner {
    padding-top: 6rem;
  }
}

.quickwp-hero__grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .quickwp-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.quickwp-hero h1 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .quickwp-hero h1 {
    font-size: 3.75rem;
  }
}

.quickwp-phone {
  position: relative;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 17.5rem;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background-color: var(--background);
  box-shadow: var(--shadow-card);
}

.quickwp-phone__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, oklch(0.64 0.15 165), oklch(0.58 0.19 235));
  opacity: 0.14;
}

.quickwp-phone__content {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 2rem 1.25rem 1.5rem;
  text-align: center;
}

.quickwp-phone__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.quickwp-phone__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quickwp-phone__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.quickwp-phone__sub {
  margin-top: -0.85rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.quickwp-phone__field {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background-color: oklch(0.27 0.04 265 / 0.6);
  padding: 0.65rem 0.9rem;
  font-size: 0.8125rem;
  text-align: left;
  color: var(--muted-foreground);
}

.quickwp-phone__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.quickwp-phone__chip {
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: oklch(0.27 0.04 265 / 0.6);
  padding: 0.35rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.quickwp-phone__cta {
  margin-top: auto;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, oklch(0.64 0.15 165), oklch(0.56 0.17 175));
  padding: 0.8rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: white;
}

.step-num {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--gradient-brand);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

/* ==========================================================================
   Kukari Games page
   ========================================================================== */
.kukari-phone {
  margin: 0 auto;
  width: 100%;
  max-width: 17.5rem;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background-color: var(--background);
  box-shadow: var(--shadow-card);
}

.kukari-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.kukari-shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.kukari-shots img {
  width: 100%;
  max-width: 15rem;
  height: auto;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
