/* ==========================================================================
   Resolify.com - User-Centric Design System (SaaS Time Tracking & Projects)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-primary: #080C14;
  --bg-surface: #0F172A;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.3);
  
  --accent-cyan: #38BDF8;
  --accent-indigo: #6366F1;
  --accent-violet: #8B5CF6;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.15);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: -10%;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(8, 12, 20, 0) 70%);
  filter: blur(80px);
}

.glow-orb-2 {
  position: absolute;
  top: 40%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(8, 12, 20, 0) 70%);
  filter: blur(90px);
}

.glow-orb-3 {
  position: absolute;
  bottom: 5%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(8, 12, 20, 0) 70%);
  filter: blur(80px);
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #38BDF8 50%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 12, 20, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
}

.hero-badge-wrap {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.75rem;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 40px;
  font-weight: 400;
}

/* Live Timer Sandbox Widget (Hero) */
.hero-sandbox {
  margin-top: 50px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), 0 0 50px rgba(99, 102, 241, 0.1);
  padding: 28px;
  text-align: left;
}

.sandbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.sandbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sandbox-dots {
  display: flex;
  gap: 6px;
}

.sandbox-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.sandbox-timer-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: rgba(8, 12, 20, 0.6);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.task-input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  width: 100%;
}

.task-input::placeholder {
  color: var(--text-dim);
}

.project-select {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
}

.timer-digits {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  min-width: 130px;
  text-align: center;
}

.timer-btn {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.timer-btn.active {
  background: linear-gradient(135deg, #EF4444, #DC2626);
}

.sandbox-recent-tasks {
  margin-top: 24px;
}

.recent-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.recent-task-row:last-child {
  border-bottom: none;
}

.task-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.tag-design { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); }
.tag-backend { background: rgba(139, 92, 246, 0.15); color: var(--accent-violet); }
.tag-client { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }

/* ROI Lost Revenue Calculator Section */
.calculator-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.4);
}

.calc-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-glow);
  align-items: center;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.slider-input {
  width: 100%;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.calc-result-box {
  background: linear-gradient(135deg, rgba(8, 12, 20, 0.9), rgba(30, 41, 59, 0.8));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}

.calc-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: #EF4444;
  margin: 12px 0;
}

.calc-recovered {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

/* Founders' Club Perks Section */
.perks-section {
  padding: 100px 0;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.perk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform 0.3s ease;
}

.perk-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.perk-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 16px;
}

/* Integrations Ticker */
.integrations-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.3);
}

.ticker-title {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.logo-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.75;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.logo-item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Feature Showcase Grid */
.features-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

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

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Competitor Matrix */
.matrix-section {
  padding: 90px 0;
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid var(--border-subtle);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 800px;
}

.comp-table th, .comp-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.comp-table th {
  background: rgba(8, 12, 20, 0.8);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.comp-table td {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.comp-table tr.resolify-row {
  background: rgba(56, 189, 248, 0.08);
}

.comp-table tr.resolify-row td {
  color: var(--text-main);
  font-weight: 600;
}

.check-icon {
  color: var(--accent-emerald);
  font-weight: bold;
}
.cross-icon {
  color: var(--text-dim);
}

/* Security & Privacy Section */
.security-section {
  padding: 90px 0;
}

.security-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.5));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.security-list {
  list-style: none;
  margin-top: 24px;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.security-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

/* VIP Waitlist Section */
.waitlist-section {
  padding: 110px 0;
  text-align: center;
}

.waitlist-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.waitlist-form {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.form-group-inline {
  display: flex;
  gap: 12px;
}

.input-email {
  flex: 1;
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease;
}

.input-email:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.role-select {
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
}

.waitlist-result {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: none;
}

.waitlist-result.active {
  display: block;
}

.result-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
  background: var(--bg-primary);
  color: var(--text-dim);
  font-size: 0.9rem;
}

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

.iis-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .security-card, .calc-card { grid-template-columns: 1fr; }
  .sandbox-timer-bar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.2rem; }
  .form-group-inline { flex-direction: column; }
  .features-grid { grid-template-columns: 1fr; }
}