/* 
  TOKNS Marketing Landing Page
  Rebranded for TX Ecosystem
*/

:root {
  /* Colors - Bright Accents (Shared) */
  --tx-orange: #ff876d;
  --tx-orange-soft: rgba(255, 135, 109, 0.1);

  /* Cursors - Saturn (Spacey) Style */
  --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8' fill='%23ff876d' fill-opacity='0.4' stroke='%23ff876d' stroke-width='2'/%3E%3C/svg%3E") 10 10, pointer;
  --cursor-auto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M2 2 L5 18 L13 10 Z' fill='%23ff876d' fill-opacity='0.4' stroke='%23ff876d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 2 2, auto;
  
  /* Light Theme (Default) */
  --bg-color: #ebeae6;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --card-bg: #ffffff;
  --card-border: rgba(0,0,0,0.08);
  --accent-soft: #f0ede8;
  --logo-filter: none;
  --step-stroke: rgba(0,0,0,0.15);
  --nav-link-color: #1a1a1a;
  --footer-bg: #e2e1dc;
  
  /* Typography */
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --section-padding: 140px 20px;
  --container-width: 1200px;
}

[data-theme="earthy"] {
  /* Earthy Dark Theme Overrides */
  --bg-color: #121212;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --card-bg: #1e1e1e;
  --card-border: rgba(255, 255, 255, 0.1);
  --accent-soft: rgba(255, 135, 109, 0.05);
  --logo-filter: invert(1);
  --step-stroke: rgba(255, 255, 255, 0.1);
  --nav-link-color: #f5f5f5;
  --footer-bg: #0a0a0a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: var(--cursor-auto, auto);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:not(button):not(a):not(.cursor-pointer):not([role="button"]):not([onclick]):not(input):not(label):not(select):not(summary):not(area) {
  cursor: var(--cursor-auto, auto);
}

button, a, .cursor-pointer, [role="button"], [role="link"], [role="menuitem"], [onclick], [tabindex]:not([tabindex="-1"]), input[type="submit"], input[type="button"], input[type="reset"], label[for], select, summary {
  cursor: var(--cursor-pointer, pointer) !important;
}

button *, a *, .cursor-pointer *, [role="button"] *, [role="link"] *, [role="menuitem"] *, [onclick] *, [tabindex] *, label[for] * {
  cursor: inherit !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
}

h1, h2, h3 {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

p {
  color: var(--text-secondary);
  font-size: 1.15rem;
}

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

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

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animating-letter {
  display: inline-block;
  opacity: 0;
  animation: letterFade 0.3s ease-out forwards;
  color: var(--tx-orange);
}

body > header {
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.logo-wrapper img {
  height: 64px;
  width: 280px;
  display: block;
  background-color: #ff876d;
  -webkit-mask: url('../assets/tokns-logo.svg') no-repeat left center / contain;
  mask: url('../assets/tokns-logo.svg') no-repeat left center / contain;
  object-position: -9999px;
  transition: none;
}

.header-launch-button {
  background: transparent;
  color: #ff876d !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  padding: 22px 54px; /* Slightly adjusted for border-box */
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid #ff876d;
}

.header-launch-button:hover {
  background: #ff876d !important;
  color: #000 !important;
  transform: translateY(-5px) scale(1.02);
}

.hero {
  padding: 240px 20px 140px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(3.5rem, 10vw, 7rem);
  margin-bottom: 32px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span {
  color: var(--tx-orange);
}

.hero p {
  max-width: 750px;
  margin: 0 auto 56px;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 500;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 24px 56px;
  background: var(--tx-orange);
  color: #fff !important;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 800;
  font-size: 1.3rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.02);
}

.app-preview-section {
  padding: 100px 20px 200px;
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.app-preview-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background: var(--tx-orange-soft);
  filter: blur(140px);
  z-index: 0;
  border-radius: 50%;
}

.mockup-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.desktop-frame {
  width: 90%;
  background: #0d0d0d;
  border-radius: 32px;
  padding: 12px;
  border: 1px solid rgba(255, 135, 109, 0.2);
  box-shadow: 0 50px 100px rgba(0,0,0,0.4);
  transition: transform 0.6s ease;
}

.desktop-mockup {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.mobile-frame {
  position: absolute;
  bottom: -100px;
  right: -40px;
  width: 300px;
  background: #000;
  border-radius: 54px;
  padding: 14px;
  border: 1px solid rgba(255, 135, 109, 0.3);
  box-shadow: 0 60px 120px rgba(0,0,0,0.5);
  z-index: 10;
}

.mobile-mockup {
  width: 100%;
  border-radius: 44px;
  display: block;
}

.features {
  padding: var(--section-padding);
  background: var(--card-bg);
}

.section-tag {
  color: var(--tx-orange);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  display: block;
}

.features h2 {
  font-size: 3.5rem;
  margin-bottom: 80px;
  max-width: 900px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 48px;
}

.feature-card {
  padding: 56px;
  border-radius: 40px;
  background: var(--bg-color);
  border: 1px solid var(--card-border);
  transition: all 0.4s ease;
}

.feature-card:hover {
  border-color: var(--tx-orange);
  transform: translateY(-16px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border-radius: 24px;
  color: var(--tx-orange);
  border: 1px solid var(--card-border);
}

.feature-card h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.how-it-works {
  padding: var(--section-padding);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 80px;
  margin-top: 100px;
}

.step-number {
  font-size: 6rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px var(--step-stroke);
  line-height: 1;
  margin-bottom: 12px;
}

.built-by {
  padding: 140px 20px;
  text-align: center;
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.built-by::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/images/high-end-mobile-mockup.png') center/cover no-repeat;
  opacity: 0.25;
  filter: grayscale(1) brightness(0.6);
}

.built-by .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.built-by h2 {
  font-size: 3.5rem;
  margin-bottom: 24px;
}

.built-by p {
  font-size: 1.4rem;
  margin-bottom: 48px;
  max-width: 700px;
  color: rgba(255,255,255,0.8);
}

.blog-preview {
  padding: var(--section-padding);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 48px;
}

.blog-card-image {
  height: 280px;
  border-radius: 32px;
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--bg-color);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.blog-card:hover h3 {
  color: var(--tx-orange);
}

.blog-more {
  color: var(--tx-orange);
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.shieldnest-logo-large {
  height: 64px;
  width: auto;
  margin-bottom: 32px;
  object-fit: contain;
}

/* Footer */
footer {
  padding: 100px 20px;
  background: var(--footer-bg);
  border-top: 1px solid var(--card-border);
  transition: background 0.4s ease;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--tx-orange) !important;
}

.footer-logo img {
  height: 48px;
  width: 210px;
  display: block;
  background-color: #ff876d;
  -webkit-mask: url('../assets/tokns-logo.svg') no-repeat left center / contain;
  mask: url('../assets/tokns-logo.svg') no-repeat left center / contain;
  object-position: -9999px;
  transition: none;
}

.copyright {
  color: var(--text-secondary);
  opacity: 0.6;
  font-size: 0.9rem;
  margin-top: 60px;
  text-align: center;
  width: 100%;
}

.theme-switcher {
  width: 64px;
  height: 64px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.switcher-planet {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 0 0 6px var(--card-border);
}

.switcher-moon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tx-orange);
  position: absolute;
  transform: rotate(-30deg) translateX(24px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px 20px;
  }

  body > header {
    padding: 20px 16px;
    flex-wrap: wrap;
    gap: 16px;
  }

  .logo-wrapper img {
    height: 40px;
    width: auto;
  }

  .header-launch-button {
    font-size: 1rem;
    padding: 14px 28px;
  }

  .nav-group {
    flex-wrap: wrap;
    gap: 8px !important;
  }

  .theme-switcher {
    width: 48px;
    height: 48px;
  }

  .hero {
    padding: 160px 16px 80px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 24px;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    padding: 0 8px;
  }

  .app-preview-section {
    padding: 60px 16px 120px;
    overflow-x: hidden;
  }

  .mockup-wrapper {
    overflow: visible;
  }

  .desktop-frame {
    width: 100%;
    padding: 8px;
    border-radius: 20px;
  }

  .mobile-frame {
    width: 180px;
    right: 10px;
    bottom: -40px;
    padding: 10px;
    border-radius: 36px;
  }

  .features {
    padding: 80px 16px;
  }

  .features h2 {
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 48px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-card {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
  }

  .feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .feature-card p {
    font-size: 1rem;
  }

  .how-it-works {
    padding: 80px 16px;
  }

  .how-it-works h2 {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .how-it-works p {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .blog-preview {
    padding: 80px 16px;
  }

  .blog-preview h2 {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-card-image {
    height: 220px;
    border-radius: 20px;
    margin-bottom: 24px;
  }

  .blog-card h3 {
    font-size: 1.4rem;
  }

  .built-by {
    padding: 80px 16px;
  }

  .built-by h2 {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .built-by p {
    font-size: 1.1rem;
    margin-bottom: 32px;
  }

  .cta-button {
    padding: 18px 36px;
    font-size: 1.1rem;
  }

  footer {
    padding: 60px 16px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .copyright {
    margin-top: 40px;
    text-align: left;
  }

  .section-tag {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }

  p {
    font-size: 1rem;
  }

  /* Fix inline styles for mobile */
  #community {
    border-radius: 40px 40px 0 0 !important;
    margin-top: -40px !important;
  }

  #community .features-grid {
    margin-top: 48px !important;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 60px 16px;
  }

  body > header {
    padding: 16px 12px;
  }

  .logo-wrapper img {
    height: 32px;
  }

  .header-launch-button {
    font-size: 0.9rem;
    padding: 12px 24px;
  }

  .hero {
    padding: 140px 12px 60px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .app-preview-section {
    padding: 40px 12px 100px;
  }

  .mobile-frame {
    width: 140px;
    right: 5px;
    bottom: -30px;
    padding: 8px;
    border-radius: 28px;
  }

  .features {
    padding: 60px 12px;
  }

  .features h2 {
    font-size: clamp(1.75rem, 5vw, 2rem);
    margin-bottom: 32px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .how-it-works {
    padding: 60px 12px;
  }

  .blog-preview {
    padding: 60px 12px;
  }

  .built-by {
    padding: 60px 12px;
  }

  footer {
    padding: 40px 12px;
  }

  .container {
    padding: 0 12px;
  }

  .mobile-frame {
    width: 120px;
    right: 0;
    bottom: -20px;
  }
}
