@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --resend-bg: #000000;
  --resend-text: #ededed;
  --resend-muted: #888888;
  --resend-border: rgba(255, 255, 255, 0.1);
  --resend-border-glow: rgba(255, 255, 255, 0.2);
  --resend-card-bg: rgba(255, 255, 255, 0.02);
  --resend-card-hover: rgba(255, 255, 255, 0.04);
}

body {
  background-color: var(--resend-bg);
  color: var(--resend-text);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Nav */
.resend-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--resend-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 64px;
}

.resend-nav-links {
  display: none;
}

@media (min-width: 768px) {
  .resend-nav-links {
    display: flex;
    gap: 2rem;
  }
}

.resend-nav-links a {
  color: var(--resend-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.resend-nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.resend-btn-primary {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.resend-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.resend-btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 1px solid var(--resend-border);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.resend-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--resend-border-glow);
}

/* Hero Section */
.resend-hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
}

.resend-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.resend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--resend-border);
  color: var(--resend-text);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  text-decoration: none;
  transition: border-color 0.2s;
}

.resend-badge:hover {
  border-color: var(--resend-border-glow);
}

.resend-headline {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(to bottom, #fff, #a0a0a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.resend-subtitle {
  font-size: 1.25rem;
  color: var(--resend-muted);
  max-width: 600px;
  margin: 0 0 3rem;
  line-height: 1.6;
}

/* Terminal / Command Palette */
.resend-terminal-wrapper {
  margin-top: 4rem;
  width: 100%;
  max-width: 720px;
  border-radius: 12px;
  border: 1px solid var(--resend-border);
  background: #050505;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.05) inset;
  overflow: hidden;
  position: relative;
}

.resend-terminal-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.resend-terminal-header {
  height: 2.5rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--resend-border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
}

.resend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}
.resend-dot.red { background: #ff5f56; }
.resend-dot.yellow { background: #ffbd2e; }
.resend-dot.green { background: #27c93f; }

.resend-terminal-body {
  padding: 2rem;
  font-family: monospace;
  font-size: 0.875rem;
  text-align: left;
  line-height: 1.6;
}

/* Bento Grid */
.resend-bento-section {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.resend-section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 3rem;
  text-align: center;
}

.resend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.resend-card {
  background: var(--resend-card-bg);
  border: 1px solid var(--resend-border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.resend-card:hover {
  background: var(--resend-card-hover);
  border-color: var(--resend-border-glow);
}

.resend-card h3 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  font-weight: 600;
}

.resend-card p {
  color: var(--resend-muted);
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.resend-footer {
  border-top: 1px solid var(--resend-border);
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.resend-footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.resend-footer-col h4 {
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
  color: var(--resend-text);
}

.resend-footer-col a {
  display: block;
  color: var(--resend-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.resend-footer-col a:hover {
  color: var(--resend-text);
}

/* Input matching the terminal */
.resend-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: monospace;
  font-size: 1rem;
  width: 100%;
  outline: none;
}

/* Syntax Highlighting */
.syntax-keyword { color: #ff7b72; }
.syntax-string { color: #a5d6ff; }
.syntax-function { color: #d2a8ff; }
.syntax-comment { color: #8b949e; }
