/* TrendsUtopia Marketing - Design System */

/* ===== CSS Variables ===== */
:root {
  --color-primary: #552974;
  --color-primary-light: #6b3a8e;
  --color-primary-dark: #3d1d54;
  --color-accent: #00d4aa;
  --color-accent-light: #00f5c4;

  --color-text: #1a1a2e;
  --color-text-secondary: #4a4a5a;
  --color-text-muted: #7a7a8a;

  --color-bg: #ffffff;
  --color-bg-soft: #fafafa;
  --color-bg-muted: #f5f5f7;

  --color-border: #e5e5ea;

  --font-display: 'Google Sans Display', 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Google Sans Text', 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--color-text-secondary);
}

.text-large {
  font-size: 1.25rem;
  line-height: 1.5;
}

.text-small {
  font-size: 0.875rem;
}

.text-muted {
  color: var(--color-text-muted);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 900px;
}

.container-wide {
  max-width: 1400px;
}

section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 20px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 450;
  color: var(--color-text-secondary);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-bg-muted);
}

.nav-link.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
  background: var(--color-bg-muted);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text);
}

@media (max-width: 900px) {
  .nav,
  .header-actions .btn-secondary {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-bg);
  padding: 100px 24px 40px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.4s ease;
}

.mobile-nav.open .mobile-nav-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav.open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }

.mobile-nav-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.25s var(--ease-out-quart);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(85, 41, 116, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  box-shadow: 0 4px 16px rgba(85, 41, 116, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(85, 41, 116, 0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-bg-muted);
}

.btn-large {
  padding: 18px 36px;
  font-size: 17px;
  border-radius: 12px;
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
}

/* ===== Hero Section ===== */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-bg-muted);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero h1 span {
  color: var(--color-primary);
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-illustration {
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  transform: translateX(40px);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(40px) translateY(0); }
  50% { transform: translateX(40px) translateY(-16px); }
}

.hero-decoration {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(85, 41, 116, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-illustration {
    max-width: 400px;
    margin: 40px auto 0;
    transform: none;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }
}

/* ===== Features Section ===== */
.features {
  background: var(--color-bg-soft);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--color-bg);
  border-radius: 20px;
  padding: 40px 32px;
  border: 1px solid var(--color-border);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
  stroke-width: 1.5;
  fill: none;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ===== How It Works Section ===== */
.how-it-works {
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 88px;
  height: 88px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.step:hover .step-number {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
  transform: scale(1.08);
}

.step-illustration {
  width: 200px;
  height: 160px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.step p {
  font-size: 1rem;
  max-width: 280px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .steps::before {
    display: none;
  }
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 {
  color: white;
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 36px;
}

.cta-section .btn-primary {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
  background: var(--color-bg-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Footer ===== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 15px;
  max-width: 280px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 15px;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-bg-muted);
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--color-primary);
  color: white;
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===== Page-Specific Styles ===== */

/* Features Page */
.page-hero {
  padding-top: 160px;
  padding-bottom: 60px;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}

.feature-block:nth-child(even) {
  direction: rtl;
}

.feature-block:nth-child(even) > * {
  direction: ltr;
}

.feature-block-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.feature-block-content p {
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.feature-block-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-block-content li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text-secondary);
}

.feature-block-content li svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-block-visual {
  position: relative;
}

.feature-block-visual img {
  width: 100%;
  max-width: 480px;
}

@media (max-width: 900px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .feature-block:nth-child(even) {
    direction: ltr;
  }

  .feature-block-visual img {
    max-width: 320px;
    margin: 0 auto;
  }

  .feature-block-content ul {
    align-items: center;
  }
}

/* About Page */
.about-hero {
  padding-top: 160px;
  padding-bottom: 80px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-hero h1 {
  margin-bottom: 24px;
}

.about-hero p {
  font-size: 1.2rem;
}

.values-section {
  background: var(--color-bg-soft);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.value-card {
  background: var(--color-bg);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Page */
.contact-hero {
  padding-top: 160px;
  padding-bottom: 40px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-form {
  background: var(--color-bg);
  padding: 48px;
  border-radius: 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-family: inherit;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(85, 41, 116, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info {
  padding-top: 20px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-muted);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
}

.contact-detail-text span {
  font-size: 14px;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 4px;
}

.contact-detail-text a,
.contact-detail-text p {
  font-size: 16px;
  color: var(--color-text);
  font-weight: 500;
  margin: 0;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-form {
    padding: 32px;
  }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
