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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #FAFAFA;
  color: #0B0B0C;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid #E6E6E8;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #7A7D84;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #0B0B0C;
}

/* Hero */

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 60px;
  text-align: center;
  animation: fadeUp 0.8s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-wordmark {
  display: flex;
  align-items: baseline;
  justify-content: center;
  animation: fadeUp 0.8s ease-out 0.1s both;
}

.hero-title {
  font-size: clamp(56px, 14vw, 96px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
}

.hero-dot {
  font-size: clamp(56px, 14vw, 96px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-left: -2px;
}

.hero-subtitle {
  font-size: clamp(17px, 4vw, 22px);
  font-weight: 600;
  color: #7A7D84;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-phrase {
  font-size: clamp(14px, 3vw, 17px);
  font-weight: 600;
  color: #A7A9AE;
  font-style: italic;
  margin-bottom: 36px;
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease-out 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: #0B0B0C;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 11, 12, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(11, 11, 12, 0.2);
}

/* Preview */

.preview {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.phone-wrapper {
  position: relative;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 600px;
  background: radial-gradient(circle, rgba(11, 11, 12, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.phone {
  position: relative;
  width: 280px;
  height: 608px;
  background:
    linear-gradient(180deg, #2A2C31 0%, #1A1B1F 45%, #141517 100%);
  border-radius: 48px;
  padding: 9px;
  box-shadow:
    0 30px 90px rgba(11, 11, 12, 0.18),
    0 10px 28px rgba(11, 11, 12, 0.08),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Side buttons */

.phone-btn {
  position: absolute;
  background: #0E0F12;
  border-radius: 2px;
  z-index: 1;
}

.phone-btn-action {
  left: -1.5px;
  top: 110px;
  width: 3px;
  height: 22px;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.phone-btn-vol-up {
  left: -1.5px;
  top: 152px;
  width: 3px;
  height: 34px;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.phone-btn-vol-down {
  left: -1.5px;
  top: 196px;
  width: 3px;
  height: 34px;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.phone-btn-power {
  right: -1.5px;
  top: 168px;
  width: 3px;
  height: 50px;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

/* Screen */

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 39px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Status bar + Dynamic Island */

.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 8px;
  position: relative;
  font-size: 13px;
  font-weight: 700;
  color: #0B0B0C;
  flex-shrink: 0;
}

.phone-time {
  letter-spacing: -0.2px;
}

.phone-island {
  position: absolute;
  left: 50%;
  top: 11px;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #0B0B0C;
  border-radius: 14px;
  z-index: 2;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0B0B0C;
}

.phone-battery {
  display: inline-block;
  width: 22px;
  height: 11px;
  border: 1px solid #0B0B0C;
  border-radius: 3px;
  padding: 1px;
  position: relative;
}

.phone-battery::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 3px;
  width: 1.5px;
  height: 5px;
  background: #0B0B0C;
  border-radius: 0 1px 1px 0;
}

.phone-battery-fill {
  display: block;
  width: 80%;
  height: 100%;
  background: #0B0B0C;
  border-radius: 1px;
}

/* App header */

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

.phone-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #0B0B0C;
}

.phone-add-btn {
  width: 38px;
  height: 38px;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B0B0C;
}

/* Habit list */

.phone-list {
  flex: 1;
  padding: 0 18px;
  overflow: hidden;
}

.habit-item {
  padding: 12px 0 14px;
  border-bottom: 1px solid #F2F2F3;
}

.habit-item:last-of-type {
  border-bottom: none;
}

.habit-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.habit-icon {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: #F2F2F3;
  border: 1px solid #E6E6E8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
  color: #0B0B0C;
}

.habit-name {
  font-size: 15px;
  font-weight: 600;
  color: #0B0B0C;
  flex: 1;
  letter-spacing: -0.1px;
}

.habit-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #A7A9AE;
  flex-shrink: 0;
}

.habit-reorder,
.habit-chevron {
  display: block;
}

/* Week range + Today pill */

.week-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  margin-bottom: 6px;
}

.week-range-text {
  font-size: 10px;
  font-weight: 700;
  color: #7A7D84;
  letter-spacing: 0.1px;
}

.week-today-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  background: #F2F2F3;
  border: 1px solid #D2D3D6;
  font-size: 10px;
  font-weight: 800;
  color: #0B0B0C;
}

/* Week dots */

.week-dots {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dot {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}

.dot.done {
  background: #0B0B0C;
  color: #FFFFFF;
}

.dot.planned {
  background: #F2F2F3;
  color: #7A7D84;
}

.dot.empty {
  background: #FFFFFF;
  border: 1px solid #E6E6E8;
  color: #A7A9AE;
}

.week-days {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  padding: 0 1px;
}

.week-days span {
  flex: 1;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  color: #A7A9AE;
  text-transform: uppercase;
}

/* Tab bar */

.phone-tab-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 14px 8px 22px;
  margin-top: auto;
  border-top: 1px solid #F2F2F3;
  background: #FFFFFF;
  flex-shrink: 0;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.32;
  color: #0B0B0C;
}

.tab.active {
  opacity: 1;
}

/* Responsive */

@media (min-width: 640px) {
  .hero {
    padding: 120px 24px 80px;
  }

  .phone {
    width: 300px;
    height: 651px;
  }

  .phone-glow {
    width: 300px;
    height: 640px;
  }

  .phone-island {
    width: 104px;
    height: 28px;
  }

  .dot {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
}
