/* Tether Theme Variables */
:root {
  /* Primary */
  --color-deep-navy:     #0D1B2A;
  --color-midnight-blue: #1B2A4A;
  --color-steel-blue:    #2E4A7A;

  /* Accents */
  --color-teal:          #00C9B1;
  --color-silver:        #A8B5C8;

  /* Text & Neutrals */
  --color-off-white:     #E8EDF4;
  --color-light-grey:    #CBD3E0;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography */
  --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(180deg, 
    var(--color-deep-navy) 0%,
    var(--color-midnight-blue) 20%,
    var(--color-deep-navy) 40%,
    var(--color-midnight-blue) 60%,
    var(--color-deep-navy) 80%,
    var(--color-midnight-blue) 100%
  );
  background-attachment: fixed;
  color: var(--color-off-white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-deep-navy) 0%, var(--color-midnight-blue) 100%);
  position: relative;
  padding: var(--spacing-lg) var(--spacing-md);
  overflow: hidden;
}

.mindmap-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.mindmap-svg {
  width: 100%;
  height: 100%;
  animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.connection-line {
  animation: pulseLine 4s ease-in-out infinite;
}

.connection-line:nth-child(1) { animation-delay: 0s; }
.connection-line:nth-child(2) { animation-delay: 0.3s; }
.connection-line:nth-child(3) { animation-delay: 0.6s; }
.connection-line:nth-child(4) { animation-delay: 0.9s; }
.connection-line:nth-child(5) { animation-delay: 1.2s; }
.connection-line:nth-child(6) { animation-delay: 1.5s; }
.connection-line:nth-child(7) { animation-delay: 1.8s; }
.connection-line:nth-child(8) { animation-delay: 2.1s; }
.connection-line:nth-child(9) { animation-delay: 2.4s; }
.connection-line:nth-child(10) { animation-delay: 2.7s; }
.connection-line:nth-child(11) { animation-delay: 0.2s; }
.connection-line:nth-child(12) { animation-delay: 0.5s; }
.connection-line:nth-child(13) { animation-delay: 0.8s; }
.connection-line:nth-child(14) { animation-delay: 1.1s; }
.connection-line:nth-child(15) { animation-delay: 1.4s; }
.connection-line:nth-child(16) { animation-delay: 1.7s; }
.connection-line:nth-child(17) { animation-delay: 2.0s; }
.connection-line:nth-child(18) { animation-delay: 2.3s; }
.connection-line:nth-child(19) { animation-delay: 2.6s; }

.node {
  animation: pulseNode 3s ease-in-out infinite;
}

.node:nth-child(1) { animation-delay: 0s; }
.node:nth-child(2) { animation-delay: 0.2s; }
.node:nth-child(3) { animation-delay: 0.4s; }
.node:nth-child(4) { animation-delay: 0.6s; }
.node:nth-child(5) { animation-delay: 0.8s; }
.node:nth-child(6) { animation-delay: 1.0s; }
.node:nth-child(7) { animation-delay: 1.2s; }
.node:nth-child(8) { animation-delay: 1.4s; }
.node:nth-child(9) { animation-delay: 1.6s; }
.node:nth-child(10) { animation-delay: 1.8s; }
.node:nth-child(11) { animation-delay: 2.0s; }
.node:nth-child(12) { animation-delay: 2.2s; }
.node:nth-child(13) { animation-delay: 2.4s; }
.node:nth-child(14) { animation-delay: 2.6s; }
.node:nth-child(15) { animation-delay: 2.8s; }

@keyframes pulseLine {
  0%, 100% { 
    stroke-opacity: 0.5;
    opacity: 0.6;
  }
  50% { 
    stroke-opacity: 0.8;
    opacity: 0.9;
  }
}

@keyframes pulseNode {
  0%, 100% { 
    opacity: 0.6;
  }
  50% { 
    opacity: 0.8;
  }
}

/* Animate the entire mindmap group together so lines and nodes stay connected */
.mindmap-group {
  animation: floatMindmap 20s ease-in-out infinite;
  transform-origin: center;
}

@keyframes floatMindmap {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
  }
  25% { 
    transform: translate(10px, -15px) scale(1.02);
  }
  50% { 
    transform: translate(-8px, 10px) scale(0.98);
  }
  75% { 
    transform: translate(12px, 8px) scale(1.01);
  }
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
  position: relative;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  color: var(--color-off-white);
  line-height: 1.2;
}

.rotating-word {
  display: inline-block;
  color: var(--color-teal);
  transition: opacity 0.25s ease;
}

.rotating-word--fade-out {
  opacity: 0;
}

.rotating-word--fade-in {
  opacity: 1;
}

.app-name-highlight {
  color: #4DD0E1;
  position: relative;
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 
    0 0 8px rgba(77, 208, 225, 0.4),
    0 0 15px rgba(77, 208, 225, 0.3),
    0 0 25px rgba(77, 208, 225, 0.2);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 
      0 0 8px rgba(77, 208, 225, 0.4),
      0 0 15px rgba(77, 208, 225, 0.3),
      0 0 25px rgba(77, 208, 225, 0.2);
  }
  50% {
    text-shadow: 
      0 0 10px rgba(77, 208, 225, 0.5),
      0 0 20px rgba(77, 208, 225, 0.35),
      0 0 30px rgba(77, 208, 225, 0.25);
  }
}

.app-name-footer {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-off-white);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--color-light-grey);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}


.hero-cta {
  margin-top: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--spacing-xs);
  max-width: 280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.coming-soon {
  display: block;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-steel-blue);
  color: var(--color-off-white);
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--color-teal);
  box-shadow: 0 0 20px rgba(0, 201, 177, 0.3);
}

.hero-cta-secondary {
  display: block;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 8px;
  border: 1px solid rgba(0, 201, 177, 0.7);
  color: var(--color-off-white);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.95) 0%, rgba(13, 27, 42, 0.95) 100%);
  box-shadow: 0 0 16px rgba(0, 201, 177, 0.18);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.hero-cta-secondary:hover {
  border-color: var(--color-teal);
  background: linear-gradient(135deg, rgba(46, 74, 122, 1) 0%, rgba(27, 42, 74, 1) 100%);
  box-shadow: 0 0 22px rgba(0, 201, 177, 0.35);
  transform: translateY(-1px);
}

/* Features Section */
.features {
  padding: var(--spacing-xl) 0;
  background: var(--color-midnight-blue);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0, 201, 177, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--color-off-white);
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: linear-gradient(135deg, var(--color-deep-navy) 0%, rgba(27, 42, 74, 0.8) 100%);
  padding: var(--spacing-md);
  border-radius: 12px;
  border: 1px solid rgba(46, 74, 122, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-teal), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-teal);
  box-shadow: 0 8px 30px rgba(0, 201, 177, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-off-white);
}

.feature-card p {
  color: var(--color-light-grey);
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
  padding: var(--spacing-xl) 0;
  background: var(--color-deep-navy);
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(0, 201, 177, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--spacing-md);
  align-items: start;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-steel-blue) 0%, rgba(27, 42, 74, 0.9) 100%);
  color: var(--color-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--color-teal);
  box-shadow: 0 4px 15px rgba(0, 201, 177, 0.2);
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-off-white);
}

.step-content > p {
  color: var(--color-light-grey);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.step-visual {
  margin-top: var(--spacing-md);
}

/* Mockup Screen Styles */
.mockup-screen {
  background: var(--color-midnight-blue);
  border-radius: 12px;
  border: 1px solid rgba(46, 74, 122, 0.5);
  overflow: hidden;
  max-width: 300px;
  margin: 0 auto;
}

.mockup-screen.large {
  max-width: 100%;
}

.mockup-header {
  background: var(--color-deep-navy);
  padding: var(--spacing-xs);
  border-bottom: 1px solid rgba(46, 74, 122, 0.5);
}

.mockup-status-bar {
  height: 20px;
  background: var(--color-steel-blue);
  border-radius: 4px;
  margin-bottom: var(--spacing-xs);
  opacity: 0.5;
}

.mockup-search {
  background: var(--color-midnight-blue);
  padding: var(--spacing-xs);
  border-radius: 6px;
  color: var(--color-light-grey);
  font-size: 0.875rem;
  text-align: center;
}

.mockup-content {
  padding: var(--spacing-sm);
  min-height: 200px;
}

.map-content {
  padding: var(--spacing-md);
  background: var(--color-deep-navy);
}

.step-map {
  width: 100%;
  height: 200px;
}

.showcase-map {
  width: 100%;
  height: 100%;
}

/* Person Row Styles */
.mockup-person-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--color-deep-navy);
  border-radius: 8px;
  margin-bottom: var(--spacing-xs);
}

.mockup-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-steel-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-off-white);
  font-weight: 600;
  flex-shrink: 0;
}

.mockup-large-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-steel-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-off-white);
  font-weight: 600;
  font-size: 2rem;
  margin: 0 auto var(--spacing-sm);
}

.mockup-person-info {
  flex: 1;
}

.mockup-name {
  color: var(--color-off-white);
  font-weight: 600;
  margin-bottom: 4px;
}

.mockup-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-steel-blue);
  color: var(--color-off-white);
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: var(--spacing-xs);
}

.mockup-badge-group {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.mockup-group-badge {
  display: inline-block;
  padding: 2px 8px;
  color: var(--color-off-white);
  border-radius: 4px;
  font-size: 0.75rem;
}

/* Group Styles */
.mockup-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--color-deep-navy);
  border-radius: 8px;
  margin-bottom: var(--spacing-xs);
}

.mockup-group-color {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-group-name {
  flex: 1;
  color: var(--color-off-white);
  font-weight: 600;
}

.mockup-group-count {
  color: var(--color-light-grey);
  font-size: 0.875rem;
}

/* Person Detail Styles */
.mockup-person-detail {
  text-align: center;
}

.mockup-detail-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-off-white);
  margin-bottom: var(--spacing-xs);
}

.mockup-detail-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-steel-blue);
  color: var(--color-off-white);
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

.mockup-detail-section {
  text-align: left;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  background: var(--color-deep-navy);
  border-radius: 8px;
}

.mockup-detail-label {
  color: var(--color-light-grey);
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.mockup-detail-value {
  color: var(--color-off-white);
  font-weight: 600;
}

.mockup-connection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xs);
  background: var(--color-midnight-blue);
  border-radius: 6px;
  margin-top: var(--spacing-xs);
}

.mockup-connection-item span:first-child {
  color: var(--color-off-white);
}

.connection-label {
  color: var(--color-teal);
  font-size: 0.875rem;
}

/* Showcase Section */
.showcase {
  padding: var(--spacing-xl) 0;
  background: var(--color-midnight-blue);
  position: relative;
}

.showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 201, 177, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

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

.device-frame {
  background: linear-gradient(135deg, var(--color-deep-navy) 0%, rgba(27, 42, 74, 0.9) 100%);
  padding: var(--spacing-sm);
  border-radius: 20px;
  border: 2px solid var(--color-steel-blue);
  margin-bottom: var(--spacing-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 201, 177, 0.1);
}

.device-screen {
  background: var(--color-midnight-blue);
  border-radius: 12px;
  overflow: hidden;
}

.showcase-item h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-off-white);
}

.showcase-item p {
  color: var(--color-light-grey);
}

/* Benefits Section */
.benefits {
  padding: var(--spacing-xl) 0;
  background: var(--color-deep-navy);
  position: relative;
}

.benefits::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 201, 177, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.benefit-item {
  padding: var(--spacing-md);
  background: linear-gradient(135deg, var(--color-midnight-blue) 0%, rgba(13, 27, 42, 0.8) 100%);
  border-radius: 12px;
  border: 1px solid rgba(46, 74, 122, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 201, 177, 0.15);
}

.benefit-item h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-off-white);
}

.benefit-item p {
  color: var(--color-light-grey);
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: var(--spacing-lg) 0;
  background: var(--color-midnight-blue);
  border-top: 1px solid rgba(46, 74, 122, 0.5);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 201, 177, 0.3), transparent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-logo {
  width: 40px;
  height: 40px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--color-off-white);
}

.footer-info {
  text-align: right;
}

.footer-status {
  color: var(--color-teal);
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-tagline {
  color: var(--color-light-grey);
  font-size: 0.875rem;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(46, 74, 122, 0.3);
  color: var(--color-light-grey);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-link {
  color: var(--color-teal);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #4DD0E1;
  opacity: 0.95;
}

/* Privacy Policy Page */
.policy-main {
  padding: var(--spacing-lg) 0;
}

.policy-shell {
  max-width: 900px;
  margin: 0 auto;
}

.policy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-teal);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.policy-back-link:hover,
.policy-back-link:focus-visible {
  color: #4DD0E1;
}

.policy-header {
  margin-bottom: var(--spacing-md);
}

.policy-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.policy-updated {
  color: var(--color-teal);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.policy-intro {
  color: var(--color-light-grey);
}

.policy-card {
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.96) 0%, rgba(13, 27, 42, 0.92) 100%);
  border: 1px solid rgba(46, 74, 122, 0.5);
  border-radius: 14px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.policy-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.policy-card p + p {
  margin-top: 0.75rem;
}

.policy-list {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
}

.policy-list li + li {
  margin-top: 0.45rem;
}

.policy-note {
  margin-top: var(--spacing-md);
  color: var(--color-light-grey);
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .step {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .step-number {
    margin: 0 auto;
  }

  .features-grid,
  .showcase-grid,
  .benefits-list {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-info {
    text-align: center;
  }

  .mockup-screen {
    max-width: 100%;
  }

  .policy-card {
    padding: var(--spacing-sm);
  }
}

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

  .hero-title {
    font-size: 2rem;
  }

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

  .section-title {
    font-size: 1.75rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection Color */
::selection {
  background: var(--color-teal);
  color: var(--color-deep-navy);
}
