/* Colors */
:root {
  --red: #dc3942;
  --blue: #255aa4;
  --white: #ffffff;
  --black: #0d0d0d;
  --gray: #e0e0e0;
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.container {
  width: 90%;
  max-width: 900px;
  margin: auto;
  z-index: 1;
}

header {
  margin-bottom: 2rem;
}

.logo {
  width: 350px;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--white);
}

.tagline {
  font-size: 1.2rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

.dots {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dots span {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
}

/* Story section */
.story {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.story h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.story p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--gray);
}

.story .link {
  color: var(--red);
  text-decoration: none;
  font-weight: bold;
}

.story .link i {
  margin-left: 6px;
}

.story .link:hover {
  text-decoration: underline;
}

/* Buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn.red {
  background: var(--red);
  color: var(--white);
}

.btn.red:hover {
  background: #b82d36;
}

.btn.blue {
  background: var(--blue);
  color: var(--white);
}

.btn.blue:hover {
  background: #1c467f;
}

footer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--gray);
}

/* Corner dot triangles with fading opacity */
.corner {
  position: absolute;
  width: 150px;   /* adjust size as needed */
  height: 150px;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: 15px 15px;
}

/* Top Left */
.corner {
  position: absolute;
  width: 150px;
  height: 150px;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: 15px 15px;
  /* triangle dot pattern reused via CSS variable */
  --triangle: 
    /* Row 1 (5 dots) */
    radial-gradient(circle, rgba(220,57,66,1) 3px, transparent 3px),
    radial-gradient(circle, rgba(220,57,66,1) 3px, transparent 3px),
    radial-gradient(circle, rgba(220,57,66,1) 3px, transparent 3px),
    radial-gradient(circle, rgba(220,57,66,1) 3px, transparent 3px),
    radial-gradient(circle, rgba(220,57,66,1) 3px, transparent 3px),
    /* Row 2 (4 dots) */
    radial-gradient(circle, rgba(220,57,66,0.8) 3px, transparent 3px),
    radial-gradient(circle, rgba(220,57,66,0.8) 3px, transparent 3px),
    radial-gradient(circle, rgba(220,57,66,0.8) 3px, transparent 3px),
    radial-gradient(circle, rgba(220,57,66,0.8) 3px, transparent 3px),
    /* Row 3 (3 dots) */
    radial-gradient(circle, rgba(220,57,66,0.6) 3px, transparent 3px),
    radial-gradient(circle, rgba(220,57,66,0.6) 3px, transparent 3px),
    radial-gradient(circle, rgba(220,57,66,0.6) 3px, transparent 3px),
    /* Row 4 (2 dots) */
    radial-gradient(circle, rgba(220,57,66,0.4) 3px, transparent 3px),
    radial-gradient(circle, rgba(220,57,66,0.4) 3px, transparent 3px),
    /* Row 5 (1 dot) */
    radial-gradient(circle, rgba(220,57,66,0.2) 3px, transparent 3px);

  --positions:
    /* Row 1 */
    0 0, 15px 0, 30px 0, 45px 0, 60px 0,
    /* Row 2 */
    0 15px, 15px 15px, 30px 15px, 45px 15px,
    /* Row 3 */
    0 30px, 15px 30px, 30px 30px,
    /* Row 4 */
    0 45px, 15px 45px,
    /* Row 5 */
    0 60px;
}

/* Mirror transforms for other corners */
.corner.top-right {
  top: 20px;
  right: 20px;
  transform: scaleX(-1);
  background-image: inherit;
  background-position: inherit;
}

/* Apply same pattern to all corners */
.corner.top-left {
  top: 20px;
  left: 20px;
  background-image: var(--triangle);
  background-position: var(--positions);
}

.corner.top-right {
  top: 20px;
  right: 20px;
  transform: scaleX(-1);
  background-image: var(--triangle);
  background-position: var(--positions);
}

.corner.bottom-left {
  bottom: 20px;
  left: 20px;
  transform: scaleY(-1);
  background-image: var(--triangle);
  background-position: var(--positions);
}

.corner.bottom-right {
  bottom: 20px;
  right: 20px;
  transform: scale(-1);
  background-image: var(--triangle);
  background-position: var(--positions);
}

/* Mobile scaling */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  .logo {
    width: 90px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}
