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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1c2a3a 0%, #24364c 100%);
  color: #ffffff;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Live Animated Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background: linear-gradient(
    45deg,
    #1c2a3a 0%,
    #24364c 25%,
    #1c2a3a 50%,
    #24364c 75%,
    #1c2a3a 100%
  );
  background-size: 400% 400%;
  z-index: -2;
  animation: liveGradient 8s ease infinite;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(36, 54, 76, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(28, 42, 58, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(36, 54, 76, 0.2) 0%,
      transparent 50%
    );
  z-index: -1;
  animation: floatingOrbs 12s ease-in-out infinite;
}

@keyframes liveGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatingOrbs {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  33% {
    transform: scale(1.1) rotate(120deg);
  }
  66% {
    transform: scale(0.9) rotate(240deg);
  }
}

/* Header */
/* Header */
header {
  padding: 8px 0px;
  position: fixed;
  width: 100%;
  top: 0px;
  background: rgba(28, 42, 58, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px; /* Minimal edge padding - adjust to 10px or 15px for even closer to edges */
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  animation: logoFloat 3s ease-in-out infinite;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #64b5f6, #42a5f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0; /* Remove default margin */
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.95rem;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #64b5f6;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;
  background: rgba(28, 42, 58, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 20px 0;
}

.mobile-menu ul {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.6;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #64b5f6, #42a5f5);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(100, 181, 246, 0.3);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(100, 181, 246, 0.4);
  background: linear-gradient(45deg, #42a5f5, #1e88e5);
}

.hero-visual {
  text-align: center;
  animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.phone-mockup {
  width: 300px;
  height: 600px;
  background: linear-gradient(145deg, #2d3748, #1a202c);
  border-radius: 35px;
  padding: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  margin: 0 auto;
  animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0px) rotateY(0deg);
  }
  50% {
    transform: translateY(-10px) rotateY(5deg);
  }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1c2a3a, #24364c);
  border-radius: 25px;
  position: relative;
  overflow: hidden;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #4a5568;
  border-radius: 2px;
}

/* App Interface */
.app-interface {
  padding: 25px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 600;
}

.time {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui;
  letter-spacing: 0.5px;
}

.status-icons {
  display: flex;
  gap: 5px;
}

.app-header {
  text-align: center;
  margin-bottom: 30px;
}

.app-logo {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 4px 15px rgba(100, 181, 246, 0.4);
  animation: appLogoGlow 2s ease-in-out infinite alternate;
}

@keyframes appLogoGlow {
  0% {
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.4);
  }
  100% {
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.6);
  }
}

.app-header h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.connection-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #64b5f6;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

.chat-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.chat-avatar {
  width: 35px;
  height: 35px;
  background: linear-gradient(45deg, #64b5f6, #42a5f5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.chat-info {
  flex: 1;
}

.chat-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.chat-message {
  font-size: 0.75rem;
  opacity: 0.7;
}

.chat-time {
  font-size: 0.7rem;
  opacity: 0.5;
}

.mesh-indicator {
  text-align: center;
  padding: 15px;
  background: rgba(100, 181, 246, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(100, 181, 246, 0.3);
}

.mesh-nodes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(100, 181, 246, 0.3);
  border: 2px solid rgba(100, 181, 246, 0.5);
}

.node.active {
  background: #64b5f6;
  border-color: #64b5f6;
  animation: nodeActivity 3s ease-in-out infinite;
}

@keyframes nodeActivity {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.mesh-text {
  font-size: 0.8rem;
  color: #64b5f6;
  font-weight: 500;
}

/* Features Section */
.features {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
  font-size: 3rem;
  color: #64b5f6;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Feedback Section */
.feedback {
  padding: 100px 0;
  background: rgba(0, 0, 0, 0.2);
}

.feedback-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #64b5f6;
  box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
  width: 100%;
  background: linear-gradient(45deg, #64b5f6, #42a5f5);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(45deg, #42a5f5, #1e88e5);
  transform: translateY(-2px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(135deg, #1c2a3a, #24364c);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  background: #64b5f6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

/* Footer */
footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

/* Floating particles animation */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  background: rgba(100, 181, 246, 0.1);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .phone-mockup {
    width: 250px;
    height: 500px;
    padding: 8px;
  }

  nav ul {
    display: none;
  }

  .header-content {
    justify-content: space-between;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 15px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

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

  .app-logo {
    width: 50px;
    height: 50px;
  }

  .mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    list-style: none;
  }

  .mobile-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
  }

  .mobile-menu a:hover {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
  }
}

footer {
  padding: 2rem;
  text-align: center;
}

h1 {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer {
  background-color: #1c2a3a;
  border-top: 1px solid #24364c;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  color: #666;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-icons a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-icons a:hover {
  color: #999;
}

.footer-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
