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

:root {
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --secondary: #f97316;
  --success: #10b981;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

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

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 160px 0 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 50%, #fff7ed 100%);
  z-index: -1;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.phone-frame {
  width: 320px;
  height: 640px;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.wallet-card {
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.card-title {
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.card-info {
  margin-bottom: 24px;
}

.room-number {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hotel-name {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.valid-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

/* Features Section */
.features {
  padding: 120px 0;
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.3s ease;
}

.feature-icon.blue {
  background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
  color: var(--primary);
}

.feature-icon.orange {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: var(--secondary);
}

.feature-icon.green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: var(--success);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 24px;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  margin-top: 40px;
  position: relative;
}

.step-connector::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -4px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

/* Add Key Section */
.add-key {
  padding: 120px 0;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
}

.add-key-card {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.add-key-header {
  text-align: center;
  margin-bottom: 40px;
}

.add-key-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.add-key-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.activation-form {
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

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

/* Ensure wallet buttons are hidden by default and only show after activation */
.wallet-buttons {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wallet-buttons.show {
  display: flex;
  opacity: 1;
  animation: fadeInUp 0.5s ease forwards;
}

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

.wallet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--border);
  background: white;
}

.wallet-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.google-pay {
  color: #5f6368;
}

.google-pay:hover {
  border-color: #4285f4;
  background: #f8f9fa;
}

.apple-pay {
  color: #000;
}

.apple-pay:hover {
  border-color: #000;
  background: #f5f5f7;
}

/* Success message also hidden by default */
.success-message {
  display: none;
  text-align: center;
  padding: 40px 20px;
  opacity: 0;
}

.success-message.show {
  display: block;
  opacity: 1;
  animation: fadeIn 0.5s ease forwards;
}

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

.success-icon {
  margin-bottom: 24px;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-message h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.success-message p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 80px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Desktop phone offset only */
@media (min-width: 969px) {
  .phone-mockup {
    animation: floatDesktop 6s ease-in-out infinite;
  }

  @keyframes floatDesktop {
    0%,
    100% {
      transform: translateX(50px) translateY(0px);
    }
    50% {
      transform: translateX(50px) translateY(-20px);
    }
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .container {
    padding: 0 20px;
  }

  .nav {
    height: 64px;
    gap: 16px;
  }

  .logo {
    font-size: 18px;
    gap: 10px;
  }

  .nav-links {
    display: none;
  }

  .header .btn-primary,
  .header .btn-secondary {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .hero {
    padding: 120px 0 72px;
  }

  .hero-content {
    flex-direction: column;
    gap: 48px;
    text-align: center;
  }

  .hero-text {
    width: 100%;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 42px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    gap: 48px;
  }

  .step-connector {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .header {
    background: rgba(255, 255, 255, 0.95);
  }

  .nav {
    height: 60px;
  }

  .logo {
    font-size: 16px;
    gap: 8px;
  }

  .header .btn-primary,
  .header .btn-secondary {
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 10px;
    box-shadow: none;
  }

  .hero {
    padding: 100px 0 56px;
  }

  .badge {
    font-size: 12px;
    padding: 6px 12px;
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .phone-mockup {
    width: 100%;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
  }

  .phone-frame {
    width: min(100%, 280px);
    height: auto;
    aspect-ratio: 1 / 2;
    border-radius: 36px;
    padding: 10px;
  }

  .phone-notch {
    width: 96px;
    height: 22px;
    top: 10px;
  }

  .phone-screen {
    border-radius: 28px;
    padding: 24px 14px;
  }

  .wallet-card {
    padding: 18px;
    border-radius: 18px;
  }

  .card-header {
    margin-bottom: 20px;
  }

  .card-title {
    font-size: 14px;
  }

  .room-number {
    font-size: 22px;
  }

  .hotel-name {
    font-size: 13px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .section-header p {
    font-size: 15px;
  }

  .features,
  .how-it-works,
  .add-key {
    padding: 72px 0;
  }

  .feature-card {
    padding: 28px 22px;
  }

  .feature-card h3 {
    font-size: 20px;
  }

  .add-key-card {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .add-key-header h2 {
    font-size: 26px;
  }

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

  .footer {
    padding: 56px 0 28px;
  }

  .footer-links {
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 14px;
  }

  .logo {
    font-size: 15px;
  }

  .header .btn-primary,
  .header .btn-secondary {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-description {
    font-size: 14px;
  }

  .phone-frame {
    width: min(100%, 250px);
  }

  .wallet-card {
    padding: 16px;
  }

  .room-number {
    font-size: 20px;
  }
}
.add-key-card .btn-primary {
  width: 100%;
  min-height: 56px;
  padding: 16px 28px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 40%, #2563eb 75%, #1d4ed8 100%);
  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.add-key-card .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 32px rgba(37, 99, 235, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: brightness(1.03);
}

.add-key-card .btn-primary:active {
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.add-key-card .btn-primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.16),
    0 12px 28px rgba(37, 99, 235, 0.28);
}

@media (max-width: 640px) {
  .add-key-card .btn-primary {
    min-height: 52px;
    font-size: 16px;
    border-radius: 14px;
  }
}
@media (max-width: 640px) {
  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    height: 60px;
  }

  .logo {
    min-width: 0;
  }

  .logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-links {
    display: none !important;
  }

  .nav > .btn-primary,
  .nav > .btn-secondary,
  .nav > a.btn-primary,
  .nav > a.btn-secondary {
    justify-self: end;
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 10px;
    box-shadow: none;
  }
}