@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=SF+Pro+Display:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #0d0e12;
  --panel-bg: rgba(22, 23, 29, 0.7);
  --panel-border: rgba(255, 255, 255, 0.08);
  --glow-color: rgba(0, 242, 254, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #9499a6;
  --accent-color: #00f2fe;
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --appstore-blue: #0071e3;
  --appstore-gradient: linear-gradient(180deg, #2997ff 0%, #0071e3 100%);
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow accents */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(79, 172, 254, 0.02) 70%, transparent 100%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.glow-top {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-mid-left {
  top: 35%;
  left: -100px;
}

.glow-mid-right {
  top: 60%;
  right: -100px;
}

.glow-bottom {
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
}

/* Glassmorphism & macOS design elements */
.mac-window {
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 242, 254, 0.05);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.mac-titlebar {
  background: rgba(30, 31, 38, 0.4);
  border-bottom: 1px solid var(--panel-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
}

.traffic-lights {
  display: flex;
  gap: 8px;
}

.traffic-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.traffic-red {
  background-color: #ff5f56;
}

.traffic-yellow {
  background-color: #ffbd2e;
}

.traffic-green {
  background-color: #27c93f;
}

.mac-title-text {
  flex-grow: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: 52px;
  /* balance traffic lights width */
}

/* Navbar */
.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1320px;
  background: rgba(18, 19, 24, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 8px 24px;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-nav:hover {
  border-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 10px 35px rgba(0, 242, 254, 0.08);
}

.navbar-brand img {
  height: 40px;
  margin-right: 8px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 14px;
}

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

/* Polished Store Button */
.btn-appstore {
  background: rgba(30, 31, 38, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 9px;
  height: 45px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 190px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-appstore::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(0, 242, 254, 0) 0%,
      rgba(0, 242, 254, 0.12) 50%,
      rgba(0, 242, 254, 0) 100%);
  transform: skewX(-25deg);
  transition: 0.75s;
}

.btn-appstore:hover::before {
  left: 125%;
}

.btn-appstore:hover {
  background: rgba(35, 36, 44, 0.85);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.15), 0 0 12px rgba(0, 242, 254, 0.2);
  border-color: rgba(0, 242, 254, 0.45);
  color: #fff;
}

.btn-appstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.btn-appstore-sub {
  font-size: 8px;
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.btn-appstore-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.btn-cta-large {
  height: 58px;
  padding: 0 32px;
  border-radius: 12px;
  min-width: 240px;
}

.btn-cta-large .btn-appstore-sub {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}

.btn-cta-large .btn-appstore-title {
  font-size: 19px;
}

/* Hero Section */
.hero-section {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
  text-align: center;
}

.headline-glow {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #a2a8b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.sub-header {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}

/* Interactive Canvas Container */
.hero-canvas-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero-image {
  max-width: 580px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  display: block;
  margin: 0 auto;
}

.canvas-wrapper {
  background: #ffffff;
  position: relative;
  aspect-ratio: 4/3;
  width: 100%;
}

.drawing-canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
  background: #ffffff;
  display: block;
}

.canvas-instructions {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  pointer-events: none;
  backdrop-filter: blur(10px);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.canvas-wrapper:hover .canvas-instructions {
  opacity: 0;
}

/* Expanded Core Workflow */
.workflow-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.workflow-steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 960px;
  margin: 0 auto;
  gap: 40px;
}

.workflow-step {
  flex: 1;
  position: relative;
  text-align: center;
}

.workflow-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 30px 20px;
  transition: all 0.3s ease;
  height: 100%;
}

.workflow-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-4px);
}

.workflow-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: var(--accent-color);
  font-size: 24px;
}

.workflow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 40px;
  /* Align with the vertical center of the icon box */
  right: -30px;
  color: var(--text-secondary);
  font-size: 28px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .workflow-steps-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .workflow-step {
    width: 100%;
    max-width: 320px;
  }

  .workflow-step:not(:last-child)::after {
    content: "↓";
    top: auto;
    bottom: -25px;
    right: 50%;
    transform: translateX(50%);
  }
}

/* Features Detailed Call-outs */
.features-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

/* macOS Sidebar Mockup */
.macos-sidebar {
  width: 100%;
  max-width: 280px;
  background: #1e1e24;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  margin: 0 auto;
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  color: #666a75;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.sidebar-tool-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.sidebar-tool-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: #a2a8b6;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

.sidebar-tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-tool-btn.active {
  background: #0071e3;
  color: #fff;
  border-color: #0088ff;
  box-shadow: 0 0 10px rgba(0, 113, 227, 0.5);
}

.slider-container {
  margin-bottom: 16px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #a2a8b6;
  margin-bottom: 4px;
}

.mac-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #3a3a42;
  outline: none;
}

.mac-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.sidebar-zoom {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.zoom-btn {
  background: none;
  border: none;
  color: #a2a8b6;
  cursor: pointer;
  padding: 0 4px;
}

.zoom-btn:hover {
  color: #fff;
}

/* Callout Cards & Pointer Connections */
.callout-card {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-color);
  padding: 12px 18px;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s;
}

.callout-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #4facfe;
  transform: translateX(4px);
}

.callout-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.callout-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* Breakdown Grid Elements (Right Side) */
.right-mockup-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

/* Color Wheel Panel */
.color-wheel-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.color-wheel-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  cursor: crosshair;
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
}

.wheel-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.palette-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex-grow: 1;
}

.swatch {
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.1s;
}

.swatch:hover {
  transform: scale(1.15);
}

/* Share Mockup */
.share-menu-mockup {
  background: rgba(30, 31, 38, 0.95);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
}

.share-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.share-item:hover {
  background: #0071e3;
  color: #fff;
}

.share-item i {
  font-size: 14px;
}

/* Final CTA Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.app-icon-large {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #1e2029 0%, #0d0e12 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 254, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-icon-large img {
  width: 80px;
  height: 80px;
}

.cta-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.btn-cta-large {
  padding: 16px 40px;
  font-size: 18px;
  border-radius: 12px;
}

/* Footer styling */
.simple-footer {
  border-top: 1px solid var(--panel-border);
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* Feature tags and placeholders */
.feature-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  text-transform: uppercase;
}

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.3s ease;
  min-height: 280px;
}

.screenshot-placeholder:hover {
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.05);
}

.placeholder-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.placeholder-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.hero-placeholder {
  max-width: 900px !important;
  min-height: 480px;
  aspect-ratio: 16 / 10;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .hero-section {
    padding-top: 120px;
    padding-bottom: 50px;
  }

  .headline-glow {
    font-size: 2.2rem;
  }

  .sub-header {
    font-size: 1.1rem;
    padding: 0 15px;
  }

  /* Reset placeholder heights on mobile to prevent overflow scrollbars */
  .screenshot-placeholder {
    min-height: 200px;
    aspect-ratio: 16 / 10;
    width: 100%;
  }

  .hero-placeholder {
    min-height: 250px;
    aspect-ratio: auto;
    width: 100% !important;
  }
}

@media (max-width: 576px) {

  /* Scale down floating nav menu bar elements */
  .floating-nav {
    width: 95%;
    padding: 6px 12px;
    top: 10px;
  }

  .navbar-brand {
    font-size: 15px;
  }

  .navbar-brand img {
    height: 24px;
  }

  .btn-appstore {
    min-width: 135px;
    height: 34px;
    padding: 0 10px;
    gap: 6px;
    border-radius: 6px;
  }

  .btn-appstore-sub {
    font-size: 6.5px;
    letter-spacing: 0.04em;
    margin-bottom: 1px;
  }

  .btn-appstore-title {
    font-size: 11.5px;
  }

  .navbar-collapse {
    margin-top: 8px;
    background: rgba(18, 19, 24, 0.95);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link {
    padding: 8px 0;
    text-align: center;
  }

  .navbar-collapse .btn-appstore {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
  }

  /* Final CTA button size scale down */
  .btn-cta-large {
    height: 50px;
    min-width: 200px;
    padding: 0 20px;
  }

  .btn-cta-large .btn-appstore-title {
    font-size: 16px;
  }

  .btn-cta-large .btn-appstore-sub {
    font-size: 8.5px;
  }
}

/* Legal Documents Layout (Privacy & Terms) */
.legal-container {
  max-width: 800px;
  margin: 140px auto 80px auto;
  background: rgba(30, 31, 38, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.legal-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}

.legal-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-top: 32px;
  margin-bottom: 16px;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.02rem;
}

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

.legal-content li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .legal-container {
    margin: 100px 15px 60px 15px;
    padding: 24px;
  }

  .legal-title {
    font-size: 1.8rem;
  }
}

.hero-image-mockup {
  max-width: 900px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.65));
  transition: all 0.3s ease;
}

.hero-image-mockup:hover {
  filter: drop-shadow(0 30px 75px rgba(0, 242, 254, 0.15));
}

.feature-screenshot-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  display: inline-block;
  max-width: 100%;
  transition: all 0.3s ease;
}

.feature-screenshot-container:hover {
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 30px 70px rgba(0, 242, 254, 0.08);
  transform: translateY(-2px);
}

.feature-screenshot {
  border-radius: 12px;
  max-height: 480px;
  width: auto;
  height: auto;
  display: block;
}