/* ========================================
   Kcloud — Static Version
   ======================================== */

:root {
  --radius: 0.75rem;
  --background: #0f1324;
  --foreground: #eef0f8;
  --card: #181e33;
  --card-foreground: #eef0f8;
  --primary: #6b8cff;
  --primary-foreground: #ffffff;
  --secondary: #222a44;
  --secondary-foreground: #eef0f8;
  --muted: #2a3352;
  --muted-foreground: #9aa3bf;
  --accent: #5eead4;
  --accent-foreground: #0f1324;
  --border: rgba(255,255,255,0.06);
  --ring: #6b8cff;
  --max-width: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

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

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

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.25rem;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--foreground);
  padding: 0.75rem 1.25rem;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.06);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(15, 19, 36, 0.7);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background: rgba(107, 140, 255, 0.12);
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 85% 90%, rgba(107, 140, 255, 0.18) 0%, transparent 70%),
    radial-gradient(50% 50% at 10% 0%, rgba(94, 234, 212, 0.1) 0%, transparent 70%),
    var(--background);
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  opacity: 0.6;
}

.grid-bg-dim {
  opacity: 0.35;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
}

.hero-title {
  margin-top: 1.25rem;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.accent {
  color: var(--accent);
}

.hero-subtitle {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--muted-foreground);
  font-size: 1rem;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
}

.glow {
  position: absolute;
  inset: -1.5rem;
  border-radius: 1.5rem;
  background: rgba(107, 140, 255, 0.18);
  filter: blur(40px);
}

/* Browser Frame */
.browser-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--card);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(15,19,36,0.5);
  padding: 0.6rem 1rem;
}

.dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  opacity: 0.6;
}

.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }

.browser-url {
  margin-left: 0.75rem;
  flex: 1;
  max-width: 16rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  background: rgba(255,255,255,0.04);
}

/* Phone Frame */
.phone-frame {
  position: relative;
  width: 240px;
  margin: 0 auto;
  border-radius: 2.2rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--background);
  padding: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.phone-notch {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  transform: translateX(-50%);
  width: 5rem;
  height: 1rem;
  border-radius: 0 0 0.75rem 0.75rem;
  background: rgba(0,0,0,0.5);
  z-index: 2;
}

.phone-frame img {
  border-radius: 1.6rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(24, 30, 51, 0.25);
}

.section-dim {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(24, 30, 51, 0.35);
}

.relative {
  position: relative;
}

.section-header {
  max-width: 40rem;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

.section-desc {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Features */
.features-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--card);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(107, 140, 255, 0.3);
}

.feature-highlight {
  border-color: rgba(94, 234, 212, 0.25);
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.06), rgba(107, 140, 255, 0.06));
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(107, 140, 255, 0.12);
  color: var(--primary);
}

.feature-icon-accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.feature-title {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.feature-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Gallery */
.gallery-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.shot-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(24, 30, 51, 0.5);
  padding: 1.5rem;
}

.shot-featured {
  border-color: rgba(94, 234, 212, 0.18);
  background: linear-gradient(to bottom, rgba(94, 234, 212, 0.06), transparent);
}

.shot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  margin-bottom: 1.25rem;
}

.shot-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.shot-title {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.shot-text {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.security-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(94, 234, 212, 0.1);
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.security-title {
  font-size: 1rem;
  font-weight: 600;
}

.security-text {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Contact */
.contact-section {
  padding-bottom: 6rem;
}

.contact-inner {
  text-align: center;
}

.contact-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--card);
  padding: 1.5rem;
  text-align: left;
  transition: border-color 0.2s ease;
}

.contact-card:hover {
  border-color: rgba(107, 140, 255, 0.35);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: rgba(107, 140, 255, 0.12);
  color: var(--primary);
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

.contact-value {
  font-weight: 500;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Responsive */
@media (min-width: 640px) {
  .hero-title { font-size: 3rem; }
  .section-title { font-size: 2rem; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .security-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
  .hero-title { font-size: 3.5rem; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
  }
  .shot-featured {
    transform: translateY(-1.5rem);
  }
  .shot-frame { min-height: 280px; }
}
