/* Modern Premium Styles for Finayou */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Modern Color Palette */
  --primary: #4f46e5;      /* Indigo 600 */
  --primary-dark: #4338ca; /* Indigo 700 */
  --secondary: #ec4899;    /* Pink 500 */
  
  --bg-main: #f8fafc;      /* Slate 50 */
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;       /* Slate 100 */
  
  --text-main: #334155;    /* Slate 700 */
  --text-heading: #0f172a; /* Slate 900 */
  --text-light: #94a3b8;   /* Slate 400 */
  --text-white: #ffffff;
  
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  padding-top: 80px; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

p {
  font-size: 1.1rem;
  line-height: 1.7;
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; margin-bottom: 20px; }
h2 { font-size: 2.5rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 15px; }

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.section-title span {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

.bg-alt { background-color: var(--bg-alt); }
.bg-dark { background: var(--gradient-hero); color: var(--text-white); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--text-white); }
.bg-dark .text-muted { color: #94a3b8; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  gap: 8px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
  transform: translateY(-2px);
  color: var(--text-white);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-heading);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background-color: var(--text-white);
  color: var(--text-heading);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  height: 80px;
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 32px;
  position: relative;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 0;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  border-radius: var(--radius-md);
  padding: 12px 0;
  border: 1px solid #e2e8f0;
  animation: fadeInUp 0.2s ease-out forwards;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 10px 24px;
  font-weight: 500;
  color: var(--text-main);
}

.dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--primary);
  padding-left: 28px;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-heading);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 140px;
  text-align: center;
  background: var(--bg-main);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(236,72,153,0.08) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  background: var(--gradient-hero);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

.hero .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Modern Cards / Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: center;
}

.card {
  background: var(--bg-card);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

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

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.card-icon.primary {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.card-icon.secondary {
  background: rgba(236, 72, 153, 0.1);
  color: var(--secondary);
}

.image-rounded {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  display: block;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.primary { background: rgba(79, 70, 229, 0.1); color: var(--primary); }

/* Features List */
.feature-list {
  margin-top: 32px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--text-heading);
}

.feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Modern Calculators Forms */
.calc-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid #e2e8f0;
}

.calc-group {
  margin-bottom: 24px;
}

.calc-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.calc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-light);
  font-weight: 500;
}

.calc-group input, .calc-group select {
  width: 100%;
  padding: 16px 16px 16px 40px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-heading);
  transition: var(--transition);
  background: #f8fafc;
}

.calc-group input:focus, .calc-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
  background: #fff;
}

.calc-result {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(to right, rgba(79,70,229,0.05), rgba(79,70,229,0.02));
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  display: none;
}

.calc-result.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.calc-result h4 {
  font-size: 0.9rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.calc-amount {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-heading);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background: #f8fafc;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
  background: #fff;
}

/* Blog Styles */
.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.blog-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-title a {
  color: var(--text-heading);
}

.blog-title a:hover {
  color: var(--primary);
}

.blog-excerpt {
  color: var(--text-main);
  margin-bottom: 24px;
  flex-grow: 1;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

/* Footer */
footer {
  background: #0f172a;
  color: #f8fafc;
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col .logo {
  color: white;
  margin-bottom: 24px;
}

.footer-col h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-col a {
  color: #94a3b8;
  display: block;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: white;
  padding-left: 4px;
}

.footer-col p {
  color: #94a3b8;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #64748b;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-2 { gap: 40px; }
  .footer-content { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 16px 20px;
    font-size: 1.1rem;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #f8fafc;
    border: none;
    display: none;
    padding: 0;
  }
  
  .nav-links li.active .dropdown-menu {
    display: block;
  }
  
  .hero h1 { font-size: 2.8rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  
  .footer-content { grid-template-columns: 1fr; gap: 40px; }
}
