@import url('./css/variables.css');
@import url('./css/base.css');
@import url('./css/components.css');
@import url('./css/layouts.css');

.clay-card {
  background: radial-gradient(circle 350px at 90% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(14, 15, 18, 0.98) 75%, #0c0d10 100%), #0c0d10;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.clay-card:hover {
  border-color: #3f3f46;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
}

.clay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border: 1px solid transparent;
}

.clay-btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  background: #f4f4f5;
  transform: scale(1.03);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.32);
}

.btn-secondary {
  background: #141416;
  color: #ffffff;
  border: 1px solid #27272a;
}

.btn-secondary:hover {
  background: #1f1f23;
  border-color: #3f3f46;
  transform: scale(1.03);
}

.delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.delete-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #141416;
  border: 1px solid #27272a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.back-btn:hover {
  background: #1f1f23;
  border-color: #ffffff;
}

.nav-stack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #1c1c1f;
}

.nav-bar-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid #1c1c1f;
  max-width: 1440px;
  margin: 0 auto;
}

.nav-bar-secondary {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-bottom: 1px solid #1c1c1f;
  background: #08080a;
  max-width: 1440px;
  margin: 0 auto;
}

.nav-bar-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 24px;
  background: #000000;
  max-width: 1440px;
  margin: 0 auto;
  border-bottom: 1px solid #141416;
}

.body-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #a1a1aa;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  background: transparent;
  border: none;
}

.body-tab:hover {
  color: #ffffff;
  background: #141416;
}

.body-tab.active {
  color: #ffffff;
  background: #1f1f23;
  border: 1px solid #27272a;
}

.nav-user-avatar, .avatar-large {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  background: #27272a;
  color: #ffffff;
  border: 1px solid #3f3f46;
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.avatar-large {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.dashboard-layout {
  display: flex;
  gap: 24px;
  max-width: 1440px;
  margin: 90px auto 40px;
  padding: 0 24px;
}

.dashboard-sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #a1a1aa;
  margin-bottom: 12px;
}

.quota-counters-grid, .dashboard-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.generator-card {
  padding: 28px;
}

.mailbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #141416;
  border: 1px solid #27272a;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mailbox-item:hover {
  background: #1f1f23;
  border-color: #3f3f46;
}

.mailbox-item.active {
  background: #1f1f23;
  border-color: #ffffff;
}

.mailbox-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.mailbox-address {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mailbox-timer {
  font-size: 11px;
  color: #a1a1aa;
  font-family: var(--font-mono);
}

.mailbox-delete-btn {
  background: transparent;
  border: none;
  color: #71717a;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.mailbox-delete-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.form-select, .form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #27272a;
  background: #09090b;
  color: #ffffff;
  font-size: 13.5px;
  transition: var(--transition-fast);
}

.form-select:focus, .form-input:focus {
  border-color: #52525b;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #71717a;
  display: inline-block;
}

.status-dot.connected {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.status-dot.disconnected {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.inbox-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.inbox-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #ffffff;
}

.inbox-count-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #141416;
  border: 1px solid #27272a;
  color: #d4d4d8;
}

.email-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-state {
  background: #0c0d10;
  border: 1px dashed #262626;
  border-radius: var(--radius-xl);
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.empty-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.empty-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulseGlow 1.4s infinite alternate;
}

.empty-dots span:nth-child(2) {
  animation-delay: 0.2s;
  background: #10b981;
}

.empty-dots span:nth-child(3) {
  animation-delay: 0.4s;
  background: #06b6d4;
}

.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.empty-sub {
  font-size: 13.5px;
  color: #a1a1aa;
}

.empty-addr {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #10b981;
}

.email-item {
  background: #0c0d10;
  border: 1px solid #262626;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.email-item:hover {
  background: #141416;
  border-color: #3f3f46;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.email-item.unread {
  border-left: 3px solid #10b981;
  background: #101116;
}

.email-item-star {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.email-item-star:hover, .email-item-star.starred {
  opacity: 1;
  color: #f59e0b;
}

.email-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #18181b;
  border: 1px solid #27272a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.email-item-content {
  flex: 1;
  min-width: 0;
}

.email-item-sender {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.email-item-subject {
  font-size: 13px;
  color: #a1a1aa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.email-item-time {
  font-size: 12px;
  color: #71717a;
}

.email-item-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: var(--transition-fast);
}

.email-item:hover .email-item-actions {
  opacity: 1;
}

.action-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #27272a;
  background: #141416;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.action-icon-btn:hover {
  color: #ffffff;
  background: #1f1f23;
  border-color: #3f3f46;
}

.email-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.email-viewer-wrap {
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
}

.viewer-card {
  padding: 32px;
  background: #0c0d10;
  border: 1px solid #27272a;
  border-radius: var(--radius-xl);
}

.viewer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.viewer-subject {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 16px;
}

.viewer-from-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1c1c1f;
}

.from-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #18181b;
  border: 1px solid #27272a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.from-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.from-addr {
  font-size: 12.5px;
  color: #a1a1aa;
  font-family: var(--font-mono);
}

.viewer-date {
  margin-left: auto;
  font-size: 12px;
  color: #71717a;
}

.body-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.email-body-wrap {
  padding: 20px;
  border-radius: 12px;
  background: #09090b;
  border: 1px solid #27272a;
  min-height: 200px;
  line-height: 1.6;
  color: #d4d4d8;
}

.email-body-wrap.hidden {
  display: none;
}

.main {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0 40px;
  position: relative;
}

.hero-content {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #d4d4d8;
  background: #141416;
  border: 1px solid #262626;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #065f46 0%, #059669 50%, #10b981 100%);
  border: 2px solid #34d399;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-weight: 800;
  vertical-align: middle;
}

.hero-pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff;
  animation: pulseGlow 2s infinite;
}

.hero-sub {
  font-size: clamp(14px, 2vw, 16px);
  color: #a1a1aa;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack-item {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #000000;
  background: #27272a;
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  transition: transform 0.2s;
}

.avatar-stack-item:first-child {
  margin-left: 0;
}

.avatar-stack-item:hover {
  transform: scale(1.2);
  z-index: 2;
}

.stats-ticker-bar {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 32px 0;
  background: #000000;
  border-top: 1px solid #1c1c1f;
  border-bottom: 1px solid #1c1c1f;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  position: relative;
}

.stats-bar-caption {
  font-size: 14px;
  font-weight: 600;
  color: #d4d4d8;
  text-align: center;
  padding: 0 20px;
}

.stats-marquee-container {
  display: flex;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.stats-marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marqueeRoll 30s linear infinite;
}

.stats-marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.stats-marquee-number {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.stats-marquee-label {
  font-size: 12px;
  font-weight: 500;
  color: #71717a;
  white-space: nowrap;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.features-grid .clay-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.features-grid h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.features-grid p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #a1a1aa;
}

.tech-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #141416;
  border: 1px solid #27272a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
}

.section-about {
  padding: 80px 0;
  border-bottom: 1px solid #1c1c1f;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.2s;
}

.about-step:hover {
  transform: translateX(4px);
}

.about-step-num {
  font-size: 20px;
  font-weight: 800;
  color: #52525b;
  transition: color 0.2s;
}

.about-step:hover .about-step-num {
  color: #10b981;
}

.section-pricing {
  padding: 80px 0;
  position: relative;
}

.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 12px;
}

.pricing-sub {
  font-size: 14.5px;
  color: #a1a1aa;
  max-width: 540px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  border-radius: 28px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle 350px at 90% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(14, 15, 18, 0.98) 75%, #0c0d10 100%), #0c0d10;
  border: 1px solid #262626;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  border-color: #3f3f46;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
}

.pricing-card.featured {
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.05);
}

.pricing-card.featured:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.pricing-badge-popular {
  background: #ffffff;
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1c1c1f;
}

.pricing-price {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.pricing-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #d4d4d8;
}

.pricing-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #141416;
  border: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

footer {
  border-top: 1px solid #1c1c1f;
  padding: 48px 0 36px;
  margin-top: 80px;
  text-align: center;
  background: #000000;
}

footer a {
  font-size: 13.5px;
  font-weight: 500;
  color: #71717a;
  transition: color 0.2s;
}

footer a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .dashboard-layout {
    flex-direction: column;
    margin-top: 90px;
  }
  .dashboard-sidebar {
    width: 100%;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}