/* Styla landningssidan. */

/* Nollstall grundstil. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #a855f7;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Styla hero-sektionen. */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 5%;
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.2) 0%,
    transparent 70%
  );
  top: -200px;
  right: -200px;
  border-radius: 50%;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  /*animation: fadeInLeft 1s ease;*/
}

.logo-large {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.logo-icon {
  font-size: 80px;
  /*animation: bounce 2s infinite;*/
}

.hero-content h1 {
  font-size: 72px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-light);
}

.description {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.btn-large {
  padding: 20px 48px;
  font-size: 22px;
}

/* Styla mobil-mockup och hero-visual. */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeInRight 1s ease;
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  width: 300px;
  height: 600px;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 25px;
  background: #000;
  border-radius: 0 0 20px 20px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 32px;
  overflow: hidden;
}

.video-preview {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 20px 20px;
}

.video-placeholder {
  flex: 1;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(168, 85, 247, 0.2) 100%
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.play-icon {
  font-size: 60px;
  color: white;
  animation: pulse 2s infinite;
}

.video-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.video-info p {
  font-size: 14px;
  color: var(--text-muted);
}

.video-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
}

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.action span {
  font-size: 24px;
}

.action small {
  font-size: 12px;
  color: var(--text-muted);
}

/* Styla sektion med funktioner. */
.features {
  padding: 100px 5%;
  text-align: center;
}

.features h2 {
  font-size: 48px;
  margin-bottom: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.feature-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Styla sektion for hur systemet fungerar. */
.how-it-works {
  padding: 100px 5%;
  text-align: center;
  background: rgba(30, 41, 59, 0.5);
}

.how-it-works h2 {
  font-size: 48px;
  margin-bottom: 60px;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 40px 30px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-muted);
}

.step-arrow {
  font-size: 48px;
  color: var(--primary);
}

/* Styla statistiksektion. */
.stats {
  display: flex;
  justify-content: space-around;
  padding: 80px 5%;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 56px;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat p {
  font-size: 18px;
  color: var(--text-muted);
}

/* Styla call-to-action-sektion. */
.cta-section {
  padding: 120px 5%;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(168, 85, 247, 0.2) 100%
  );
}

.cta-section h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Styla footer. */
.footer {
  padding: 60px 5% 30px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 30px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* Definiera animationer for sidan. */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Anpassa layout for mindre skarmar. */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 5%;
  }

  .hero-content {
    max-width: 100%;
  }

  .logo-large {
    justify-content: center;
  }

  .cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 48px;
  }

  .tagline {
    font-size: 22px;
  }

  .description {
    font-size: 16px;
  }

  .features h2,
  .how-it-works h2,
  .cta-section h2 {
    font-size: 36px;
  }

  .phone-frame {
    width: 250px;
    height: 500px;
  }

  .step-arrow {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .logo-icon {
    font-size: 60px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
