@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);
}
.nav .logo-ex {
  color: #e8ecf1;
  opacity: 0.95;
}
.nav .logo-fn {
  color: #1dd3b0;
  letter-spacing: -0.05em;
}
.nav .brand-text {
  margin-left: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}
.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;
}
.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);
}