@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --primary: #FF6B35;
  --primary-dark: #E85520;
  --secondary: #1A1A2E;
  --accent: #FFD700;
  --bg: #FAFAF8;
  --bg2: #F2F2ED;
  --card: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: #E5E5E0;
  --success: #22C55E;
  --info: #3B82F6;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(255,107,53,0.08);
}

.nav-dropdown { position: relative; }

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  display: grid;
  gap: 2px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px !important;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text) !important;
}

.dropdown-menu a:hover { background: var(--bg2) !important; }

.btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 8px;
}
.btn-nav:hover { background: var(--primary-dark) !important; color: #fff !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 5% 60px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,107,53,0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary);
  font-family: 'Crimson Pro', serif;
  font-style: italic;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,53,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border: 2px solid var(--border);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

.stat-item { text-align: center; }

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-visual {
  position: relative;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: floatCard 3s ease-in-out infinite;
}

.hero-tool-card:nth-child(2) { animation-delay: 0.5s; }
.hero-tool-card:nth-child(3) { animation-delay: 1s; }
.hero-tool-card:nth-child(4) { animation-delay: 1.5s; }

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

.hero-tool-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: translateY(-4px) !important;
  animation: none;
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.icon-orange { background: rgba(255,107,53,0.12); }
.icon-blue { background: rgba(59,130,246,0.12); }
.icon-green { background: rgba(34,197,94,0.12); }
.icon-yellow { background: rgba(255,215,0,0.12); }
.icon-purple { background: rgba(139,92,246,0.12); }
.icon-pink { background: rgba(236,72,153,0.12); }
.icon-teal { background: rgba(20,184,166,0.12); }
.icon-red { background: rgba(239,68,68,0.12); }

.hero-tool-card span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 5%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: rgba(255,107,53,0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== TOOLS GRID ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.tool-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(255,107,53,0.2);
}

.tool-card:hover::before { transform: scaleX(1); }

.tool-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.tool-card h3 {
  font-size: 15px;
  font-weight: 700;
}

.tool-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.tool-arrow {
  margin-top: auto;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-4px);
}

.tool-card:hover .tool-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== BLOG TOOLS ===== */
.blog-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.blog-tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.blog-tool-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(255,107,53,0.3);
  transform: translateY(-2px);
}

.btc-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.btc-content h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.btc-content p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===== CALCULATOR PAGE ===== */
.calc-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 5%;
}

.calc-header {
  text-align: center;
  margin-bottom: 40px;
}

.calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Sora', sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  outline: none;
}

.form-control:focus { border-color: var(--primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.result-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
  display: none;
}

.result-box.show { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.result-item { text-align: center; }
.result-label { font-size: 12px; opacity: 0.8; margin-bottom: 4px; }
.result-value { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }

.btn-calc {
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  transition: all 0.2s;
  width: 100%;
  margin-top: 8px;
}

.btn-calc:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,53,0.3);
}

/* ===== TABS ===== */
.tab-nav {
  display: flex;
  gap: 8px;
  background: var(--bg2);
  padding: 6px;
  border-radius: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tab-btn {
  flex: 1;
  min-width: 100px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--bg2);
  padding: 12px 5%;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { margin: 0 6px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

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

.footer-brand .logo-text { color: #fff; }

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== RANGE INPUT ===== */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(255,107,53,0.4);
}

.range-value {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.range-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

/* ===== TABLE ===== */
.table-responsive { overflow-x: auto; margin-top: 20px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }

th {
  background: var(--bg2);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

td { padding: 12px 16px; border-bottom: 1px solid var(--border); }

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 40px 5%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 20px; }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(250,250,248,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 20px 5%;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s;
}

.mobile-menu a:hover { background: var(--bg2); color: var(--primary); }

.mobile-menu-section {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 16px 4px;
  margin-top: 8px;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new { background: rgba(34,197,94,0.12); color: var(--success); }
.badge-hot { background: rgba(255,107,53,0.12); color: var(--primary); }

/* ===== SEARCH BAR ===== */
.search-wrap {
  max-width: 480px;
  margin: 0 auto 48px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid var(--border);
  border-radius: 100px;
  font-size: 15px;
  font-family: 'Sora', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  background: var(--card);
}

.search-input:focus { border-color: var(--primary); }

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}
