:root {
  --blue: #125cff;
  --purple: #7d37f2;
  --ink: #17142a;
  --muted: #5d6375;
  --soft-blue: #eef5ff;
  --line: #dbe5fb;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(18, 92, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  background: var(--white);
}

a {
  color: var(--blue);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.nav {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding: 108px 0 72px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 37%, rgba(255, 255, 255, 0.28) 72%),
    url("coglog-reflection-hero.jpg");
  background-size: cover;
  background-position: center right;
}

.hero-inner,
.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 590px;
}

.logo-mark {
  width: min(224px, 36vw);
  display: block;
  margin-bottom: 24px;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 850;
}

h3 {
  font-size: 1.12rem;
  font-weight: 820;
}

p {
  margin: 0;
}

.lead {
  margin-top: 18px;
  color: #30364a;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  max-width: 58ch;
}

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

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

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: var(--shadow);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(18, 92, 255, 0.26);
}

.section {
  padding: 72px 0;
}

.section.light {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
}

.store-panel {
  padding: 26px;
  border-radius: 8px;
  background: var(--soft-blue);
  border: 1px solid var(--line);
}

.store-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.store-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--line);
}

.store-link span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.page-header {
  background: linear-gradient(135deg, #f6faff, #f7f2ff);
  padding: 112px 0 56px;
  border-bottom: 1px solid var(--line);
}

.content {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 76px;
}

.content h2 {
  font-size: 1.35rem;
  margin-top: 34px;
  margin-bottom: 10px;
}

.content p,
.content li {
  color: #34394b;
}

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

.summary {
  padding: 22px;
  border-radius: 8px;
  background: var(--soft-blue);
  border: 1px solid var(--line);
  margin-bottom: 28px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    width: min(100% - 28px, 1120px);
    padding: 14px 0;
    justify-content: center;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 54px;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
      url("coglog-reflection-hero.jpg");
    background-position: center;
  }

  .intro-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }
}

@media (max-width: 560px) {
  .nav {
    align-items: center;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .actions,
  .button,
  .store-link {
    width: 100%;
  }

  .store-link {
    align-items: flex-start;
    flex-direction: column;
  }
}
