:root {
  --primary: #2c3e50;
  --secondary: #007bff;
  --secondary-dark: #0056b3;
  --light: #f0f4f8;
  --text: #555;
  --card-bg: #fff;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--light);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background: var(--primary);
  color: white;
  padding: 25px;
  text-align: center;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  background: white;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.header-text {
  text-align: left;
}

header h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.1;
}

header p.tagline {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: 0.75;
  letter-spacing: 0.4px;
}

/* Screenshots Section */
.screenshots-section {
  background: linear-gradient(135deg, #e8f0f7 0%, #f0f4f8 60%, #e8f0f7 100%);
  padding: 50px 0 40px;
  text-align: center;
  overflow: hidden;
}

.screenshots-section h2 {
  color: var(--primary);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 35px;
  letter-spacing: 0.5px;
}

.screenshots-track-wrapper {
  overflow: hidden;
  position: relative;
}

.screenshots-track-wrapper::before,
.screenshots-track-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.screenshots-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #e8f0f7, transparent);
}

.screenshots-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #e8f0f7, transparent);
}

.screenshots-track {
  display: flex;
  gap: 22px;
  padding: 10px 80px 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshots-track::-webkit-scrollbar {
  display: none;
}

.phone-frame {
  flex: 0 0 auto;
  width: 160px;
  background: #111;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), inset 0 0 0 2px #333;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.phone-frame:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6), inset 0 0 0 2px #555;
}

.phone-frame::before {
  content: "";
  display: block;
  width: 40px;
  height: 5px;
  background: #333;
  border-radius: 3px;
  margin: 0 auto 8px;
}

.phone-frame img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.screenshots-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.screenshots-nav button {
  background: var(--primary);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshots-nav button:hover {
  background: var(--secondary);
}

/* About Section */
.about {
  background: var(--primary);
  padding: 50px 20px;
  text-align: center;
}

.about-inner {
  max-width: 800px;
  margin: auto;
}

.about h2 {
  font-size: 28px;
  color: white;
  margin-bottom: 15px;
}

.about p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

/* Download Section */
.download-section {
  background: var(--primary);
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  padding: 50px 20px;
}

.download-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px 20px;
  text-align: center;
  width: 260px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.download-card img {
  height: 60px;
  margin-bottom: 18px;
}

.download-card p {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 500;
}

.download-card a {
  display: inline-block;
  padding: 10px 18px;
  background: var(--secondary);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.25s ease;
}

.download-card a:hover {
  background: var(--secondary-dark);
}

/* CTA Section */
.cta-section {
  background: var(--light);
  text-align: center;
  padding: 60px 20px;
}

.cta-section h2 {
  font-size: 26px;
  color: var(--primary);
  margin: 0 0 12px;
}

.cta-section p {
  font-size: 16px;
  color: var(--text);
  margin: 0 auto 28px;
  max-width: 560px;
}

.btn-request {
  display: inline-block;
  padding: 14px 32px;
  background: var(--secondary);
  color: white;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-request:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: white;
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.25s ease;
}

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

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: #333; }

.modal h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--primary);
}

.modal .modal-subtitle {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 24px;
}

.form-row {
  display: flex;
  gap: 14px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 12px;
  border: 1px solid #d0d8e4;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--secondary);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
  margin-top: 6px;
}

.btn-submit:hover { background: var(--secondary-dark); }
.btn-submit:disabled { background: #aaa; cursor: not-allowed; }

.form-msg {
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
  min-height: 18px;
}

.form-msg.success { color: #28a745; }
.form-msg.error   { color: #dc3545; }

/* Footer */
footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 18px;
  margin-top: auto;
  font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .phone-frame { width: 130px; }
  .screenshots-section h2 { font-size: 20px; }
  .form-row { flex-direction: column; gap: 0; }
  .modal { padding: 28px 20px; }
  .about h2 { font-size: 24px; }
  .about p { font-size: 16px; }
  .download-card { width: 100%; max-width: 320px; }
}
