/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow: hidden;
  height: 100%;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: #1a1a1a;
  color: #ffb6a0;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Container */
.page {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(24px, 5vw, 120px);
  max-width: 100%;
  overflow: hidden;
}

.content-panel {
  width: 100%;
  max-width: 1200px;
  background-color: transparent;
  position: relative;
  padding: 60px clamp(40px, 5vw, 80px);
  min-height: fit-content;
}

/* Grid Container */
.grid-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  grid-template-rows: repeat(11, 60px);
  gap: 0;
  z-index: 1;
  width: 100%;
  border: 0.8px solid #ffb6a0;
  background-image:
    linear-gradient(to right, #ffb6a0 0.8px, transparent 0.8px),
    linear-gradient(to bottom, #ffb6a0 0.8px, transparent 0.8px);
  background-size: calc(100% / 14) 60px;
}

/* Base Cell Styles */
.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  border: 0.8px solid #ffb6a0;
  background-color: #1a1a1a;
}

/* Brand Cell - Top Right (spans 2 columns) */
.cell-brand {
  grid-column: 13 / 15;
  grid-row: 1;
  justify-content: center;
  align-items: center;
}

.brand {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #ffb6a0;
  padding: 0;
  background: none;
  border: none;
}

/* Main Title Cell - Full Width (spans 14 columns, 4 rows) */
.cell-title {
  grid-column: 1 / 15;
  grid-row: 2 / 6;
  align-items: center;
  justify-content: flex-start;
}

.main-title {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  color: #ffb6a0;
  letter-spacing: -0.02em;
  text-align: left;
}

/* Subtitle Cell - Right of Title (spans 6 columns, 4 rows) */
.cell-subtitle {
  grid-column: 9 / 15;
  grid-row: 6 / 10;
  align-items: center;
  justify-content: flex-start;
}

.subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 182, 160, 0.9);
  margin: 0;
  max-width: 100%;
  text-align: left;
}

/* CTA Cell - Bottom Left (spans 6 columns, 2 rows) */
.cell-cta {
  grid-column: 1 / 7;
  grid-row: 10 / 12;
  align-items: center;
  justify-content: center;
}

.cta-button {
  display: inline-block;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 400;
  color: #1a1a1a;
  background-color: #ffb6a0;
  text-decoration: none;
  border: 0.8px solid #ffb6a0;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  text-align: center;
}

.cta-button:hover {
  background-color: transparent;
  color: #ffb6a0;
  transform: translateY(-2px);
}

/* Footer Cell - Bottom Right (spans 3 columns, 1 row) */
.cell-footer {
  grid-column: 12 / 15;
  grid-row: 11 / 12;
  align-items: center;
  justify-content: center;
}

.privacy-link {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 182, 160, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.2px;
}

.privacy-link:hover {
  color: #ffb6a0;
}

/* Responsive Design */
@media (min-width: 1440px) {
  .content-panel {
    max-width: 1200px;
  }
}

/* iPad and Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .page {
    padding: 32px 48px;
  }

  .content-panel {
    padding: 48px 40px;
  }

  .grid-container {
    grid-template-rows: repeat(11, 50px);
    background-size: calc(100% / 14) 50px;
  }

  .cell-title {
    grid-column: 1 / -1;
    grid-row: 2 / 7;
  }

  .cell-subtitle {
    grid-column: 1 / -1;
    grid-row: 8 / 12;
  }

  .cell-cta {
    grid-column: 1 / 4;
    grid-row: 10 / 12;
  }

  .cell-footer {
    grid-column: 12 / 15;
    grid-row: 11 / 12;
  }
}

/* Mobile - iPad Portrait and smaller */
@media (max-width: 768px) {
  .page {
    padding: 32px 24px;
  }

  .content-panel {
    padding: 40px 32px;
  }

  .grid-container {
    grid-template-rows: repeat(13, 45px);
    background-size: calc(100% / 14) 45px;
    border: none;
  }

  .cell {
    border: none;
  }

  .cell-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
    align-items: center;
  }

  .cell-title {
    grid-column: 1 / -1;
    grid-row: 2 / 6;
    justify-content: center;
    padding-bottom: 0px;
  }

  .cell-subtitle {
    grid-column: 1 / -1;
    grid-row: 6 / 11;
    justify-content: center;
    padding-top: 0;
  }

  .cell-cta {
    grid-column: 1 / -1;
    grid-row: 11 / 13;
  }

  .cell-footer {
    grid-column: 1 / -1;
    grid-row: 13 / 14;
  }

  .main-title {
    font-size: 32px;
    text-align: center;
  }

  .subtitle {
    font-size: 16px;
    text-align: center;
  }

  .brand {
    font-size: 14px;
  }

  .privacy-link {
    font-size: 12px;
  }
}

/* Mobile - Small phones */
@media (max-width: 480px) {
  .page {
    padding: 24px 16px;
  }

  .content-panel {
    padding: 32px 24px;
  }

  .grid-container {
    grid-template-rows: repeat(13, 40px);
    background-size: calc(100% / 14) 40px;
    border: none;
  }

  .cell {
    border: none;
  }

  .cell-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
    align-items: center;
  }

  .cell-title {
    grid-column: 1 / -1;
    grid-row: 2 / 6;
    justify-content: center;
    padding-bottom: 8px;
  }

  .cell-subtitle {
    grid-column: 1 / -1;
    grid-row: 6 / 11;
    justify-content: center;
    padding-top: 0;
  }

  .cell-cta {
    grid-column: 1 / -1;
    grid-row: 11 / 13;
  }

  .cell-footer {
    grid-column: 1 / -1;
    grid-row: 13 / 14;
  }

  .main-title {
    font-size: 28px;
    text-align: center;
  }

  .subtitle {
    font-size: 14px;
    text-align: center;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 14px;
  }

  .brand {
    font-size: 12px;
  }
}
