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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 10px;
}

.business-card {
  width: 402px;
  max-height: 100vh;
  background: linear-gradient(180deg, #e8eef4 0%, #ffffff 36.8%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  padding-bottom: 70px;
}

/* ── Header Section ────────────────────────────── */
.header {
  padding: 20px 24px 24px;
  text-align: left;
  background: linear-gradient(135deg, #d8e4f0 0%, #e8eef4 100%);
  position: relative;
  border-radius: 20px 20px 0 0;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at top left,
    rgba(174, 203, 232, 0.4) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.logo {
  width: 44px;
  height: 44px;
  position: relative;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-name {
  font-size: 18px;
  font-weight: 700;
  color: #2e5c9a;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

/* ── Profile Section ───────────────────────────── */
.profile-section {
  padding: 28px 24px 24px;
  text-align: center;
}

.name {
  font-family: "Crimson Text", serif;
  font-size: 38px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.title {
  font-size: 15px;
  font-weight: 500;
  color: #666666;
  letter-spacing: 0.2px;
}

/* ── Contact Section ───────────────────────────── */
.contact-section {
  padding: 20px 24px 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

a.contact-item:hover {
  opacity: 0.7;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.icon-wrapper {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Contact icon images */
.icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.contact-text {
  flex: 1;
  padding-top: 8px;
}

.contact-text p {
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.contact-text .address {
  line-height: 1.35;
}

/* ── Quick Action Buttons ──────────────────────── */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 6px 24px 0;
  margin-bottom: 6px;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.action-btn:hover {
  border-color: #2e5c9a;
  background: #f0f5fb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn svg {
  width: 20px;
  height: 20px;
}

/* ── Save Contact Button ───────────────────────── */
.save-contact-btn {
  display: block;
  text-align: center;
  margin: 16px 24px 20px;
  padding: 12px 20px;
  background: #2e5c9a;
  color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(46, 92, 154, 0.3);
}

.save-contact-btn:hover {
  background: #1c3d6b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46, 92, 154, 0.4);
}

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

/* ── Footer Section ────────────────────────────── */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 24px 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(245, 245, 245, 0.5) 100%
  );
}

.footer-content {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-text {
  text-align: right;
}

.footer-text p {
  font-size: 11px;
  font-weight: 500;
  color: #666666;
  line-height: 1.4;
  letter-spacing: 0.1px;
}

.kedco-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 450px) {
  .business-card {
    width: 100%;
    max-width: 402px;
  }

  .name {
    font-size: 32px;
  }
}

/* ── Fit card to viewport height ───────────────── */
@media (max-height: 700px) {
  .business-card {
    padding-bottom: 60px;
  }
  .header {
    padding: 14px 20px 16px;
  }
  .logo {
    width: 36px;
    height: 36px;
  }
  .company-name {
    font-size: 16px;
  }
  .profile-section {
    padding: 18px 20px 16px;
  }
  .name {
    font-size: 30px;
  }
  .title {
    font-size: 13px;
  }
  .contact-section {
    padding: 12px 20px 10px;
  }
  .contact-item {
    margin-bottom: 10px;
    gap: 10px;
  }
  .icon-wrapper {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  .icon-img {
    width: 16px;
    height: 16px;
  }
  .contact-text {
    padding-top: 5px;
  }
  .contact-text p {
    font-size: 12px;
    line-height: 1.3;
  }
  .action-buttons {
    padding: 4px 20px 0;
    gap: 10px;
  }
  .action-btn {
    width: 34px;
    height: 34px;
  }
  .save-contact-btn {
    margin: 10px 20px 14px;
    padding: 10px 16px;
    font-size: 13px;
  }
  .footer {
    padding: 8px 20px 12px;
  }
  .kedco-logo-img {
    width: 32px;
    height: 32px;
  }
}

/* ── Landing Page Styles ───────────────────────── */
.landing-page {
  text-align: center;
  max-width: 800px;
  padding: 40px 20px;
}

.landing-page h1 {
  font-family: "Crimson Text", serif;
  font-size: 42px;
  color: #2e5c9a;
  margin-bottom: 10px;
}

.landing-page .subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 50px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
}

.card-preview {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  border: 1px solid #eee;
}

.card-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: #2e5c9a;
}

.card-preview .preview-name {
  font-family: "Crimson Text", serif;
  font-size: 26px;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.card-preview .preview-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
}

.card-preview .preview-email {
  font-size: 13px;
  color: #2e5c9a;
}
