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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f7f7f5;
  color: #1f1f1f;
}

/* Navigation */
.navbar {
  height: 72px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e5;
  background: rgba(247, 247, 245, 0.95);
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo span {
  margin-left: 4px;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 25px;
}

.nav-links a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover {
  color: #000;
}

.nav-button {
  background: transparent;
  border: 1px solid #222;
  padding: 10px 16px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
}

.nav-button:hover {
  background: #222;
  color: white;
}

/* Hero */
.hero {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.hero-badge {
  font-size: 11px;
  letter-spacing: 1.5px;
  border: 1px solid #d8d8d8;
  padding: 7px 13px;
  border-radius: 20px;
  margin-bottom: 25px;
  color: #555;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 24px;
}

.hero p {
  max-width: 520px;
  color: #666;
  font-size: 18px;
  line-height: 1.6;
}

.hero-button {
  margin-top: 30px;
  background: #222;
  color: white;
  border: none;
  padding: 16px 25px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-button:hover {
  background: #000;
  transform: translateY(-2px);
}

.hero .small-text {
  margin-top: 14px;
  font-size: 13px;
  color: #888;
}

/* Features */
.features {
  border-top: 1px solid #e3e3e3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 55px 8%;
  gap: 30px;
  background: white;
}

.feature {
  text-align: center;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.feature p {
  color: #777;
  font-size: 13px;
}

/* Mobile */
@media (max-width: 700px) {

  .navbar {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-button {
    padding: 8px 12px;
  }

  .hero {
    min-height: 560px;
    padding: 70px 20px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .hero p {
    font-size: 16px;
  }

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

/* Create Moment Page */

.logo-link {
  text-decoration: none;
  color: inherit;
}

.back-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  color: #000;
}

.create-page {
  padding: 70px 20px 100px;
}

.create-container {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.create-heading {
  text-align: center;
  margin-bottom: 45px;
}

.create-heading .hero-badge {
  display: inline-block;
  margin-bottom: 20px;
}

.create-heading h1 {
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -2px;
  margin-bottom: 15px;
}

.create-heading p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}


/* Form */

.moment-form {
  background: white;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  padding: 35px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 9px;
}

.form-group label span {
  color: #999;
  font-weight: normal;
  margin-left: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.create-submit {
  width: 100%;
  background: #222;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.create-submit:hover {
  background: #000;
  transform: translateY(-1px);
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 15px;
}


/* Mobile form */

@media (max-width: 600px) {

  .create-page {
    padding: 50px 16px 70px;
  }

  .moment-form {
    padding: 24px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

}

.nav-button,
.hero-button {
  text-decoration: none;
  display: inline-block;
}

/* =========================
   LIVE MOMENT PAGE
========================= */

.share-button {
  background: transparent;
  border: 1px solid #222;
  padding: 10px 16px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
}

.share-button:hover {
  background: #222;
  color: white;
}

.moment-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.moment-container {
  width: 100%;
  max-width: 850px;
  text-align: center;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #666;
  border: 1px solid #ddd;
  padding: 8px 13px;
  border-radius: 30px;
  margin-bottom: 30px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #e74c3c;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.3);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.moment-container h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 25px;
}

.moment-status {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #777;
  margin-bottom: 25px;
}

/* TIMER */

.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 45px;
}

.time-box {
  background: white;
  border: 1px solid #e1e1e1;
  border-radius: 14px;
  padding: 30px 10px;
}

.time-box span {
  display: block;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  letter-spacing: -2px;
}

.time-box small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #888;
}

/* DETAILS */

.moment-details {
  max-width: 600px;
  margin: 0 auto 30px;
}

.detail-item {
  color: #666;
  font-size: 15px;
  margin-bottom: 12px;
}

.location-link {
  display: inline-block;
  color: #444;
  text-decoration: none;
}

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

.moment-note {
  margin-top: 25px;
  padding: 20px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}

/* BUTTON */

.copy-link-button {
  background: transparent;
  border: 1px solid #ccc;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.copy-link-button:hover {
  border-color: #222;
}

.powered-by {
  margin-top: 25px;
  color: #999;
  font-size: 12px;
}

/* MOBILE */

@media (max-width: 650px) {

  .moment-page {
    align-items: flex-start;
    padding-top: 55px;
  }

  .timer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .time-box {
    padding: 24px 8px;
  }

  .moment-container h1 {
    letter-spacing: -2px;
  }

}

.create-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}