/* ============================================================
   phanell.com — styles
   ============================================================ */

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

:root {
  --bg:          #08080f;
  --bg-card:     #0f0f1a;
  --bg-card-alt: #12121f;
  --border:      rgba(255,255,255,0.07);
  --border-glow: rgba(139, 92, 246, 0.3);
  --text:        #e8e8f0;
  --text-muted:  #8888aa;
  --accent-1:    #8b5cf6;   /* purple */
  --accent-2:    #f59e0b;   /* amber  */
  --accent-3:    #06b6d4;   /* cyan   */
  --radius:      16px;
  --radius-sm:   10px;
  --font:        'Inter', system-ui, sans-serif;
  --mono:        'JetBrains Mono', monospace;
  --nav-h:       64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 3px; }

/* ── Utilities ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-1);
  display: block;
  margin-bottom: 12px;
}

.section-header {
  margin-bottom: 52px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.section-title-sm {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.section-desc {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), #6d28d9);
  color: #fff;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(139, 92, 246, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

/* Tags */
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.tag-music  { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.25); }
.tag-ios    { background: rgba(6, 182, 212, 0.12);  color: #67e8f9; border: 1px solid rgba(6,182,212,0.2); }
.tag-swift  { background: rgba(245,158,11, 0.12);   color: #fcd34d; border: 1px solid rgba(245,158,11,0.2); }

.badge-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8, 8, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--accent-1); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.nav-cta {
  color: #c4b5fd;
  border: 1px solid rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.08);
}
.nav-links a.nav-cta:hover {
  background: rgba(139,92,246,0.18);
  border-color: rgba(139,92,246,0.5);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.6), transparent 70%);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(245,158,11,0.4), transparent 70%);
  bottom: 50px; left: -80px;
  animation-delay: -3s;
}
.hero-orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(6,182,212,0.35), transparent 70%);
  top: 40%; left: 40%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  max-width: 700px;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 100px;
  font-size: 13px;
  color: #c4b5fd;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent-1);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}

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

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-hint span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent-1));
  margin: 0 auto;
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ── Sections ── */
.section {
  padding: 100px 0;
}
.section-dark {
  background: linear-gradient(180deg, #0a0a12, #08080f);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Projects grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(139,92,246,0.15);
}
.project-card:hover .project-card-glow {
  opacity: 1;
}

.project-card-featured h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.project-card-featured p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.project-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(139,92,246,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-icon img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.project-card-footer {
  margin-top: auto;
}
.project-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-1);
}

/* Placeholder card */
.project-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 200px;
  border-style: dashed;
  opacity: 0.45;
}
.placeholder-icon {
  width: 40px; height: 40px;
  color: var(--text-muted);
}
.placeholder-icon svg { width: 100%; height: 100%; }
.project-card-placeholder p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── App Hero ── */
.app-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.app-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 28px;
}

.app-hero-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-icon-wrapper {
  position: relative;
  display: inline-block;
}
.app-icon-wrapper img {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  object-fit: cover;
  box-shadow: 0 0 60px rgba(139,92,246,0.4), 0 20px 40px rgba(0,0,0,0.6);
  position: relative;
  z-index: 1;
}
.app-icon-ring {
  position: absolute;
  inset: -16px;
  border-radius: 56px;
  border: 1px solid rgba(139,92,246,0.25);
  animation: ringPulse 3s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.04); opacity: 1; }
}

/* ── How it works ── */
.how-it-works {
  margin-bottom: 96px;
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-1);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.step-arrow {
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 44px;
}

/* ── Modes grid ── */
.features-section {
  margin-bottom: 96px;
}
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  transition: all 0.2s;
}
.mode-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: var(--bg-card-alt);
}
.mode-card-highlight {
  border-color: rgba(139,92,246,0.2);
  background: rgba(139,92,246,0.04);
}
.mode-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-1);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}
.mode-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.mode-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Feature highlights ── */
.feature-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 96px;
}

.feature-highlight {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}
.feature-highlight:hover { border-color: rgba(255,255,255,0.12); }

.fh-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fh-icon svg { width: 22px; height: 22px; }
.fh-icon-chord { background: rgba(139,92,246,0.15); color: #c4b5fd; }
.fh-icon-midi  { background: rgba(6,182,212,0.12);  color: #67e8f9; }
.fh-icon-au    { background: rgba(245,158,11,0.12);  color: #fcd34d; }
.fh-icon-live  { background: rgba(16,185,129,0.12);  color: #6ee7b7; }

.fh-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.fh-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Tech stack ── */
.tech-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s;
}
.tech-item:hover { border-color: rgba(139,92,246,0.25); }
.tech-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-1);
}
.tech-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Why I Built ── */
.why-section {
  margin-top: 96px;
  padding-top: 80px;
  border-top: 1px solid var(--border);
}

.why-body {
  max-width: 660px;
}

.why-lead {
  font-size: 21px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 28px;
}

.why-body p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 18px;
}

.why-body strong {
  color: var(--text);
  font-weight: 600;
}

.why-body .why-highlight {
  border-left: 2px solid var(--accent-1);
  padding: 4px 0 4px 24px;
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.why-body .why-highlight span {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.why-body .why-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}

.why-body .why-pills li {
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
  color: #c4b5fd;
}

.why-body .why-closing {
  margin-top: 52px;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(139,92,246,0.07) 0%, rgba(245,158,11,0.04) 100%);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius);
  font-size: 17px;
  color: var(--text);
  line-height: 1.85;
}

.why-body .why-closing strong {
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-body .why-closing .why-tagline {
  display: block;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Footer ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .hero-title { font-size: 42px; }

  .app-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .app-hero-icon { order: -1; }
  .app-icon-wrapper img { width: 140px; height: 140px; }
  .app-icon-ring { inset: -12px; }

  .steps {
    flex-direction: column;
  }
  .step-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
    margin-top: 0;
  }

  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-highlights { grid-template-columns: 1fr; }
  .tech-list { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .modes-grid { grid-template-columns: 1fr; }
  .tech-list { grid-template-columns: 1fr; }
}
