/* Design Tokens */
:root {
  --bg: #FBF7F3;
  --text: #0F1724;
  --muted: #6B7280;
  --accent-primary: #FF5C43;
  --accent-purple: #5B3BE6;
  --accent-green: #2DBF7B;
  --accent-teal: #2AB7D9;
  --accent-yellow: #FFB84D;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-soft: 0 6px 20px rgba(11, 15, 30, 0.06);
  --shadow-hover: 0 12px 40px rgba(11, 15, 30, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1280px;
  --container-padding: 2rem;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--muted) var(--bg);
}

/* Utility Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(251, 247, 243, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--container-padding);
}

.nav-brand svg {
  transition: var(--transition);
}

.nav-brand:hover svg {
  transform: scale(1.05);
}

.nav-cta {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
}

.hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.decoration {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}

.decoration-star-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.decoration-circle-1 {
  top: 30%;
  right: 15%;
  animation-delay: -2s;
}

.decoration-brush-1 {
  bottom: 20%;
  left: 20%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(50px);
  animation: revealLine 0.8s ease-out forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.2s; }
.hero-line:nth-child(3) { animation-delay: 0.3s; }
.hero-line:nth-child(4) { animation-delay: 0.4s; }
.hero-line:nth-child(5) { animation-delay: 0.5s; }

.hero-gradient {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-primary) 50%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes revealLine {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: revealLine 0.8s ease-out 0.6s forwards;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Card Mosaic Section */
.mosaic-section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.card-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(4, 200px);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  animation: revealCard 0.6s ease-out forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

@keyframes revealCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-purple {
  background: var(--accent-purple);
  color: white;
  grid-column: 1 / 7;
  grid-row: 1 / 3;
}

.card-yellow {
  background: var(--accent-yellow);
  color: white;
  grid-column: 7 / 10;
  grid-row: 1 / 2;
}

.card-orange {
  background: var(--accent-primary);
  color: white;
  grid-column: 10 / 13;
  grid-row: 1 / 2;
}

.card-green {
  background: var(--accent-green);
  color: white;
  grid-column: 7 / 10;
  grid-row: 2 / 4;
  position: relative;
}

.card-teal {
  background: var(--accent-teal);
  color: white;
  grid-column: 1 / 5;
  grid-row: 3 / 5;
}

.card-orange-alt {
  background: var(--accent-primary);
  color: white;
  grid-column: 5 / 13;
  grid-row: 3 / 5;
}

.card-icon {
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.card p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
}

.card-avatar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Spotlight Section */
.spotlight-section {
  padding: 6rem 0;
  text-align: center;
}

.spotlight-content {
  position: relative;
  margin-top: 4rem;
}

.lamp-illustration {
  margin-bottom: 3rem;
  animation: lampGlow 3s ease-in-out infinite alternate;
}

@keyframes lampGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.1); }
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.tag {
  background: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
}

.tag:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.tag-purple { color: var(--accent-purple); }
.tag-orange { color: var(--accent-primary); }
.tag-green { color: var(--accent-green); }
.tag-teal { color: var(--accent-teal); }
.tag-yellow { color: var(--accent-yellow); }

/* Case Studies Section */
.case-studies-section {
  padding: 6rem 0;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.case-study-card {
  background: var(--accent-green);
  color: white;
  padding: 3rem;
  border-radius: var(--radius-xl);
  position: relative;
}

.case-study-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.case-study-card h3 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.case-study-card p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.case-study-cta {
  background: white;
  color: var(--accent-green);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.case-study-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.case-study-mockups {
  position: relative;
}

.mockup-container {
  position: relative;
  height: 400px;
}

.device-mockup {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.device-mockup:hover {
  transform: translateY(-5px) rotate(2deg);
}

.tablet {
  width: 300px;
  height: 200px;
  top: 0;
  left: 0;
  padding: 1rem;
}

.phone {
  width: 150px;
  height: 280px;
  bottom: 0;
  right: 0;
  padding: 1rem;
  transform: rotate(-5deg);
}

.device-screen {
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mockup-content {
  padding: 1rem;
}

.mockup-header {
  height: 20px;
  background: #e9ecef;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.mockup-image {
  height: 60px;
  background: var(--accent-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.mockup-text {
  height: 40px;
  background: #e9ecef;
  border-radius: 4px;
}

.floating-cta {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
}

.floating-btn {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Metrics Section */
.metrics-section {
  padding: 6rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.metric-badge {
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  color: white;
}

.metric-badge:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.metric-circle {
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-square {
  border-radius: var(--radius-lg);
}

.metric-green { background: var(--accent-green); }
.metric-coral { background: var(--accent-primary); }
.metric-purple { background: var(--accent-purple); }
.metric-orange { background: var(--accent-yellow); }

.metric-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.3;
}

.metrics-title {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 2rem;
}

.metrics-title h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.metrics-cta {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.metrics-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.testimonial-stars {
  color: var(--accent-yellow);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Final CTA Section */
.final-cta-section {
  padding: 6rem 0;
}

.final-cta-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.cta-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  background: var(--accent-purple);
  opacity: 0.1;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  background: var(--accent-green);
  opacity: 0.1;
  top: 60%;
  right: 15%;
  animation-delay: -2s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  background: var(--accent-primary);
  opacity: 0.1;
  bottom: 30%;
  left: 20%;
  animation-delay: -4s;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.final-cta-card h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.final-cta-card p {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-btn {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 1.25rem 3rem;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.final-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Footer */
.footer {
  background: var(--text);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-column a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1199px) {
  .card-mosaic {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 180px);
  }
  
  .card-purple { grid-column: 1 / 5; grid-row: 1 / 3; }
  .card-yellow { grid-column: 5 / 7; grid-row: 1 / 2; }
  .card-orange { grid-column: 7 / 9; grid-row: 1 / 2; }
  .card-green { grid-column: 5 / 9; grid-row: 2 / 4; }
  .card-teal { grid-column: 1 / 4; grid-row: 3 / 5; }
  .card-orange-alt { grid-column: 4 / 9; grid-row: 4 / 6; }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }
  
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
  }
  
  .card-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1rem;
  }
  
  .card {
    grid-column: 1 !important;
    grid-row: auto !important;
    min-height: 200px;
  }
  
  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .mockup-container {
    height: 300px;
  }
  
  .tablet {
    width: 250px;
    height: 160px;
  }
  
  .phone {
    width: 120px;
    height: 220px;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .final-cta-card {
    padding: 2rem;
  }
  
  .final-cta-card h2 {
    font-size: 2rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0.75rem var(--container-padding);
  }
  
  .nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .hero {
    padding: 5rem 0 3rem;
  }
  
  .section-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .case-study-card {
    padding: 2rem;
  }
  
  .case-study-card h3 {
    font-size: 2rem;
  }
  
  .metric-badge {
    padding: 1.5rem;
  }
  
  .metric-number {
    font-size: 2rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
}