:root {
  --color-bg: #050816;
  --color-bg-alt: #0b1020;
  --color-accent: #ffb545;
  --color-accent-soft: rgba(255, 181, 69, 0.22);
  --color-accent-2: #4f46e5;
  --color-text: #f9fafb;
  --color-text-muted: #9ca3af;
  --color-border-subtle: rgba(148, 163, 184, 0.4);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.7);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "San Francisco", "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: radial-gradient(circle at top left, #111827 0, #020617 55%, #000 100%);
  display: flex;
  flex-direction: column;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

main {
  flex: 1;
}

/* Header */

.site-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72));
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: block;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.site-nav a:hover {
  color: var(--color-text);
  background-color: rgba(148, 163, 184, 0.16);
}

/* Hero */

.hero {
  padding: 40px 0 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 2.7vw + 1.3rem, 2.9rem);
  line-height: 1.05;
  margin: 0 0 16px;
}

.hero-subtitle {
  margin: 0 0 20px;
  max-width: 30rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--color-accent), #ffd37b);
  color: #020617;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.75);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
}

.button.ghost {
  background-color: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--color-text);
}

.button.ghost:hover {
  background-color: rgba(15, 23, 42, 0.95);
}

.platform-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Timer mock */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual .screenshot-frame {
  max-width: 360px;
}

.hero-visual .screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Generic screenshot frame (pseudo-device border) */
.screenshot-frame {
  background: radial-gradient(circle at left top, rgba(255, 181, 69, 0.22), #020617 55%);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  margin-bottom: 10px;
}

.timer-mock {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  border-radius: 32px;
  padding: 22px 16px;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, black 100%);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.timer-mock::before {
  content: "";
  position: absolute;
  inset: 12px 18px 52px;
  border-radius: 26px;
  border: 2px solid rgba(148, 163, 184, 0.4);
  opacity: 0.5;
}

.timer-time {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--color-accent);
  text-shadow: 0 0 26px rgba(255, 181, 69, 0.6);
  z-index: 1;
}

.timer-label {
  margin-top: 6px;
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-text-muted);
  z-index: 1;
}

/* Screenshots */

.screenshots {
  padding: 30px 0 18px;
}

.screenshots h2,
.features h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.section-intro {
  margin-top: 0;
  margin-bottom: 22px;
  color: var(--color-text-muted);
  max-width: 32rem;
  font-size: 0.95rem;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.color-rules {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.color-rules li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.color-chip {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.4);
}

.color-safe {
  background-color: #00ff00;
}

.color-warning {
  background-color: #ffaa00;
}

.color-final {
  background-color: #ff0000;
}

.rule-text code {
  font-size: 0.85rem;
}


/* Features */

.features {
  padding: 18px 0 36px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature {
  padding: 16px 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.2), #020617 70%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.7);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 14px 0 16px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), #020617);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 12px;
}

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

.footer-links a:hover {
  color: var(--color-text);
}

.footer-brand {
  margin: 0;
}

/* Standalone pages (About, Privacy) */

.page-main {
  padding: 36px 0 40px;
}

.page-header {
  margin-bottom: 14px;
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: 1.7rem;
}

.page-header p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 36rem;
  font-size: 0.95rem;
}

.page-content {
  max-width: 640px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.page-content a,
.page-header a {
  color: var(--color-accent);
  text-decoration: underline;
}

.page-content a:visited,
.page-header a:visited {
  color: #e29b35; /* slightly darker for visited state, still high contrast */
}

.page-content a:focus-visible,
.page-header a:focus-visible {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 2px;
}

.page-content h2 {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-top: 20px;
  margin-bottom: 6px;
}

.page-content p {
  margin: 0 0 10px;
}

.page-content ul {
  margin: 0 0 10px 1.1rem;
  padding: 0;
}

/* Responsive */

@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 26px;
  }

  .hero-visual {
    margin-top: 18px;
  }

  .header-inner {
    gap: 10px;
  }

  .site-nav {
    font-size: 0.85rem;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
