:root {
  --brand: #e67e22;
  --brand-2: #f39c12;
  --brand-3: #d35400;
  --bg: #ffffff;
  --bg-dark: #0a0a0a;
  --text: #1a1a1a;
  --text-light: #666666;
  --muted: #8a8a8a;
  --surface: #fafafa;
  --surface-glass: rgba(255, 255, 255, 0.1);
  --border: #e8e8e8;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-strong: rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #e67e22 0%, #f39c12 50%, #e67e22 100%);
  --gradient-secondary: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  --gradient-text: linear-gradient(135deg, #e67e22 0%, #f39c12 50%, #d35400 100%);
  --gradient-bg: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #f5f5f5 100%);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background: var(--gradient-bg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.shrink { 
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: saturate(180%) blur(24px);
}

.site-header.shrink .header-inner { 
  height: 64px; 
}
.brand { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand:hover {
  transform: translateY(-1px);
}

.logo-mark {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.logo-mark:hover::before {
  transform: translateX(100%);
}

.logo-mark:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 32px rgba(230, 126, 34, 0.4);
}

.brand-text { 
  line-height: 1; 
  font-weight: 900; 
  letter-spacing: -0.02em;
}

.brand-top { 
  font-size: 11px; 
  color: var(--brand-2); 
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.brand-bottom { 
  font-size: 16px; 
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-actions { 
  display: flex; 
  gap: 16px; 
  align-items: center; 
}

@media (max-width: 768px) {
  .nav-actions { gap: 12px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:hover { 
  --ty: calc(var(--ty, 0) - 2px);
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(1.02);
}

.btn:active {
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(0.98);
}

.btn-primary { 
  background: var(--gradient-primary); 
  color: white; 
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover { 
  box-shadow: 0 12px 32px rgba(230, 126, 34, 0.4);
}

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

.btn-outline:hover { 
  background: var(--gradient-primary); 
  color: white; 
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.3);
}

.btn-link { 
  color: var(--text-light); 
  font-weight: 500;
  padding: 8px 0;
}

.btn-link:hover { 
  color: var(--brand); 
  transform: translateY(-1px);
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  color: var(--text-light);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.lang-toggle:hover { 
  border-color: var(--brand); 
  color: var(--brand);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.hero {
  padding: 120px 0 80px;
  background: var(--gradient-bg);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(800px 300px at var(--mx, 50%) var(--my, 30%), rgba(230,126,34,0.15), transparent 60%),
    radial-gradient(600px 200px at 20% 80%, rgba(243,156,18,0.08), transparent 50%),
    radial-gradient(400px 150px at 80% 20%, rgba(211,84,0,0.06), transparent 50%);
  transition: all 0.3s ease;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(230,126,34,0.03) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(243,156,18,0.02) 50%, transparent 52%);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.title { 
  font-size: clamp(36px, 6vw, 64px); 
  line-height: 1.1; 
  margin: 0 0 24px; 
  font-weight: 900;
  letter-spacing: -0.02em;
  position: relative;
}

.subtitle { 
  font-size: clamp(18px, 2.5vw, 24px); 
  color: var(--text-light); 
  margin: 0 0 32px; 
  font-weight: 400;
  line-height: 1.5;
  max-width: 600px;
}

.cta { 
  display: flex; 
  gap: 20px; 
  flex-wrap: wrap; 
  align-items: center;
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
    min-height: 80vh;
  }
  
  .cta {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 0 40px;
    min-height: 70vh;
  }
  
  .cta {
    gap: 12px;
  }
}

.about, .intro-post, .contact { 
  padding: 100px 0; 
  position: relative;
}

.about { 
  background: var(--bg); 
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(600px 200px at 0% 50%, rgba(230,126,34,0.05), transparent 50%),
    radial-gradient(400px 150px at 100% 50%, rgba(243,156,18,0.03), transparent 50%);
  pointer-events: none;
}

.intro-post { 
  background: var(--surface); 
  position: relative;
}

.intro-post::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(500px 180px at 50% 0%, rgba(211,84,0,0.04), transparent 60%);
  pointer-events: none;
}

.contact { 
  background: var(--bg); 
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(700px 250px at 50% 100%, rgba(230,126,34,0.06), transparent 50%);
  pointer-events: none;
}

h2, h3 { 
  line-height: 1.2; 
  margin: 0 0 24px; 
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text);
}

p { 
  margin: 0 0 20px; 
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-light);
  max-width: 700px;
}

@media (max-width: 768px) {
  .about, .intro-post, .contact { 
    padding: 80px 0; 
  }
  
  p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .about, .intro-post, .contact { 
    padding: 60px 0; 
  }
}

.subscribe { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap; 
  align-items: center;
  max-width: 500px;
}

.subscribe input[type="email"] {
  flex: 1 1 280px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 2px solid var(--border);
  font-size: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

.subscribe input[type="email"]:focus { 
  outline: none; 
  border-color: var(--brand); 
  box-shadow: 0 0 0 4px rgba(230,126,34,0.15);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.subscribe input[type="email"]::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.legal { 
  color: var(--muted); 
  font-size: 14px; 
  margin-top: 16px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .subscribe {
    flex-direction: column;
    align-items: stretch;
  }
  
  .subscribe input[type="email"] {
    flex: none;
    width: 100%;
  }
}

.site-footer { 
  border-top: 1px solid var(--border); 
  background: var(--surface); 
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(400px 100px at 50% 0%, rgba(230,126,34,0.03), transparent 50%);
  pointer-events: none;
}

.footer-inner { 
  height: 80px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.social { 
  color: var(--brand); 
  text-decoration: none; 
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.social::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social:hover::after {
  width: 100%;
}

.social:hover { 
  transform: translateY(-1px);
}

/* Hero content wrapper */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* Section content wrapper */
.section-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

/* Gradient text for hero title */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Fancy underline links */
.fancy-underline {
  position: relative;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fancy-underline:hover { 
  background-size: 100% 2px;
  transform: translateY(-1px);
}

/* -------------------------- */
/* Tasteful animations        */
/* -------------------------- */

/* Micro-interactions */
.btn { will-change: transform; }
.btn:active { --ty: 0; }

/* Scroll reveal base */
[data-reveal] { 
  opacity: 0; 
  transform: translateY(32px); 
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].inview { 
  opacity: 1; 
  transform: translateY(0); 
}

[data-stagger] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-stagger].inview {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger helpers */
[data-reveal][data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal][data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal][data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal][data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal][data-reveal-delay="500"] { transition-delay: 0.5s; }

/* Subtle animated background for hero */
.hero.has-animate-bg {
  background: radial-gradient(1200px 400px at 0% 0%, rgba(243,156,18,0.12), transparent),
              radial-gradient(900px 300px at 100% 20%, rgba(230,126,34,0.10), transparent),
              linear-gradient(180deg, #fff, var(--surface));
  animation: bgFloat 18s ease-in-out infinite;
}

@keyframes bgFloat {
  0% { background-position: 0% 0%, 100% 20%, 0 0; }
  50% { background-position: 20% 10%, 80% 30%, 0 0; }
  100% { background-position: 0% 0%, 100% 20%, 0 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] { 
    transition: none; 
    opacity: 1 !important; 
    transform: none !important; 
  }
  .btn:hover, .btn:active { transform: none; }
  .hero.has-animate-bg { animation: none; }
  .gradient-text { animation: none; }
  .hero::after { animation: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Subtle page grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(44,62,80,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,62,80,0.025) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px;
  z-index: 0;
}

