/* Iqbal Apps — official Android developer website */

:root {
  --bg: #f5f7fa;
  --bg-soft: #eef3f6;
  --surface: #ffffff;
  --ink: #102033;
  --muted: #4d5b6c;
  --line: #dce3eb;
  --brand: #0f766e;
  --brand-dark: #0c5f59;
  --navy: #123047;
  --teal: #14b8a6;
  --whatsapp: #128c7e;
  --shadow: 0 10px 28px rgba(16, 32, 51, 0.08);
  --radius: 20px;
  --max: 1140px;
  --header: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--brand-dark);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.section-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  object-fit: contain;
  padding: 3px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-overlay {
  display: none;
}

.nav-overlay[hidden] {
  display: none !important;
}

.hero {
  padding: 36px 0 20px;
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: 56px 48px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d7f4ef;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section-header h2 {
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  max-width: 14ch;
}

.hero p {
  margin: 0;
  max-width: 46ch;
  color: #d5dee8;
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.button-primary {
  background: #fff;
  color: var(--navy);
}

.button-secondary {
  background: var(--brand);
  color: #fff;
}

.button-secondary:hover {
  background: var(--brand-dark);
}

.button-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.button-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.button-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero-visual img:nth-child(2) {
  transform: translateY(-12px);
}

section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-header {
  margin-bottom: 28px;
  max-width: 640px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.app-grid,
.reason-grid,
.contact-layout {
  display: grid;
  gap: 20px;
}

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

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 32, 51, 0.12);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.app-icon-img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.12);
}

.app-number {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand);
  background: #e7f6f3;
  border-radius: 999px;
  padding: 4px 10px;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.platform svg {
  color: #3ddc84;
}

.app-card h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.app-card p {
  margin: 0 0 20px;
  color: var(--muted);
  flex: 1;
}

.play-badge,
.play-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 14px 8px 10px;
  width: fit-content;
  font-weight: 700;
}

.play-badge:hover {
  background: #000;
}

.play-badge small,
.play-soon small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  line-height: 1;
  font-weight: 600;
}

.play-badge strong,
.play-soon strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.play-soon {
  background: #3d4754;
  cursor: default;
}

.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.about-card,
.prose,
.contact-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.about-card p,
.prose p,
.prose li {
  color: var(--muted);
}

.reason-grid {
  grid-template-columns: repeat(5, 1fr);
}

.reason-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.reason-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.reason-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-card h3,
.form-card h3 {
  margin: 0 0 8px;
}

.contact-detail {
  margin: 16px 0 0;
}

.contact-detail a {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-field label {
  font-weight: 700;
  font-size: 0.92rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.page-hero {
  padding: 48px 0 8px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.prose h2 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.site-footer {
  background: var(--navy);
  color: #d7dee8;
  padding: 48px 0 28px;
}

.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .brand-tag {
  color: #c5d0dc;
}

.footer-brand .brand-logo {
  border-color: rgba(255, 255, 255, 0.22);
}

.footer-col h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.95rem;
}

.footer-col p,
.footer-col a {
  color: #c5d0dc;
  text-decoration: none;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 0 0 8px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-copy {
  width: min(var(--max), calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .reason-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid,
  .about-grid,
  .contact-layout,
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 420px;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: var(--header) 0 0 0;
    background: rgba(16, 32, 51, 0.35);
    z-index: 30;
  }

  .site-nav {
    display: flex;
    position: fixed;
    top: var(--header);
    right: 0;
    width: min(320px, 100%);
    height: calc(100vh - var(--header));
    background: #fff;
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    transform: translateX(110%);
    transition: transform 0.22s ease;
    z-index: 35;
    overflow: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 12px 8px;
    border-radius: 10px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: var(--bg-soft);
  }
}

@media (max-width: 800px) {
  .app-grid,
  .reason-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner,
  .about-card,
  .prose,
  .contact-card,
  .form-card {
    padding: 24px;
  }

  section {
    padding: 48px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
