/* ============================================
   VISION TIPS - Custom Product Design
   Non-template, unique visual language
   ============================================ */

:root {
  /* Primary palette - deep and rich */
  --primary-900: #1e3a5f;
  --primary-700: #2d5a87;
  --primary-500: #4a90e2;
  --primary-300: #7ab8e8;
  --primary-100: #e8f4fc;
  
  /* Accent colors */
  --accent-coral: #ff6b6b;
  --accent-mint: #4ecdc4;
  --accent-lavender: #a8d8ea;
  --accent-warm: #ffeaa7;
  
  /* Neutral */
  --dark: #0f172a;
  --gray-900: #1e293b;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-100: #f1f5f9;
  --white: #ffffff;
  
  /* Effects */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow-1: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-2: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-3: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ============================================
   HERO SECTION - Diagonal split with depth
   ============================================ */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--dark);
}

/* Animated background gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(74, 144, 226, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(168, 216, 234, 0.05) 0%, transparent 60%);
  animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.1) rotate(5deg); opacity: 0.8; }
}

/* Diagonal divider */
.hero::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: none;
}

/* Left content area */
.hero-content {
  padding-right: 80px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-300);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-mint);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--white);
  font-weight: 700;
}

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

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-300);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-mint) 100%);
  color: var(--white);
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  box-shadow: 0 10px 40px rgba(74, 144, 226, 0.3);
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 50px rgba(74, 144, 226, 0.4);
}

.hero-cta i {
  transition: transform 0.3s ease;
}

.hero-cta:hover i {
  transform: translateX(4px);
}

/* Right visual area */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* Floating cards composition */
.visual-composition {
  position: relative;
  width: 400px;
  height: 400px;
}

.float-card {
  position: absolute;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-3);
  animation: float-card 6s ease-in-out infinite;
}

.float-card-1 {
  top: 0;
  left: 20px;
  width: 200px;
  animation-delay: 0s;
}

.float-card-2 {
  top: 100px;
  right: 0;
  width: 180px;
  animation-delay: -2s;
}

.float-card-3 {
  bottom: 40px;
  left: 60px;
  width: 220px;
  animation-delay: -4s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

.float-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-mint) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.float-card-icon i {
  font-size: 22px;
  color: var(--white);
}

.float-card h4 {
  font-size: 15px;
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 600;
}

.float-card p {
  font-size: 13px;
  color: var(--gray-300);
  line-height: 1.5;
}

/* Decorative elements */
.orbit-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: orbit 20s linear infinite;
}

.orbit-ring-1 {
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-ring-2 {
  width: 380px;
  height: 380px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-direction: reverse;
  animation-duration: 15s;
}

@keyframes orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================
   SECTIONS - Unique styling for each
   ============================================ */
.section {
  padding: 140px 0;
  position: relative;
}

/* Section header variations */
.section-header {
  margin-bottom: 80px;
}

.section-header-alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 80px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-500);
  margin-bottom: 20px;
  position: relative;
  padding-left: 24px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;
  background: var(--primary-500);
}

.section-header h2,
.section-header-alt h2 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  color: var(--dark);
  font-weight: 700;
}

.section-header-alt p {
  font-size: 18px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============================================
   TOPICS SECTION - Masonry with variety
   ============================================ */
#topics {
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}

#topics::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.08) 0%, transparent 70%);
}

.topics-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 24px;
}

.topic-item {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topic-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, transparent 0%, rgba(74, 144, 226, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.topic-item:hover::before {
  opacity: 1;
}

.topic-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-3);
}

/* Masonry sizing */
.topic-item:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  color: var(--white);
}

.topic-item:nth-child(1) h3,
.topic-item:nth-child(1) p {
  color: var(--white);
}

.topic-item:nth-child(1) .topic-number {
  color: rgba(255, 255, 255, 0.3);
}

.topic-item:nth-child(2) {
  grid-column: span 5;
  grid-row: span 1;
}

.topic-item:nth-child(3) {
  grid-column: span 5;
  grid-row: span 1;
  margin-top: 40px;
}

.topic-item:nth-child(4) {
  grid-column: span 4;
  grid-row: span 2;
}

.topic-item:nth-child(5) {
  grid-column: span 4;
  grid-row: span 1;
}

.topic-item:nth-child(6) {
  grid-column: span 4;
  grid-row: span 1;
}

.topic-number {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: var(--gray-100);
  position: absolute;
  top: 24px;
  right: 24px;
  opacity: 0.6;
}

.topic-item:nth-child(1) .topic-number {
  font-size: 140px;
  opacity: 0.15;
}

.topic-visual {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-mint) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(74, 144, 226, 0.25);
}

.topic-item:nth-child(1) .topic-visual {
  width: 80px;
  height: 80px;
  border-radius: 20px;
}

.topic-visual i {
  font-size: 28px;
  color: var(--white);
}

.topic-item h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.topic-item:nth-child(1) h3 {
  font-size: 36px;
  max-width: 80%;
}

.topic-item p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

.topic-item:nth-child(1) p {
  font-size: 17px;
  max-width: 70%;
}

.topic-arrow {
  position: absolute;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.topic-item:hover .topic-arrow {
  background: var(--primary-500);
}

.topic-arrow i {
  color: var(--primary-500);
  font-size: 16px;
  transition: color 0.3s ease;
}

.topic-item:hover .topic-arrow i {
  color: var(--white);
}

/* ============================================
   ARTICLES SECTION - Horizontal scroll cards
   ============================================ */
#articles {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

#articles::before {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 60%);
}

#articles .section-label {
  color: var(--primary-300);
}

#articles .section-label::before {
  background: var(--primary-300);
}

#articles .section-header-alt h2 {
  color: var(--white);
}

#articles .section-header-alt p {
  color: var(--gray-500);
}

.articles-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Featured article - large card */
.article-featured {
  grid-row: span 2;
  position: relative;
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-900) 100%);
  border-radius: 32px;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  overflow: hidden;
}

.article-featured::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.article-featured .badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  width: fit-content;
  margin-bottom: 30px;
}

.article-featured h3 {
  position: relative;
  z-index: 1;
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-featured p {
  position: relative;
  z-index: 1;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 30px;
}

.article-meta-featured {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.article-meta-featured span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-icon {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-icon i {
  font-size: 56px;
  color: rgba(255, 255, 255, 0.8);
}

/* Secondary articles */
.article-secondary {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
}

.article-secondary:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

.article-secondary .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(74, 144, 226, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-300);
  width: fit-content;
  margin-bottom: 20px;
}

.article-secondary h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-secondary p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-link {
  position: absolute;
  bottom: 35px;
  right: 35px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.article-secondary:hover .article-link {
  background: var(--primary-500);
}

.article-link i {
  color: var(--white);
  font-size: 14px;
}

/* ============================================
   NEWSLETTER - Minimalist dark
   ============================================ */
.newsletter {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-mint) 100%);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.newsletter p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.newsletter-form {
  display: flex;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 20px 28px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--dark);
  transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
  color: var(--gray-500);
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
  padding: 20px 36px;
  background: var(--dark);
  border: none;
  border-radius: 16px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 0;
  }
  
  .hero::after {
    display: none;
  }
  
  .hero .container {
    text-align: center;
    padding: 0 30px;
  }
  
  .hero-content {
    padding-right: 0;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-visual {
    display: none;
  }
  
  .topics-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .topic-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
    margin-top: 0;
  }
  
  .topic-item:nth-child(1) {
    grid-column: span 2;
  }
  
  .articles-showcase {
    grid-template-columns: 1fr;
  }
  
  .article-featured {
    grid-row: span 1;
    min-height: auto;
  }
  
  .section-header-alt {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 80px 0;
  }
  
  .topics-masonry {
    grid-template-columns: 1fr;
  }
  
  .topic-item:nth-child(1) {
    grid-column: span 1;
  }
  
  .topic-number {
    font-size: 48px;
  }
  
  .article-featured {
    padding: 30px;
  }
  
  .article-featured h3 {
    font-size: 26px;
  }
  
  .featured-icon {
    display: none;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter h2 {
    font-size: 32px;
  }
}
