/* Cyber-Anime Neumorphic Dark Theme (Draw Anime AR Web) */

:root {
  --bg-dark: #0C0D14;
  --bg-gradient-end: #161722;
  --card-bg: #1A1C29;
  --card-bg-inner: #12131D;
  --card-border: #2E3247;
  --accent-pink: #FF5C8D;
  --accent-pink-glow: rgba(255, 92, 141, 0.35);
  --accent-cyan: #38BDF8;
  --accent-green: #34D399;
  --accent-amber: #FBBF24;
  --text-main: #FFFFFF;
  --text-muted: #A0A5C0;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Starry Canvas Background */
#starry-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Header & Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(26, 28, 41, 0.8);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--card-border);
  border-radius: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #FF5C8D, #FF8906);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  color: white;
  background: var(--accent-pink);
  box-shadow: 0 4px 14px var(--accent-pink-glow);
}

/* Mac OS Window Card Container */
.window-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.kanji-tag {
  font-size: 0.75rem;
  color: var(--accent-pink);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Speech Bubble Pill */
.speech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-pink);
  color: white;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px var(--accent-pink-glow);
  margin-bottom: 16px;
}

/* Hero Showcase Grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #FF5C8D, #FF8906);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--accent-pink-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-pink-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Hero Anime Showcase Frame */
.hero-art-frame {
  background: #8E2A36;
  border-radius: 24px;
  padding: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(142, 42, 54, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-art-frame img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.feature-box {
  background: var(--card-bg-inner);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  transition: border-color 0.2s ease;
}

.feature-box:hover {
  border-color: var(--accent-pink);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature-icon.pink { background: rgba(255, 92, 141, 0.18); color: var(--accent-pink); }
.feature-icon.cyan { background: rgba(56, 189, 248, 0.18); color: var(--accent-cyan); }
.feature-icon.green { background: rgba(52, 211, 153, 0.18); color: var(--accent-green); }
.feature-icon.amber { background: rgba(251, 191, 36, 0.18); color: var(--accent-amber); }

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Template Gallery Preview Carousel */
.gallery-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-pink) transparent;
}

.gallery-card {
  min-width: 140px;
  height: 170px;
  background: #F8FAFC;
  border: 1.5px solid var(--accent-pink);
  border-radius: 18px;
  padding: 10px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-pink);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

/* Form Styling */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--card-bg-inner);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 18px;
  color: white;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 12px var(--accent-pink-glow);
}

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

/* Legal Content Text */
.legal-content h3 {
  color: var(--accent-pink);
  font-size: 1.25rem;
  margin: 20px 0 10px 0;
}

.legal-content p, .legal-content ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
}

/* Toast Modal */
.toast-modal {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--card-bg);
  border: 1.5px solid var(--accent-green);
  color: white;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-modal.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art-frame img {
    height: 240px;
  }
  .navbar {
    flex-direction: column;
    gap: 16px;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
}
