@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --bg: #0b0c10;
  --panel: #111218;
  --fg: #e8ecf1;
  --muted: #a9b3c1;
  --accent: #1dd3b0;  /* Teal from logo */
  --accent-2: #60a5fa;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: #0b0c10;
  color: var(--fg);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  line-height: 1.2;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 24px; }
.nav { 
  display: flex; 
  gap: 16px; 
  align-items: center; 
  justify-content: space-between; 
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav a.brand { 
  display: flex;
  align-items: center;
  font-family: 'Comfortaa', cursive;
  font-weight: 600;
  font-size: 24px;
  color: var(--fg);
  gap: 10px;
  text-decoration: none;
}
.nav a.brand:hover {
  text-decoration: none;
}
.nav .logo-img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}
.nav .brand-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
}
.nav .links a { 
  color: var(--muted); 
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav .links a:hover { color: var(--accent); }
.hero { padding: 48px 0; }
.hero h1 { 
  font-size: 48px; 
  margin: 0 0 20px;
  background: linear-gradient(135deg, var(--fg) 0%, var(--accent) 50%, var(--fg) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero p { 
  color: var(--muted); 
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
}
.grid { 
  display: grid; 
  gap: 20px; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  margin-top: 40px; 
  align-items: stretch;
}

/* Diamond layout mobile responsiveness */
/* Mobile App Banner */
.mobile-banner {
  display: none;
  background: linear-gradient(135deg, rgba(29, 211, 176, 0.12) 0%, rgba(96, 165, 250, 0.08) 100%);
  border: 1px solid rgba(29, 211, 176, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  align-items: center;
  gap: 12px;
  position: relative;
}
.mobile-banner-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.mobile-banner-text {
  flex: 1;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.5;
}
.mobile-banner-text strong {
  color: var(--accent);
}
.mobile-banner-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.mobile-banner-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  /* Show mobile banner on mobile devices */
  .mobile-banner {
    display: flex;
  }
  
  /* Nav mobile adjustments */
  .nav {
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 12px;
    justify-content: space-between;
  }
  .nav a.brand {
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
  }
  .nav .logo-img {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    min-width: 28px;
  }
  .nav .brand-text {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav .links {
    gap: 8px !important;
    flex-shrink: 0;
  }
  .nav .links a:not(.btn) {
    display: none;
  }
  .nav .links .btn {
    padding: 8px 14px !important;
    font-size: 13px !important;
    margin-left: 0 !important;
  }
  
  /* Wrap container for very small screens */
  .wrap {
    padding: 16px;
  }
  
  .grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Stack diamond layout vertically on mobile */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  /* Hide connector lines on mobile for cleaner look */
  div[style*="linear-gradient"] {
    display: none !important;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  /* Mobile hero definition spacing fixes */
  .hero > div:first-child {
    margin-top: 16px !important;
    margin-bottom: 32px !important;
    padding: 24px 20px !important;
    border-left-width: 3px !important;
  }
  
  /* Add breathing room between CTA and cards on mobile since separator is hidden */
  .hero > div:nth-child(3) {
    margin-bottom: 48px !important;
  }
  
  /* Scale down definition typography on mobile */
  .hero > div:first-child strong {
    font-size: 24px !important;
  }
  
  .hero > div:first-child em {
    font-size: 16px !important;
  }
  
  .hero > div:first-child span:last-child {
    font-size: 20px !important;
  }
  
  /* Tighten value prop spacing */
  .hero > div:nth-child(2) {
    margin-bottom: 32px !important;
  }
  
  .hero > div:nth-child(2) p:first-child {
    font-size: 17px !important;
  }
  
  .hero > div:nth-child(2) p:last-child {
    font-size: 15px !important;
    margin-top: 12px !important;
  }
  
  /* Card spacing on mobile */
  .card {
    padding: 24px 20px !important;
    margin-bottom: 16px !important;
  }
  
  /* How it works section tighter on mobile */
  section[style*="padding: 32px 0"] {
    padding: 24px 0 !important;
  }
}
.card { 
  background: rgba(255,255,255,0.03); 
  border: 1px solid rgba(255,255,255,0.08); 
  border-radius: 16px; 
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.card:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 211, 176, 0.3);
}
.card h3 { 
  margin: 0 0 12px; 
  font-size: 20px;
  color: var(--fg);
}
.card p { 
  color: var(--muted);
  line-height: 1.6;
}
.card a {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-weight: 500;
}
.footer { 
  color: var(--muted); 
  border-top: 1px solid rgba(255,255,255,0.08); 
  margin-top: 60px; 
  padding-top: 20px; 
  font-size: 14px;
  text-align: center;
}
.form { 
  display: grid; 
  gap: 16px; 
  max-width: 420px;
  margin-top: 24px;
}
input[type="email"] { 
  width: 100%; 
  padding: 14px 16px; 
  border-radius: 10px; 
  border: 1px solid rgba(255,255,255,0.15); 
  background: #0e1016; 
  color: var(--fg);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  transition: border-color 0.2s;
}
input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 211, 176, 0.1);
}
button { 
  padding: 14px 20px; 
  border-radius: 10px; 
  border: 0; 
  background: var(--accent); 
  color: #0b0c10; 
  font-weight: 600; 
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
button:hover { 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 211, 176, 0.3);
}
.muted { color: var(--muted); }
pre.code { 
  background: #0e1016; 
  padding: 16px; 
  border-radius: 12px; 
  overflow: auto; 
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.btn {
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: var(--accent);
  color: #0b0c10;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 211, 176, 0.3);
  text-decoration: none;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  text-decoration: none;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}
.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-content {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}
.modal h2 {
  margin: 0 0 12px;
  font-size: 28px;
  color: var(--fg);
}
.modal form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.modal textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0e1016;
  color: var(--fg);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
}
.modal textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 211, 176, 0.1);
}