:root{
  --bg: #f0f9ff;
  --text:#334155;
  --heading: #0f172a;
  --muted:#64748b;
  --line:#bfdbfe;
  --brand1:#17BEBB;
  --brand2:#1F8ED6;
  --radius:16px;
  --card-bg: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --container-width: 1200px;
  --hero-glow1: color-mix(in srgb, var(--brand1), transparent 82%);
  --hero-glow2: color-mix(in srgb, var(--brand2), transparent 82%);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --text: #cbd5e1;
  --heading: #f8fafc;
  --muted: #94a3b8;
  --line: #1e293b;
  --brand1: #17BEBB; 
  --brand2: #38bdf8;
  --card-bg: #1e293b;
  --shadow-sm: none;
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f172a;
    --text: #cbd5e1;
    --heading: #f8fafc;
    --muted: #94a3b8;
    --line: #1e293b;
    --brand2: #38bdf8;
    --card-bg: #1e293b;
    --shadow-sm: none;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
  }
}

html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body{
  margin:0;
  font-family: 'Inter', sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, strong, b {
  color: var(--heading);
  letter-spacing: -0.02em;
}

h1 { font-size: 3rem; margin: 0.2em 0 0.5em; line-height: 1.1; }
h2 { font-size: 2.25rem; margin-bottom: 0.5em; }
h3 { font-size: 1.5rem; margin: 0 0 0.5em 0; }
p { margin-top: 0; margin-bottom: 1.5rem; }

.container{
  max-width: var(--container-width);
  margin:auto;
  padding: 0 24px;
}

.container footer{
  margin: 25px auto 25px auto !important;
}

section {
  padding: 80px 0;
}

/* Header */
header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg), transparent 10%);
}
.nav{
  height: 80px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  font-size: 1.125rem;
}
.brand strong { font-weight: 700; }
.brand img{ height: 40px; }

/* Logo switching based on theme */
.logo-dark { display: none; }
.logo-light { display: block; }

[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* Handle system preference if no theme is set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}

.links{
  display:flex;
  gap:32px;
}
.links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}
.links a:hover { color: var(--brand2); }

.actions { display: flex; align-items: center; gap: 16px; }

/* Theme Switch */
.theme-switch {
  appearance: none;
  background: var(--line);
  border: none;
  border-radius: 999px;
  width: 56px;
  height: 32px;
  padding: 4px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
}

.theme-switch:hover {
  background: var(--muted);
}

[data-theme="dark"] .theme-switch {
  background: var(--brand2);
}

.theme-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  color: #fbbf24; /* Sun color */
}

[data-theme="dark"] .theme-slider {
  transform: translateX(24px);
  color: var(--brand2); /* Moon color matching brand */
}

/* Icons within slider */
.theme-icon {
  width: 16px; 
  height: 16px;
  stroke-width: 2.5;
  transition: opacity 0.2s, transform 0.2s;
  position: absolute;
}

.theme-icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding:12px 24px;
  border-radius:999px;
  cursor:pointer;
  border:1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
  color: var(--heading);
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
  background: transparent;
}
.btn:hover { background: var(--line); }
.btn:active { transform: scale(0.98); }

.btn.primary{
  color:white;
  background:linear-gradient(135deg,var(--brand1),var(--brand2));
  border:none;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--brand2), transparent 70%);
}
.btn.primary:hover {
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand2), transparent 50%);
  transform: translateY(-1px);
}

/* Hero */
.hero{
  padding-top: 60px;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:64px;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, var(--hero-glow1), transparent),
    radial-gradient(ellipse 100% 100% at 50% 130%, var(--hero-glow2), transparent);
  border-radius: 24px;
  padding: 60px 32px 80px;
}
.badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0369a1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand1), transparent 82%), color-mix(in srgb, var(--brand2), transparent 82%));
  border: 1px solid color-mix(in srgb, var(--brand1), transparent 60%);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 500px;
}
.cta { display: flex; gap: 16px; margin-top: 32px; }

/* Hero Card */
.hero-card {
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--card-bg);
  padding: 32px;
}
.mini {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.mini div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; font-size: 0.9rem; }
.mini b { color: var(--heading); }
.mini span { color: var(--muted); }

/* Features */
.section-title {
  text-align: center;
  max-width: 600px;
  margin: 75px auto 50px auto;
}
.section-title p { font-size: 1.125rem; color: var(--muted); }
.section-title h2 {
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:32px;
}
.feature {
  position: relative;
  padding: 35px 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature h4 { font-size: 1.25rem; margin: 16px 0 8px; }
.icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  border-radius: 12px;
  margin-bottom: 16px;
  opacity: 0.9;
}

/* Screenshots */
.shots {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:32px;
}
.shot img {
  width:100%;
  border-radius:14px;
  border:1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s;
}
.shot img:hover { transform: scale(1.02); z-index: 10; }

/* Contact */
.contact {
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:64px;
  align-items: start;
  margin: 75px auto 50px auto;
}
.card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:32px;
  background:var(--card-bg);
  box-shadow: var(--shadow-sm);
}

input, textarea {
  width:100%;
  box-sizing: border-box;
  padding:14px;
  margin-bottom:20px;
  border-radius:12px;
  border:1px solid var(--line);
  background: var(--bg);
  font-family: inherit;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand2), transparent 90%);
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--heading);
}

.hint { font-size: 0.9rem; color: var(--muted); margin-top: 42px; }

.contact-card h3 { margin-top: 0; }
.kv { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.kv div { display: flex; flex-direction: column; }
.kv b { font-size: 0.875rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.kv a { color: var(--brand2); text-decoration: none; font-weight: 500; font-size: 1.1rem; }

/* Footer */
footer {
  text-align: center;
  padding: 64px 0;
  margin: 0px auto 25px auto !important;
  color: var(--muted);
}

@media(max-width:900px){
  .hero{ grid-template-columns:1fr; text-align: center; gap: 40px; }
  .lead { margin: 0 auto 32px; }
  .cta { justify-content: center; }
  .nav { height: auto; padding: 16px 24px; flex-direction: column; gap: 16px; }
  .links { gap: 16px; font-size: 0.9rem; }
}

@media(max-width:700px){
  .shots, .contact { grid-template-columns:1fr; }
  h1 { font-size: 2.25rem; }
}