/* ====== Design tokens ====== */
:root {
  --bg: #fff;
  --ink: #0b0b0c;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --accent: #0050a0; /* Updated to requested accent color */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d10;
    --ink: #e7e9ee;
    --muted: #98a2b3;
    --line: #1f232b;
    --card: #10131a;
    --accent: #4da3ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

/* ====== Base ====== */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: color-mix(in oklab, var(--accent), black 20%);
  text-decoration: none;
}

/* ====== Layout wrappers ====== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 28px);
}

/* ====== Header ====== */
header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
}

/* Updated brand text styling */
.header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}
.brand-main {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.brand-sub {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

/* ====== Hero ====== */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  padding: 24px 0 8px;
}
.hero img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 3.4vw + 0.5rem, 2.6rem);
  letter-spacing: -0.01em;
}
.small {
  color: var(--muted);
  font-size: 1rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    padding: 36px 0 12px;
  }
}

/* ====== Section: Our Apps ====== */
section > h2 {
  font-size: clamp(1.4rem, 1.2vw + 0.8rem, 1.9rem);
  margin: 12px 0 10px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ====== Cards (improved) ====== */
.card {
  display: grid;
  grid-template-columns: auto 1fr; /* icon left, text right by default */
  align-items: center;
  gap: 16px;
  padding: 18px; /* a bit more breathing room */
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 120ms ease, box-shadow 180ms ease,
    border-color 180ms ease, background-color 180ms ease;
  will-change: transform;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
  border-color: color-mix(in oklab, var(--accent), var(--line) 70%);
  background-color: color-mix(
    in oklab,
    var(--card),
    var(--accent) 4%
  ); /* subtle tint */
}

.card:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

/* Keyboard accessibility */
.card:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent), white 35%);
  outline-offset: 2px;
  border-color: var(--accent);
}

/* Icon sizing + polish */
.card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover img {
  transform: scale(1.02);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* Text hierarchy inside cards */
.card strong {
  font-size: 1.1rem;
  line-height: 1.25;
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}
.card .small {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ====== Footer ====== */
footer {
  margin-top: 40px;
  padding: 22px 0 8px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.95rem;
}

/* ====== Nice-to-haves ====== */
@media (prefers-reduced-motion: reduce) {
  .card,
  .card img {
    transition: none;
  }
}
::selection {
  background: color-mix(in oklab, var(--accent), transparent 70%);
}
