/* ConstructEngine landing page. Values mirror the Tailwind classes of the original React page. */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0b1220;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(59, 130, 246, 0.18) 0%, transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.14) 0%, transparent 30%),
    radial-gradient(circle at 50% 65%, rgba(96, 165, 250, 0.1) 0%, transparent 35%),
    linear-gradient(180deg, #0b1220 0%, #132a63 40%, #1d4ed8 100%);
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.025em;
}

img,
svg,
iframe {
  display: block;
}

/* Header */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 0;
}

.logo {
  height: 64px;
  width: auto;
  filter: brightness(1.15);
}

.tabs {
  display: flex;
  gap: 4px;
  margin-top: 36px;
  padding: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tab:hover {
  color: rgba(255, 255, 255, 0.8);
}

.tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.tab-icon {
  width: 14px;
  height: 14px;
}

/* Layout */

.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.container {
  width: 100%;
  max-width: 64rem;
}

.site-footer {
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.3);
}

.site-footer p + p {
  margin-top: 6px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.site-footer a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Platform page */

.platform {
  max-width: 48rem;
  margin: 0 auto;
  padding: 16px 0 40px;
  text-align: center;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
}

.hero h1 span + span {
  margin-top: 4px;
}

.subhead {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.demo {
  margin: 32px auto 8px;
}

.demo-label {
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 212, 0, 0.15);
  border: 1px solid rgba(255, 212, 0, 0.4);
}

.video {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.divider {
  height: 1px;
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.1);
}

.tagline {
  margin-top: 40px;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.bullets {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 12px;
  width: fit-content;
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 15px;
  line-height: 1.375;
  color: rgba(255, 255, 255, 0.9);
}

.bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #facc15;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
  text-align: left;
}

.card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.features .card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
}

.card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.15), rgba(59, 130, 246, 0.15));
}

.card-icon .icon {
  width: 20px;
  height: 20px;
  color: #facc15;
}

.features h3 {
  font-size: 15px;
  font-weight: 700;
}

.features p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.6);
}

/* Story page */

.story {
  max-width: 42rem;
  margin: 0 auto;
  padding: 32px 16px;
}

.story h1 {
  margin-bottom: 32px;
  text-align: center;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 900;
}

.story-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.story-card {
  padding: 24px;
}

.story-card h2 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.story-card p {
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.7);
}

/* Breakpoints (Tailwind sm / md / lg) */

@media (min-width: 640px) {
  .logo {
    height: 80px;
  }

  .hero h1 {
    font-size: 3rem;
    line-height: 1;
  }

  .subhead {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .story h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .story-card {
    padding: 32px;
  }
}

@media (min-width: 768px) {
  .tagline {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

@media (min-width: 1024px) {
  .logo {
    height: 96px;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .subhead {
    font-size: 2.2rem;
  }
}
