@import url("../fonts/fonts.css");

:root {
  --bg-deep: #0a0b0e;
  --bg-surface: rgba(20, 22, 28, 0.7);
  --bg-tertiary: #1a1c23;
  --accent: #00e5ff;
  --accent-glow: rgba(0, 229, 255, 0.2);
  --accent-magenta: #ff00ff;
  --magenta-glow: rgba(255, 0, 255, 0.2);
  --text-primary: #e0e2e8;
  --text-secondary: #8a8d98;
  --border-color: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(20px);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: "Space Grotesk", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(
      circle at 50% 50%,
      rgba(0, 229, 255, 0.04) 0%,
      transparent 60%
    ),
    url("../images/carbon-fibre.png");
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 10% 20%,
    rgba(0, 229, 255, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: -1;
}

.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 2.5rem;
  position: sticky;
  top: 2rem;
  z-index: 1000;
  background: rgba(18, 19, 24, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin-bottom: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 6rem 0;
  min-height: 80vh;
}

.hero-text h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -2px;
}

.hero-text h1 span {
  color: var(--accent);
  display: block;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 500px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link:hover {
  color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 0 20px var(--accent-glow);
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  color: var(--accent);
}

.mixer-panel {
  background: #1a1b20;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 820px;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px #0a0a0c,
    inset 0 0 30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform: perspective(1200px) rotateX(8deg);
  transition: transform 0.5s ease;
  border: 1px solid #000;
  clip-path: polygon(
    15px 0,
    calc(100% - 15px) 0,
    100% 15px,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    15px 100%,
    0 calc(100% - 15px),
    0 15px
  );
}

.mixer-panel:hover {
  transform: perspective(1200px) rotateX(1deg);
}

.hw-inner-bevel {
  padding: 25px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  position: relative;
  box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.7);
  height: 100%;
}

.hw-logo-section {
  text-align: right;
  padding-right: 20px;
  margin-bottom: 20px;
}

.hw-logo {
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}

.hw-logo span {
  color: var(--accent);
  font-size: 2.5rem;
  line-height: 0;
  vertical-align: middle;
  margin: 0 -2px;
  display: inline-block;
  transform: translateY(2px);
  text-shadow: 0 0 10px var(--accent);
}

.hw-layout {
  display: flex;
  gap: 15px;
}

.hw-section {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
}

.hw-etched-text {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #111216;
  padding: 0 10px;
  font-size: 0.6rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hw-mixer {
  flex: 1;
  display: flex;
  justify-content: space-between;
}

.hw-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.hw-scribble {
  background: var(--accent);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 3px 3px;
  width: 65px;
  height: 40px;
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.6),
    0 0 20px var(--accent-glow);
  border: 2px solid #111;
  border-radius: 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #111;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hw-scribble i {
  width: 16px;
  height: 16px;
  margin-top: -2px;
}

.hw-scribble small {
  font-size: 0.6rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hw-ch-num {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 0.5rem;
  opacity: 0.7;
}

.hw-fader-area {
  display: flex;
  height: 220px;
  gap: 12px;
  position: relative;
  margin-top: 35px;
  margin-bottom: 15px;
}

.hw-leds {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  padding: 5px 0;
  width: 8px;
}

.hw-leds span {
  width: 100%;
  height: 5px;
  background: #111;
  border-radius: 1px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
}

.hw-leds span.active {
  background: var(--accent);
  box-shadow:
    0 0 6px var(--accent),
    inset 0 0 2px #fff;
}

.hw-leds span:nth-child(-n + 5).active {
  background: var(--accent-magenta);
  box-shadow:
    0 0 6px var(--accent-magenta),
    inset 0 0 2px #fff;
}
.hw-leds span:nth-child(n + 6):nth-child(-n + 10).active {
  background: #0055ff;
  box-shadow:
    0 0 6px #0055ff,
    inset 0 0 2px #fff;
}

.hw-fader-track {
  width: 6px;
  background: #050505;
  border-radius: 3px;
  position: relative;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

.hw-fader-cap {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  width: 36px;
  height: 60px;

  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 10%,
      transparent 90%,
      rgba(0, 0, 0, 0.4) 100%
    ),
    linear-gradient(
      to bottom,
      #e0e0e0 0%,
      #ffffff 10%,
      #a0a0a0 30%,
      #606060 40%,
      #111 48%,
      #111 52%,
      #606060 60%,
      #909090 70%,
      #ffffff 90%,
      #c0c0c0 100%
    );
  border-radius: 4px;
  border: 1px solid #333;
  box-shadow:
    -5px 10px 15px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 #fff;
  cursor: grab;
  z-index: 10;
}

.hw-fader-line {
  position: absolute;
  top: 50%;
  left: 4px;
  width: calc(100% - 8px);
  height: 2px;
  transform: translateY(-50%);
  background: #fff;
  box-shadow: 0 0 6px #fff;
  border-radius: 1px;
}

.hw-btn {
  background: #111;
  border: 2px solid #333;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: all 0.1s;
  font-size: 0.7rem;
}

.hw-btn:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.hw-active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow:
    0 0 15px var(--accent-glow),
    inset 0 0 15px rgba(0, 229, 255, 0.2);
  text-shadow: 0 0 5px var(--accent);
}

.hw-btn-mute.hw-active,
.hw-btn-preset:nth-child(2).hw-active,
.hw-btn-square:nth-child(1).hw-active,
.hw-btn-clear.hw-active {
  border-color: var(--accent-magenta);
  color: var(--text-primary);
  box-shadow:
    0 0 15px var(--magenta-glow),
    inset 0 0 15px rgba(255, 0, 255, 0.3);
  text-shadow: 0 0 5px var(--accent-magenta);
}

.hw-btn-mute {
  width: 65px;
  height: 35px;
}
.hw-btn-mute i {
  width: 16px;
  height: 16px;
  transition: color 0.2s;
}
.hw-btn-mute.hw-active i {
  color: #fff;
}

.hw-presets-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0 10px;
}

.hw-btn-preset {
  width: 45px;
  height: 24px;
  font-weight: 800;
  border-radius: 12px;
}

.hw-right-section {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 320px;
}

.hw-fx {
  display: flex;
  gap: 15px;
}

.hw-knobs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  flex: 1;
  padding: 10px;
}

.hw-knob-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.hw-knob-wrapper small {
  font-size: 0.65rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
}

.hw-knob-ring {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 65px;
  height: 65px;
  border-radius: 50%;

  background: conic-gradient(
    from 225deg,
    var(--accent) 0deg,
    var(--accent) 270deg,
    transparent 270deg
  );
  -webkit-mask: repeating-conic-gradient(
    from 0deg,
    #000 0deg,
    #000 10deg,
    transparent 10deg,
    transparent 15deg
  );
  mask: repeating-conic-gradient(
    from 0deg,
    #000 0deg,
    #000 10deg,
    transparent 10deg,
    transparent 15deg
  );
  opacity: 0.6;
  z-index: 1;
  filter: drop-shadow(0 0 2px var(--accent));
}

.hw-knob {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #444 0%, #111 100%);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.8),
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    inset 0 -2px 5px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
  cursor: pointer;
  margin-top: 5px;
}

.hw-knob::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  border-radius: 50%;
  background: linear-gradient(to bottom, #222, #333);
}

.hw-knob-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 12px;
  background: var(--accent);
  transform-origin: bottom center;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent);
  z-index: 3;
  pointer-events: none;
}

.hw-fx-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.hw-btn-wide {
  width: 100px;
  height: 35px;
}

.hw-sampler {
  display: flex;
  gap: 15px;
  padding-bottom: 25px;
  align-items: center;
}

.hw-sampler-banks {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
}

.hw-btn-square {
  width: 45px;
  height: 40px;
  font-weight: bold;
}

.hw-sampler-pads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

.hw-pad-1 {
  grid-column: 1 / 3;
}
.hw-pad-2 {
  grid-column: 3;
}
.hw-pad-3 {
  grid-column: 1;
  grid-row: 2 / 4;
}
.hw-btn-clear {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.65rem;
  color: #fff;
}
.hw-pad-5 {
  grid-column: 3;
  grid-row: 2 / 4;
}
.hw-pad-6 {
  grid-column: 2;
  grid-row: 3;
}

.hw-pad-btn,
.hw-btn-clear {
  width: 100%;
  height: 100%;
  min-height: 35px;
}

.hw-utility-buttons {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  height: 100%;
}

.hw-btn-cough i {
  width: 18px;
  height: 18px;
}

.addons-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section {
  padding: 8rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: 4rem;
  font-size: 1.1rem;
  max-width: 600px;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.addon-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.addon-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.download-label {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(0, 251, 83, 0.05);
}

.dl-btn {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 800;
  color: #000;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px var(--accent-glow);
}

.toggle-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.toggle-btn.active {
  background: var(--accent);
  color: #000;
}

.addon-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.addon-info h4 {
  font-size: 0.9rem;
}

.addon-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mixer-panel,
.panel-card {
  animation: fadeIn 0.8s ease-out forwards;
}

.ios-glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.ios-glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(0, 229, 255, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.addon-card.ios-glass-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(0, 0, 0, 0.2)
  );
}

.addon-card.ios-glass-card .addon-info h4 {
  font-size: 1.1rem;
  color: #fff;
}
