/* HomeworkServices product hub — premium dark theme (azad.co/homeworkservices/) */
:root {
  --hws-bg: #070d18;
  --hws-bg-2: #0b1220;
  --hws-surface: #111827;
  --hws-surface-2: #0f172a;
  --hws-text: #f8fafc;
  --hws-muted: #94a3b8;
  --hws-border: rgba(148, 163, 184, 0.16);
  --hws-brand: #0066b0;
  --hws-brand-deep: #0a2f5c;
  --hws-accent: #38bdf8;
  --hws-orange: #f87e03;
  --hws-radius: 1.15rem;
  --hws-shadow: 0 22px 56px rgba(0, 0, 0, 0.4);
  --hws-font: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  --hws-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.hws-hub {
  margin: 0;
  min-height: 100vh;
  background: var(--hws-bg);
  color: var(--hws-text);
  font-family: var(--hws-body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.hws-hub a {
  color: inherit;
}

.hws-hub h1,
.hws-hub h2,
.hws-hub h3 {
  font-family: var(--hws-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.hws-hub p {
  margin: 0;
}

.hws-hub img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hws-hub-wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

/* Top bar */
.hws-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 13, 24, 0.86);
  backdrop-filter: blur(14px);
}

@media (min-width: 640px) {
  .hws-topbar {
    padding: 0.95rem 1.5rem;
  }
}

.hws-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--hws-font);
  font-weight: 700;
  font-size: 0.95rem;
}

.hws-topbar__brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.hws-topbar__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.hws-topbar__nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
}

.hws-topbar__nav a:hover {
  color: #fff;
}

.hws-topbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: var(--hws-brand);
  color: #fff !important;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.hws-topbar__cta:hover {
  background: #0159a8;
  transform: translateY(-1px);
}

/* Hero */
.hws-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 12% 8%, rgba(248, 126, 3, 0.18), transparent 55%),
    radial-gradient(ellipse 65% 50% at 88% 90%, rgba(56, 189, 248, 0.16), transparent 50%),
    linear-gradient(145deg, #04101f 0%, #0a2f5c 48%, #003d6b 100%);
  padding: 2.5rem 0 3.5rem;
}

.hws-hero__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: -1;
  animation: hws-mesh-drift 18s ease-in-out infinite alternate;
}

@keyframes hws-mesh-drift {
  from { transform: translateY(0); opacity: 0.55; }
  to { transform: translateY(-12px); opacity: 0.85; }
}

.hws-hero__back {
  margin-bottom: 1.25rem;
}

.hws-hero__back a {
  color: #7dd3fc;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.hws-hero__back a:hover {
  text-decoration: underline;
}

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

@media (min-width: 960px) {
  .hws-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.hws-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e0f2fe;
  animation: hws-fade-up 0.7s ease both;
}

.hws-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  color: #fff;
  animation: hws-fade-up 0.75s ease 0.06s both;
}

.hws-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.hws-hero__brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.hws-hero__lead {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
  animation: hws-fade-up 0.75s ease 0.12s both;
}

.hws-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  animation: hws-fade-up 0.75s ease 0.18s both;
}

.hws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-family: var(--hws-font);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hws-btn:hover {
  transform: translateY(-2px);
}

.hws-btn--primary {
  background: linear-gradient(135deg, var(--hws-brand), #0284c7);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 102, 176, 0.35);
}

.hws-btn--primary:hover {
  box-shadow: 0 16px 34px rgba(0, 102, 176, 0.45);
}

.hws-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hws-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
}

.hws-btn--android {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hws-btn--android svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hws-package {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  animation: hws-fade-up 0.75s ease 0.24s both;
}

.hws-package code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", monospace;
  color: #bae6fd;
  font-size: 0.8rem;
}

.hws-hero__visual {
  position: relative;
  animation: hws-fade-up 0.9s ease 0.15s both;
}

.hws-hero__visual::before {
  content: "";
  position: absolute;
  inset: 12% -6% -8% 8%;
  border-radius: 2rem;
  background: radial-gradient(circle at 30% 20%, rgba(248, 126, 3, 0.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.22), transparent 55%);
  filter: blur(18px);
  z-index: -1;
}

.hws-hero__visual img {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  border-radius: 1.35rem;
  box-shadow: var(--hws-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes hws-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.hws-section {
  padding: 3.25rem 0;
  background: var(--hws-bg);
}

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

.hws-section__head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.hws-section__head h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.hws-section__head p {
  margin-top: 0.75rem;
  color: var(--hws-muted);
}

.hws-features {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .hws-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.hws-feature {
  border: 1px solid var(--hws-border);
  border-radius: var(--hws-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  padding: 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hws-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: var(--hws-shadow);
}

.hws-feature__icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(56, 189, 248, 0.14);
  color: var(--hws-accent);
}

.hws-feature__icon svg {
  width: 20px;
  height: 20px;
}

.hws-feature h3 {
  margin-top: 0.85rem;
  font-size: 1.05rem;
}

.hws-feature p {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  color: var(--hws-muted);
}

/* Audiences */
.hws-audience-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .hws-audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hws-audience {
  border: 1px solid var(--hws-border);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(0, 102, 176, 0.14), rgba(255, 255, 255, 0.02));
  padding: 1.5rem;
}

.hws-audience__icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: rgba(248, 126, 3, 0.16);
  color: #fdba74;
}

.hws-audience__icon svg {
  width: 22px;
  height: 22px;
}

.hws-audience h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.hws-audience p {
  margin-top: 0.55rem;
  color: var(--hws-muted);
}

/* Highlights */
.hws-highlights {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .hws-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hws-highlights li {
  position: relative;
  padding: 1rem 1rem 1rem 2.35rem;
  border-radius: 0.95rem;
  border: 1px solid var(--hws-border);
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.5;
}

.hws-highlights li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hws-orange), #fbbf24);
  box-shadow: 0 0 0 4px rgba(248, 126, 3, 0.14);
}

/* Gallery */
.hws-gallery {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hws-gallery {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hws-gallery__main,
.hws-gallery__side {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--hws-border);
  background: #020617;
  box-shadow: var(--hws-shadow);
}

.hws-gallery__main img,
.hws-gallery__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 16rem;
}

.hws-gallery__side {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hws-gallery__side {
    grid-template-rows: 1fr 1fr;
  }
}

/* Soon + requirements */
.hws-split {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .hws-split {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hws-card {
  border: 1px solid var(--hws-border);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
}

.hws-card h3 {
  font-size: 1.2rem;
}

.hws-card > p {
  margin-top: 0.7rem;
  color: var(--hws-muted);
  font-size: 0.95rem;
}

.hws-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--hws-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hws-card a {
  color: var(--hws-accent);
}

/* CTA band */
.hws-cta {
  background: linear-gradient(135deg, #04101f, #0a2f5c 55%, #003d6b);
  padding: 2.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hws-cta__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hws-cta__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.hws-cta__copy {
  text-align: center;
}

@media (min-width: 768px) {
  .hws-cta__copy {
    text-align: left;
    flex: 1;
  }
}

.hws-cta__copy h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.hws-cta__copy p {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.74);
}

.hws-cta__actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .hws-cta__actions {
    justify-content: flex-start;
  }
}

.hws-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.hws-qr__frame {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(17, 24, 39, 0.95);
  padding: 0.8rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.hws-qr__frame img {
  width: 148px;
  height: 148px;
  border-radius: 0.4rem;
  background: #fff;
  padding: 0.35rem;
}

.hws-qr__logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hws-qr__logo img {
  width: 38px;
  height: 38px;
  border-radius: 0.5rem;
  background: #0a2f5c;
  padding: 0.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hws-qr__caption {
  max-width: 11rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Footer */
.hws-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0 2rem;
  background: #050912;
}

.hws-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  color: var(--hws-muted);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .hws-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.hws-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hws-footer__links a {
  color: var(--hws-muted);
  text-decoration: none;
}

.hws-footer__links a:hover {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .hws-hero__mesh,
  .hws-badge,
  .hws-hero h1,
  .hws-hero__lead,
  .hws-hero__actions,
  .hws-package,
  .hws-hero__visual {
    animation: none;
  }

  .hws-btn:hover,
  .hws-feature:hover {
    transform: none;
  }
}
