:root {
  --bg: #080b0d;
  --bg-soft: #10161a;
  --panel: rgba(255,255,255,0.07);
  --panel-strong: rgba(255,255,255,0.11);
  --border: rgba(255,255,255,0.13);
  --text: rgba(255,255,255,0.93);
  --muted: rgba(255,255,255,0.68);
  --faint: rgba(255,255,255,0.48);
  --accent: #f5d06f;
  --accent-2: #49c2b1;
  --max: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(73,194,177,0.20), transparent 28rem),
    linear-gradient(135deg, #080b0d 0%, #11171a 48%, #090b0d 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: var(--panel);
  border-color: var(--border);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 112px);
  padding: 34px 0 60px;
}

.hero-copy,
.story-panel,
.app-section {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045));
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 6vw, 64px);
  border-radius: 8px;
}

.story-panel {
  align-self: center;
  padding: 28px;
  border-radius: 8px;
}

.eyebrow,
.category-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.96;
  font-weight: 900;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 850;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.18;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 24px;
  font-size: 1.18rem;
}

.story-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.story-panel p + p {
  margin-top: 14px;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #111;
  background: #fff;
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--panel);
}

.section {
  padding: 68px 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin-top: 8px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0,0,0,0.24);
}

.article-card h3 {
  margin-top: 10px;
}

.article-card p:not(.category-label) {
  margin-top: 12px;
}

.article-card a {
  width: fit-content;
  margin-top: auto;
  padding-top: 24px;
  color: var(--accent-2);
  font-weight: 800;
  text-decoration: none;
}

.article-card a:hover,
.article-card a:focus-visible {
  text-decoration: underline;
}

.category-list {
  display: grid;
  gap: 12px;
}

.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}

.category-row:hover,
.category-row:focus-visible {
  background: var(--panel-strong);
}

.category-row strong,
.category-row em {
  display: block;
}

.category-row strong {
  font-size: 1.15rem;
}

.category-row em {
  max-width: 700px;
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
}

.category-row b {
  color: var(--accent-2);
  white-space: nowrap;
}

.app-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
  margin: 46px 0 68px;
  padding: 28px;
  border-radius: 8px;
}

.app-section h2 {
  margin-top: 8px;
  font-size: clamp(1.7rem, 3.4vw, 2.65rem);
}

.app-points {
  display: grid;
  gap: 12px;
}

.app-points p {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0,0,0,0.22);
}

.category-hero {
  padding: 56px 0 44px;
}

.category-hero h1 {
  max-width: 840px;
  margin-top: 10px;
}

.category-hero p {
  max-width: 760px;
  margin-top: 20px;
  font-size: 1.16rem;
}

.post-list {
  display: grid;
  gap: 14px;
  padding-bottom: 72px;
}

.post-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0,0,0,0.23);
}

.post-item time {
  color: var(--faint);
  font-size: 0.92rem;
}

.post-item h2 {
  font-size: 1.45rem;
}

.post-item h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-item h2 a:hover,
.post-item h2 a:focus-visible {
  color: var(--accent-2);
}

.post-item p {
  margin-top: 8px;
}

.article-body {
  max-width: 780px;
  padding-bottom: 76px;
}

.article-body p {
  margin-top: 18px;
  color: rgba(255,255,255,0.80);
  font-size: 1.12rem;
}

.post-note {
  margin-top: 18px;
  padding: 18px;
  border-left: 3px solid var(--accent);
  background: rgba(245,208,111,0.08);
  color: var(--text);
}

.site-footer {
  padding: 44px 0 54px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin-top: 7px;
  font-size: 0.92rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.socials a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 1.12rem;
}

.socials a:hover,
.socials a:focus-visible {
  background: var(--panel-strong);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .app-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .post-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(var(--max), calc(100% - 28px));
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-copy,
  .story-panel,
  .app-section,
  .article-card,
  .category-row,
  .post-item {
    padding: 18px;
  }

  h1 {
    font-size: clamp(2.55rem, 17vw, 4.2rem);
  }

  .category-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
