/* TripGap site — shared styles */
:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e8ecf1;
  --muted: #8b9aab;
  --accent: #3d9cf0;
  --accent-dim: #2563a8;
  --border: #2a3544;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* App icon (~40% of previous hero size) + text wrap */
.hero-intro {
  margin: 0 0 1.5rem;
  overflow: hidden; /* contain float */
}

.hero-intro > h1 {
  margin-top: 0;
}

.hero-visual {
  float: left;
  width: min(112px, 31vw);
  margin: 0 1rem 0.75rem 0;
}

.hero-visual-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22%;
  padding: 4px;
  background:
    linear-gradient(160deg, rgba(61, 156, 240, 0.12) 0%, var(--surface) 42%, rgba(15, 20, 25, 0.96) 100%);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(61, 156, 240, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-visual-inner::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(
    ellipse 70% 55% at 50% 35%,
    rgba(61, 156, 240, 0.22) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
  border-radius: 30%;
}

.hero-visual-inner img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18%;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.25));
}

@media (max-width: 520px) {
  .hero-visual {
    float: none;
    width: min(112px, 42vw);
    margin: 0 auto 1rem;
  }

  .hero-intro {
    text-align: center;
  }

  .hero-intro > h1,
  .hero-intro > .lead,
  .hero-intro > p {
    text-align: left;
  }
}

main h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

main h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

main p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.92;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:hover {
  background: var(--accent-dim);
  text-decoration: none;
}

ul.plain {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

ul.plain li {
  margin-bottom: 0.35rem;
}

dl.about {
  margin: 0;
}

dl.about dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 1rem;
}

dl.about dt:first-child {
  margin-top: 0;
}

dl.about dd {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  color: var(--text);
}

footer.site {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

footer.site a {
  color: var(--muted);
}

footer.site a:hover {
  color: var(--accent);
}
